Added safety program pre comissioning and started implementing different modes
This commit is contained in:
17
PLC/DUTs/E_BMS_CONTROL_MODE.TcDUT
Normal file
17
PLC/DUTs/E_BMS_CONTROL_MODE.TcDUT
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
|
||||
<DUT Name="E_BMS_CONTROL_MODE" Id="{ab000a04-c252-420d-ac1e-2bf611fa911a}">
|
||||
<Declaration><![CDATA[{attribute 'qualified_only'}
|
||||
{attribute 'strict'}
|
||||
TYPE E_BMS_CONTROL_MODE :
|
||||
(
|
||||
AUTO_REMOTE := 1,
|
||||
AUTO_LOCAL := 2,
|
||||
SAFETY_CHECK := 3,
|
||||
CAPACITY_TEST := 4,
|
||||
MANUAL := 5
|
||||
);
|
||||
END_TYPE
|
||||
]]></Declaration>
|
||||
</DUT>
|
||||
</TcPlcObject>
|
||||
18
PLC/DUTs/E_COMPONENT_STATUS.TcDUT
Normal file
18
PLC/DUTs/E_COMPONENT_STATUS.TcDUT
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
|
||||
<DUT Name="E_COMPONENT_STATUS" Id="{cff71c34-33b2-4724-933e-1a2c018acdb7}">
|
||||
<Declaration><![CDATA[{attribute 'qualified_only'}
|
||||
{attribute 'strict'}
|
||||
{attribute 'to_string'}
|
||||
TYPE E_COMPONENT_STATUS :
|
||||
(
|
||||
OFF := 0,
|
||||
ON := 1,
|
||||
CHARGING := 2,
|
||||
DISCHARGING := 3,
|
||||
ERROR := 4
|
||||
);
|
||||
END_TYPE
|
||||
]]></Declaration>
|
||||
</DUT>
|
||||
</TcPlcObject>
|
||||
13
PLC/DUTs/ST_AUTO_HMI_INTERFACE.TcDUT
Normal file
13
PLC/DUTs/ST_AUTO_HMI_INTERFACE.TcDUT
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
|
||||
<DUT Name="ST_AUTO_HMI_INTERFACE" Id="{2b90c47c-9132-4aec-a172-6289a0ff4dc3}">
|
||||
<Declaration><![CDATA[TYPE ST_AUTO_HMI_INTERFACE :
|
||||
STRUCT
|
||||
stStartAutoButton : ST_HMI_CONTROL_BUTTON := (xRelease := TRUE);
|
||||
stStopAutoButton : ST_HMI_CONTROL_BUTTON := (xRelease := TRUE);
|
||||
diSetpointAutomatic : DINT;
|
||||
END_STRUCT
|
||||
END_TYPE
|
||||
]]></Declaration>
|
||||
</DUT>
|
||||
</TcPlcObject>
|
||||
@@ -7,6 +7,14 @@ STRUCT
|
||||
stHMIInterfaceUnit2 : ST_UNIT_HMI_INTERFACE;
|
||||
stHMIInterfaceUnit3 : ST_UNIT_HMI_INTERFACE;
|
||||
stHMIInterfaceUnit4 : ST_UNIT_HMI_INTERFACE;
|
||||
|
||||
// Current voltage for HMI
|
||||
// ==============================
|
||||
rVoltage : REAL;
|
||||
|
||||
// Current status
|
||||
// ====================================
|
||||
eStatus : E_COMPONENT_STATUS;
|
||||
END_STRUCT
|
||||
END_TYPE
|
||||
]]></Declaration>
|
||||
|
||||
@@ -6,6 +6,14 @@ STRUCT
|
||||
stHMIInterfaceModule1 : ST_MODULE_HMI_INTERFACE;
|
||||
stHMIInterfaceModule2 : ST_MODULE_HMI_INTERFACE;
|
||||
stHMIInterfaceModule3 : ST_MODULE_HMI_INTERFACE;
|
||||
|
||||
// Current voltage for HMI
|
||||
// ==============================
|
||||
rVoltage : REAL;
|
||||
|
||||
// Current status
|
||||
// ====================================
|
||||
eStatus : E_COMPONENT_STATUS;
|
||||
END_STRUCT
|
||||
END_TYPE
|
||||
]]></Declaration>
|
||||
|
||||
@@ -50,6 +50,15 @@ STRUCT
|
||||
stVoltageSegment : ST_HMI_ANALOG_VALUE;
|
||||
|
||||
|
||||
// Current voltage for HMI
|
||||
// ==============================
|
||||
rVoltage : REAL;
|
||||
|
||||
// Current status
|
||||
// ====================================
|
||||
eStatus : E_COMPONENT_STATUS;
|
||||
|
||||
|
||||
// Aknowledge all alarms button
|
||||
// ===================================
|
||||
stButtonAckAlarms : ST_HMI_CONTROL_BUTTON;
|
||||
|
||||
Reference in New Issue
Block a user