Delete unecessary reading
This commit is contained in:
parent
b1cb60549f
commit
3311a30a92
|
@ -20,12 +20,10 @@ public partial class Battery48TlRecord
|
||||||
[InputRegister(999, Scale = 0.01)] private Double _CellsVoltage;
|
[InputRegister(999, Scale = 0.01)] private Double _CellsVoltage;
|
||||||
[InputRegister(1001, Scale = 0.01)] private Double _BusVoltage;
|
[InputRegister(1001, Scale = 0.01)] private Double _BusVoltage;
|
||||||
[InputRegister(1000, Scale = 0.01, Offset = -10000)] private Double _CellsCurrent;
|
[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(1002, Scale = 0.1, Offset = -10000)] private Double _SOCAh;
|
||||||
|
|
||||||
|
|
||||||
[InputRegister(1062, Scale = 0.01, Offset = -10000)] private Double _BusCurrent;
|
[InputRegister(1062, Scale = 0.01, Offset = -10000)] private Double _BusCurrent;
|
||||||
[InputRegister(1062)] private UInt16 _BusCurrentHex;
|
|
||||||
|
|
||||||
[InputRegister(1053, Scale = 0.1)] private Double _Soc;
|
[InputRegister(1053, Scale = 0.1)] private Double _Soc;
|
||||||
[InputRegister(1052)] private UInt16 _TimeSinceToc;
|
[InputRegister(1052)] private UInt16 _TimeSinceToc;
|
||||||
|
@ -43,7 +41,10 @@ public partial class Battery48TlRecord
|
||||||
[InputRegister(1058)] private UInt16 _SerialNum4;
|
[InputRegister(1058)] private UInt16 _SerialNum4;
|
||||||
[InputRegister(1059)] private UInt16 _LimpBitMap;
|
[InputRegister(1059)] private UInt16 _LimpBitMap;
|
||||||
[InputRegister(1060)] private UInt16 _BatteryState1;
|
[InputRegister(1060)] private UInt16 _BatteryState1;
|
||||||
[InputRegister(1061)] private UInt16 _BatteryState2;
|
[InputRegister(1061)] private UInt16 _BatteryState2;
|
||||||
|
|
||||||
|
//[InputRegister(1063)] private UInt16 _TotalBatteryCycle;
|
||||||
|
|
||||||
|
|
||||||
private LedState ParseLed(LedColor led) => (LedState)((_LedStates >> (Int32)led) & 3);
|
private LedState ParseLed(LedColor led) => (LedState)((_LedStates >> (Int32)led) & 3);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue