Add Alarm and Warning to sinexcel product.
Add time charge and discharge and control permession to config file
This commit is contained in:
parent
988b714d57
commit
08fcd7496f
|
|
@ -16,15 +16,23 @@ public class Config
|
||||||
|
|
||||||
private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true };
|
private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true };
|
||||||
|
|
||||||
public required Double MinSoc { get; set; }
|
public required Double MinSoc { get; set; }
|
||||||
public required Double GridSetPoint { get; set; }
|
public required Double GridSetPoint { get; set; }
|
||||||
public required Double MaximumDischargingCurrent { get; set; }
|
public required Double MaximumDischargingCurrent { get; set; }
|
||||||
public required Double MaximumChargingCurrent { get; set; }
|
public required Double MaximumChargingCurrent { get; set; }
|
||||||
public required WorkingMode OperatingPriority { get; set; }
|
public required WorkingMode OperatingPriority { get; set; }
|
||||||
public required Int16 BatteriesCount { get; set; }
|
public required Int16 BatteriesCount { get; set; }
|
||||||
public required Double ModbusProtcolNumber { get; set; }
|
public required Int16 ClusterNumber { get; set; }
|
||||||
|
public required Int16 PvNumber { get; set; }
|
||||||
|
public required Double ModbusProtcolNumber { get; set; }
|
||||||
|
public required DateTime StartTimeChargeandDischargeDayandTime { get; set; }
|
||||||
|
public required DateTime StopTimeChargeandDischargeDayandTime { get; set; }
|
||||||
|
|
||||||
public required S3Config? S3 { get; set; }
|
public required Single TimeChargeandDischargePower { get; set; }
|
||||||
|
public required Boolean ControlPermission { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public required S3Config? S3 { get; set; }
|
||||||
|
|
||||||
private static String? LastSavedData { get; set; }
|
private static String? LastSavedData { get; set; }
|
||||||
|
|
||||||
|
|
@ -36,7 +44,14 @@ public class Config
|
||||||
MaximumDischargingCurrent = 180,
|
MaximumDischargingCurrent = 180,
|
||||||
OperatingPriority = WorkingMode.TimeChargeDischarge,
|
OperatingPriority = WorkingMode.TimeChargeDischarge,
|
||||||
BatteriesCount = 0,
|
BatteriesCount = 0,
|
||||||
|
ClusterNumber = 0,
|
||||||
|
PvNumber = 0,
|
||||||
ModbusProtcolNumber = 1.2,
|
ModbusProtcolNumber = 1.2,
|
||||||
|
StartTimeChargeandDischargeDayandTime = DefaultDatetime,
|
||||||
|
StopTimeChargeandDischargeDayandTime = DefaultDatetime,
|
||||||
|
TimeChargeandDischargePower = 3,
|
||||||
|
ControlPermission = false,
|
||||||
|
|
||||||
S3 = new()
|
S3 = new()
|
||||||
{
|
{
|
||||||
Bucket = "1-3e5b3069-214a-43ee-8d85-57d72000c19d",
|
Bucket = "1-3e5b3069-214a-43ee-8d85-57d72000c19d",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,48 @@
|
||||||
|
namespace InnovEnergy.Lib.Devices.Sinexcel_12K_TL.DataType;
|
||||||
|
|
||||||
|
public enum SinexcelAbnormalFlag : ushort
|
||||||
|
{
|
||||||
|
Normal = 0,
|
||||||
|
Abnormal = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum SinexcelInverterOperatingState : ushort
|
||||||
|
{
|
||||||
|
Standby = 0,
|
||||||
|
Ready = 1,
|
||||||
|
OffGrid = 2,
|
||||||
|
OnGrid = 3
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum SinexcelPvOperatingState : ushort
|
||||||
|
{
|
||||||
|
Standby = 0,
|
||||||
|
Run = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum SinexcelBatteryOperatingState : ushort
|
||||||
|
{
|
||||||
|
Standby = 0,
|
||||||
|
Charging = 1,
|
||||||
|
Discharging = 2,
|
||||||
|
FullyCharged = 3,
|
||||||
|
SelfInspection = 4
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum SinexcelDcdcState : ushort
|
||||||
|
{
|
||||||
|
Shutdown = 0,
|
||||||
|
Booting = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum SinexcelPowerGridStatus : ushort
|
||||||
|
{
|
||||||
|
Normal = 0,
|
||||||
|
Abnormal = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum SinexcelOredState : ushort
|
||||||
|
{
|
||||||
|
State0 = 0, State1, State2, State3, State4,
|
||||||
|
State5, State6, State7, State8, State9
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue