New Battery aalarm and warning

This commit is contained in:
atef 2024-03-11 15:55:48 +01:00
parent f8db3ebb56
commit 62f5630ab1
1 changed files with 7 additions and 5 deletions

View File

@ -128,8 +128,8 @@ public partial class Battery48TlRecord
{
Boolean HasBit(Int16 bit) => (_AlarmFlags & 1uL << bit) > 0;
if (HasBit(0)) yield return "Tam : BMS temperature too low";
if (HasBit(2)) yield return "TaM2 : BMS temperature too high";
if (HasBit(0)) yield return "Tam : Ambient Temperature too low";
if (HasBit(2)) yield return "TaM2 : Ambient Temperature too high";
if (HasBit(3) ) yield return "Tbm : Battery temperature too low";
if (HasBit(5) ) yield return "TbM2 : Battery temperature too high";
if (HasBit(7) ) yield return "VBm2 : Bus voltage too low";
@ -152,8 +152,9 @@ public partial class Battery48TlRecord
if (HasBit(31)) yield return "MID2 : String voltage unbalance too high";
if (HasBit(42)) yield return "HTFS : Heater Fuse Blown";
if (HasBit(43)) yield return "DATA : Parameters out of range";
if (HasBit(45)) yield return "CELL2: Unbalance string voltages";
if (HasBit(45)) yield return "LMPA : Unbalance string voltages";
if (HasBit(46)) yield return "HEBT : Loss of heartbeat";
if (HasBit(48)) yield return "CURM : Battery charge requested after EDCH";
}
[SuppressMessage("ReSharper", "StringLiteralTypo")]
@ -177,7 +178,8 @@ public partial class Battery48TlRecord
if (HasBit(38)) yield return "MPMM: Midpoint wiring problem";
if (HasBit(40)) yield return "TCdi: Temperature difference between strings high";
if (HasBit(44)) yield return "LMPW : String voltages unbalance warning";
if (HasBit(47)) yield return "TOCW : ";
if (HasBit(47)) yield return "TOCW : Top of Charge requested";
if (HasBit(49)) yield return "BUSL : Bus lower than string";
}