Update the growatt modbus

This commit is contained in:
atef 2025-09-18 12:34:22 +02:00
parent 2b1d550571
commit 037b411d6b
2 changed files with 8 additions and 6 deletions

View File

@ -56,6 +56,7 @@ public partial class WITGrowatRecord
// ********************************** Holding Registers (Control) ************************************************************* // ********************************** Holding Registers (Control) *************************************************************
// public UInt16 DeviceModel => _DeviceModel; // public UInt16 DeviceModel => _DeviceModel;
public UInt32 RatedPower public UInt32 RatedPower
{ {
@ -121,10 +122,11 @@ public partial class WITGrowatRecord
get => _ActivePowerPercent; get => _ActivePowerPercent;
set => _ActivePowerPercent = (UInt16)value; set => _ActivePowerPercent = (UInt16)value;
} }
public UInt16 PowerFactor public Double PowerFactor
{ {
get => _PowerFactor; get => (_PowerFactor - 10000) * 0.0001;
set => _PowerFactor = value; //set => _PowerFactor = value;
} }
public UInt16 EmsCommunicationFailureTime public UInt16 EmsCommunicationFailureTime

View File

@ -155,7 +155,7 @@ public partial class WITGrowatRecord
//[HoldingRegister<UInt32>(30152, writable: true)] private UInt16 _Reserved11; // //[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(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(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(30204, writable : true)] private Boolean _EnableEmsCommunicationFailureTime; // 0: disabled, 1 = enabled we should enable this TODO
[HoldingRegister(30300)] private UInt16 _BatteryClusterIndex; // [0..3] [HoldingRegister(30300)] private UInt16 _BatteryClusterIndex; // [0..3]