Add new battery reading for current abd bus current to test the heating current
This commit is contained in:
parent
04bfbfc8b9
commit
649c8b37e8
|
@ -28,12 +28,17 @@ public partial class Battery48TlRecord
|
|||
|
||||
public Percent Soc => _Soc;
|
||||
|
||||
public Current BusCurrent => _BusCurrent;
|
||||
public UInt16 BusCurrentHex => _BusCurrentHex;
|
||||
|
||||
public UInt16 CellsCurrentHex => _CellsCurrentHex;
|
||||
|
||||
public Current HeatingCurrent => _BusCurrent - _CellsCurrent;
|
||||
public DcPower HeatingPower => HeatingCurrent * Dc.Voltage;
|
||||
|
||||
// Time since TOC is a counter from the last moment when the battery reached EOC
|
||||
// When The battery is full charged (reached EOC) the Time Since TOC is set to 0
|
||||
public TimeSpan TimeSinceTOC => TimeSpan.FromMinutes(_TimeSinceToc);
|
||||
public Current BusCurrent => _BusCurrent;
|
||||
public Current HeatingCurrent => _BusCurrent - _CellsCurrent;
|
||||
public DcPower HeatingPower => HeatingCurrent * Dc.Voltage;
|
||||
|
||||
public Boolean CalibrationChargeRequested => TimeSinceTOC > TimeSpan.FromDays(7);
|
||||
|
||||
|
|
|
@ -20,7 +20,11 @@ public partial class Battery48TlRecord
|
|||
[InputRegister(999, Scale = 0.01)] private Double _CellsVoltage;
|
||||
[InputRegister(1001, Scale = 0.01)] private Double _BusVoltage;
|
||||
[InputRegister(1000, Scale = 0.01, Offset = -10000)] private Double _CellsCurrent;
|
||||
[InputRegister(1000)] private UInt16 _CellsCurrentHex;
|
||||
|
||||
|
||||
[InputRegister(1062, Scale = 0.01, Offset = -10000)] private Double _BusCurrent;
|
||||
[InputRegister(1062)] private UInt16 _BusCurrentHex;
|
||||
|
||||
[InputRegister(1053, Scale = 0.1)] private Double _Soc;
|
||||
[InputRegister(1052)] private UInt16 _TimeSinceToc;
|
||||
|
|
Loading…
Reference in New Issue