Global Release

The PLC code adds together the release push buttons of all hardware zones. This way, all sequences in all zones can be started automatically at the same time by using the global release output in each hardware zone network for the automatic release.

Copy

//--------------------------------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_FOR

<***>Variable name, comment and data type are automatically taken from the Studio

Last updated

Was this helpful?