Global Release
//--------------------------------Global Automatic Release--------------------------------
{region "Description Global Automatic Release"}
(*
The PLC code sums together the release pushbutton pressed flag from all hardware zones.
This allows all sequences in all zones to be started automatically simultaneously by employing
the Global Release Push Button pressed Output in every Hardware Zone Automatic Release network.
*)
{endregion}
aAutoRelMatrix[0] := GVL_Global_HMI.stHmiIf.xHmiAutomaticRelease;
aAutoRelMatrix[1] := GVL_<HwZone_name>.stHwzIf.xReleasePbPressed;
FOR iIndex := 0 TO 1 DO
IF aAutoRelMatrix[iIndex] THEN
GVL_Global.stGlobalIf.xRelease := TRUE;
EXIT;
ELSE
GVL_Global.stGlobalIf.xRelease := FALSE;
END_IF
END_FORLast updated
Was this helpful?

