EMS-BMS heartbeat and modbus fixes

added ledge and error state when modbus communication is lost, seperated register 13004 (confirm) from registers 13000-13001 (BMS/String warning/error messages) for modbus mapping, added Heartbeat error message to bmsErrors
This commit is contained in:
Markus Neukirch
2025-07-14 18:02:33 +02:00
parent e6802b87b4
commit ee3367eaec
6 changed files with 54 additions and 34 deletions

View File

@@ -20,6 +20,10 @@ VAR_GLOBAL
// Addr: 13.000
stBMSErrorReg : ST_MODBUS_REG_13;
// Confirm alarms through modbus
// Addr: 13.004
wConfirmAlarms : WORD;
// Addr: 14.000 -> 14.047
// Index 0 -> Unit 1, Index 1 -> Unit 2 etc.
awWarningsUnitsActive : ARRAY [0..(GVL_CONFIG.uiNumberOfUnits-1)] OF U_UNIT_WARNING_REGISTER;