All step sequences automatic release

All Step Sequence Automatic Release The following PLC code is used to check whether all sequences associated with the zone have been automatically released and thus started. A reusable output is provided for this function. This is used below to indicate the status of the automatic lamp.

Copy

// --------------------------------All Step Sequences Automatic Release--------------------------------
   {region "Description All Step Sequences Automatic Release"}
   (*
   The plc code below are used to check if all sequences associated with the zone have automatic release and hence have all started. 
   A reusable output is allocated for this function. This is used below for the automatic status lamp indicator.
   *)
   {endregion}
    aAllSeqAutoRelMatrix[0] := GVL_<Sequence_name>.stSeqIf.xSeqAutomaticReleased;

   GVL_<HwZone_name>.stHwzIf.xAllSeqAutoRelease := TRUE;
   FOR  iIndex := 0 TO 0 DO 
      IF NOT aAllSeqAutoRelMatrix[iIndex] THEN
         GVL_<HwZone_name>.stHwzIf.xAllSeqAutoRelease := FALSE;
         EXIT;
      END_IF
   END_FOR

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

Last updated

Was this helpful?