Update the growatt modbus
This commit is contained in:
parent
2b1d550571
commit
037b411d6b
|
|
@ -56,6 +56,7 @@ public partial class WITGrowatRecord
|
|||
|
||||
// ********************************** Holding Registers (Control) *************************************************************
|
||||
|
||||
|
||||
// public UInt16 DeviceModel => _DeviceModel;
|
||||
public UInt32 RatedPower
|
||||
{
|
||||
|
|
@ -121,12 +122,13 @@ public partial class WITGrowatRecord
|
|||
get => _ActivePowerPercent;
|
||||
set => _ActivePowerPercent = (UInt16)value;
|
||||
}
|
||||
public UInt16 PowerFactor
|
||||
public Double PowerFactor
|
||||
{
|
||||
get => _PowerFactor;
|
||||
set => _PowerFactor = value;
|
||||
get => (_PowerFactor - 10000) * 0.0001;
|
||||
//set => _PowerFactor = value;
|
||||
|
||||
}
|
||||
|
||||
|
||||
public UInt16 EmsCommunicationFailureTime
|
||||
{
|
||||
get => _EmsCommunicationFailureTime;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ public partial class WITGrowatRecord
|
|||
|
||||
/****************************** Input registers ****************************/
|
||||
[InputRegister<Int32>(35, Scale = 0.1)] private Int32 _GridPower;
|
||||
|
||||
|
||||
// 31000–31009 — Operating Status Info
|
||||
[InputRegister(31000)] private UInt16 _SystemOperatingMode;
|
||||
[InputRegister(31001)] private UInt16 _BatteryOperatingMode;
|
||||
|
|
@ -155,7 +155,7 @@ public partial class WITGrowatRecord
|
|||
//[HoldingRegister<UInt32>(30152, writable: true)] private UInt16 _Reserved11; //
|
||||
[HoldingRegister(30154, writable: true)] private UInt16 _ActivePowerPercent; // Limit percentage: [0, 100]; Default: 100; takes the smaller value of 30151 and 30154 as actual active limit; Not stored
|
||||
|
||||
[HoldingRegister(30162, Offset = 10000, Scale = 0.0001)] private UInt16 _PowerFactor; // [0, 2000] ∪ [18000, 20000]; Default: 20000; Actual PF = (Register Value - 10000)
|
||||
[HoldingRegister(30162)] private UInt16 _PowerFactor; // [0, 2000] ∪ [18000, 20000]; Default: 20000; Actual PF = (Register Value - 10000)
|
||||
[HoldingRegister(30203, writable : true)] private UInt16 _EmsCommunicationFailureTime; // [1,300] TODO to 30
|
||||
[HoldingRegister(30204, writable : true)] private Boolean _EnableEmsCommunicationFailureTime; // 0: disabled, 1 = enabled we should enable this TODO
|
||||
[HoldingRegister(30300)] private UInt16 _BatteryClusterIndex; // [0..3]
|
||||
|
|
|
|||
Loading…
Reference in New Issue