53 lines
1.5 KiB
XML
53 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.12">
|
|
<GVL Name="GVL_SCADA" Id="{8186ff04-764f-4b24-8a6b-d0a44d528e6f}">
|
|
<Declaration><![CDATA[{attribute 'qualified_only'}
|
|
VAR_GLOBAL
|
|
// Array for string HMI
|
|
stHMIInterface : ARRAY [0..1] OF ST_STRING_HMI_INTERFACE;
|
|
|
|
// Temperature sensor BMS control cabinet
|
|
stTempCabinetBMS : ST_HMI_ANALOG_VALUE;
|
|
|
|
// Acknowledge alarm button
|
|
stAckAlarmsButton : ST_HMI_CONTROL_BUTTON := (xRelease := TRUE);
|
|
|
|
// HMI interface to control the battery throught the HMI
|
|
{attribute 'OPC.UA.DA' := '1'}
|
|
stAutomaticModeHMI : ST_AUTO_HMI_INTERFACE;
|
|
|
|
// Requested control mode by HMI
|
|
{attribute 'OPC.UA.DA' := '1'}
|
|
eRequestedControlMode : E_BMS_CONTROL_MODE;
|
|
|
|
// Current control mode
|
|
{attribute 'OPC.UA.DA' := '1'}
|
|
{attribute 'OPC.UA.DA.Access' := '1'}
|
|
eCurrentControlMode : E_BMS_CONTROL_MODE;
|
|
|
|
// Can change current control mode
|
|
{attribute 'OPC.UA.DA' := '1'}
|
|
{attribute 'OPC.UA.DA.Access' := '1'}
|
|
xCanChangeControlMode : BOOL;
|
|
|
|
// Current battery power
|
|
{attribute 'OPC.UA.DA' := '1'}
|
|
{attribute 'OPC.UA.DA.Access' := '1'}
|
|
diCurrentBatteryPower : DINT;
|
|
|
|
// Last power charged value
|
|
lrChargedPowerValueWH : LREAL;
|
|
|
|
// Last power discharged value
|
|
lrDischargedPowerValueWH : LREAL;
|
|
|
|
// Last discharged utility power value
|
|
lrLastCycleUtilityPowerValueWh : LREAL;
|
|
|
|
// Cycle status
|
|
eCycleStatus : E_CYCLE_STATUS;
|
|
|
|
xDummy : BOOL := FALSE;
|
|
END_VAR]]></Declaration>
|
|
</GVL>
|
|
</TcPlcObject> |