IBN changes

added sync units for cabinet temperature, changes in modbus interface to EMS (1.0.4 and 1.0.5), added error counter to modbus communication, lot of changes to kaco (faults, consecutive errors, bms error messages), isolation error ledge, allowed startbalancing when on shutdown, tower light integration
This commit is contained in:
Markus.Neukirch
2025-09-05 14:24:37 +02:00
parent 69749409a3
commit f0e6143997
33 changed files with 1321 additions and 955 deletions

View File

@@ -3,12 +3,14 @@
<DUT Name="ST_WORD_BMS_ERROR_BITMAP" Id="{33fc17c1-ae64-4c44-aa8c-117a09c656ef}">
<Declaration><![CDATA[TYPE ST_WORD_BMS_ERROR_BITMAP :
STRUCT
bEStop : BIT; // Bit 0
bEthercat : BIT; // Bit 1
bDCSwitchS1 : BIT; // Bit 2
bDCSwitchS2 : BIT; // Bit 3
bError : BIT; // Bit 4
bEMSHeartbeatError : BIT; // Bit 5
bEStop : BIT; // Bit 0
bEthercat : BIT; // Bit 1
bError : BIT; // Bit 2
bNAProtectionTripped : BIT; // Bit 3
bEMSHeartbeatError : BIT; // Bit 4
bSafetyErrorVoltage : BIT; // Bit 5
bSafetyErrorPressure : BIT; // Bit 6
bSafetyErrorTemperature : BIT; // Bit 7
END_STRUCT
END_TYPE
]]></Declaration>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.12">
<DUT Name="ST_WORD_EMS_CONTROLS_BITMAP" Id="{7d022e67-048d-4e23-8921-2f5f928e5544}">
<Declaration><![CDATA[TYPE ST_WORD_EMS_CONTROLS_BITMAP :
STRUCT
bScheduleActive : BIT;
END_STRUCT
END_TYPE
]]></Declaration>
</DUT>
</TcPlcObject>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.12">
<DUT Name="ST_WORD_STRING_ERROR_BITMAP" Id="{3924c412-c367-4ea8-9118-864977c416ec}">
<Declaration><![CDATA[TYPE ST_WORD_STRING_ERROR_BITMAP :
STRUCT
bDCSwitch : BIT; // Bit 0
bInverterError : BIT; // Bit 1
bIsolationError : BIT; // Bit 2
END_STRUCT
END_TYPE
]]></Declaration>
</DUT>
</TcPlcObject>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.12">
<DUT Name="U_EMS_CONTROLS_REGISTER" Id="{a1ff95b9-162c-49e5-b53b-4cd068746597}">
<Declaration><![CDATA[TYPE U_EMS_CONTROLS_REGISTER :
UNION
wRegister : WORD;
stBitmap : ST_WORD_EMS_CONTROLS_BITMAP;
END_UNION
END_TYPE
]]></Declaration>
</DUT>
</TcPlcObject>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.12">
<DUT Name="U_STRING_ERROR_REGISTER" Id="{7b446cc8-a059-4d03-be7a-fed0256cd889}">
<Declaration><![CDATA[TYPE U_STRING_ERROR_REGISTER :
UNION
wRegister : WORD;
stBitmap : ST_WORD_STRING_ERROR_BITMAP;
END_UNION
END_TYPE
]]></Declaration>
</DUT>
</TcPlcObject>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.8">
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.12">
<DUT Name="ST_MODBUS_REG_12" Id="{7c428918-2d8d-43ab-8096-edbee8bd4171}">
<Declaration><![CDATA[{attribute 'analysis' := '-33'}
{attribute 'pack_mode' := '1'}
@@ -14,6 +14,9 @@ STRUCT
// Addr: 12.004
// Can be removed if cosphi can be written in pos and neg range
eReactivePowerType : E_REACTIVE_POWER_TYPE;
// Addr: 12.005
wBMSControlsRegister : U_EMS_CONTROLS_REGISTER;
END_STRUCT
END_TYPE
]]></Declaration>

View File

@@ -21,6 +21,14 @@ STRUCT
// (Bit 0 -> Error in string 1 active, Bit 1 -> String 2, etc.)
// Addr: 13.003
wStringErrorActive : WORD;
// String 1 error active
// Addr: 13.004
wString1ErrorActive : U_STRING_ERROR_REGISTER;
// String 2 error active
// Addr: 13.005
wString2ErrorActive : U_STRING_ERROR_REGISTER;
END_STRUCT
END_TYPE
]]></Declaration>