You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.0 KiB
XML
49 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
|
|
<GVL Name="GVL" Id="{7bc1699c-fcaa-4ea9-a3c6-841892db5f1d}">
|
|
<Declaration><![CDATA[{attribute 'qualified_only'}
|
|
VAR_GLOBAL PERSISTENT
|
|
// nVarPers1 : DINT; (* 1. Persistent variable *)
|
|
// bVarPers2 : BOOL; (* 2. Persistent variable *)
|
|
END_VAR
|
|
|
|
VAR_GLOBAL RETAIN
|
|
tSysRunTime : TIME; // System run time since PLC reset
|
|
iChillFactor : INT; // Chill Factor
|
|
END_VAR
|
|
|
|
VAR_GLOBAL
|
|
System : System;
|
|
fbU900 : FB_S_UPS_CX9020_U900; // FB to activate Persistant variables saving after power interruption.
|
|
arZoneData : ARRAY[1..Set.iNoZones] OF Zone; // Array of Zones in the Building
|
|
iTempOutside : INT; // Outside Temperature
|
|
iTempOutsideChill : INT; // Outside Temperature with Chill Factor
|
|
iTempAverage : INT; // Building Average Temperature
|
|
PIDControl : ARRAY[1..Set.iNoZones] OF FB_BasicPID;
|
|
tx : TIME; // System time
|
|
tCurrentTime : TIMESTRUCT;
|
|
W : WindData; // Data from the Vaisala Weather Transmitter
|
|
arAptT_PV_Filter : ARRAY[1..Set.iNoZones,1..Set.iNoApZoneMax] OF LowPassFilter; // Array of Function blocks to filter input temperature fluctuations
|
|
arAlarms : ARRAY[0..3] OF DINT; // Array of alarm bits
|
|
END_VAR
|
|
|
|
// HMI Variables
|
|
VAR_GLOBAL
|
|
|
|
bHMI_HeatTableInit : BOOL; // Initialize Heat Level tables for the each Zone.
|
|
bHMI_AptTSP_PB : BOOL;
|
|
bHMISSR_Manual : BOOL; // HMI PB, Global Command to switch all SSR control to Manual Mode (Maping test)
|
|
bHMI_DisableOut1T_TC : BOOL; // Disable outside thermocouple 1
|
|
bHMI_DisableOut2T_TC : BOOL; // Disable outside thermocouple 2
|
|
bHMI_MAU1_Reset : BOOL; // MAU1 reset PID
|
|
bHMI_MAU2_Reset : BOOL; // MAU1 reset PID
|
|
bHMI_MAU1_HeatON : BOOL; // MAU1 Heat mode Active
|
|
bHMI_MAU2_HeatON : BOOL; // MAU2 Heat mode Active
|
|
// fbSSR_Delay : ARRAY[1..]fbPulseDelay;
|
|
arHMIApt : ARRAY[1..Set.iNoOfFloors,1..Set.iNoApFloorMax] OF HMI_ApartmDisplay; // Apartments Sorted by floor to display on HMI
|
|
currentUserName:WSTRING;
|
|
END_VAR
|
|
|
|
]]></Declaration>
|
|
</GVL>
|
|
</TcPlcObject> |