Minor bugfixes and future addons

This commit is contained in:
Matthias Heisig
2025-04-06 10:21:01 +02:00
parent 84e0e174a1
commit 2221f6bab3
22 changed files with 795 additions and 509 deletions

View File

@@ -1,18 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.7">
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.8">
<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;
// Acknowledge alarm button
stAckAlarmsButton : ST_HMI_CONTROL_BUTTON := (xRelease := TRUE);
// Butotn to switch all components into manual mode
stAllToManualModeButton : ST_HMI_CONTROL_BUTTON;
// Button to switch all components in to automatic mode
stAllToAutoModeButton : ST_HMI_CONTROL_BUTTON;
// HMI interface to control the battery throught the HMI
stAutomaticModeHMI : ST_AUTO_HMI_INTERFACE;
// Requested control mode by HMI
@@ -27,6 +24,18 @@ VAR_GLOBAL
// Current battery power
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>