Delete unecessary reading

This commit is contained in:
atef 2024-03-20 13:51:18 +01:00
parent b1cb60549f
commit 3311a30a92
1 changed files with 4 additions and 3 deletions

View File

@ -20,12 +20,10 @@ 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(1002, Scale = 0.1, Offset = -10000)] private Double _SOCAh;
[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;
@ -45,6 +43,9 @@ public partial class Battery48TlRecord
[InputRegister(1060)] private UInt16 _BatteryState1;
[InputRegister(1061)] private UInt16 _BatteryState2;
//[InputRegister(1063)] private UInt16 _TotalBatteryCycle;
private LedState ParseLed(LedColor led) => (LedState)((_LedStates >> (Int32)led) & 3);
// public Decimal CellsVoltage { get; init; }