All step sequences end of cycle reached

The following PLC code is used to check whether all sequences associated with the zone have reached their End of Cycle step. A reusable output is allocated for this function. This is used below to display the End of Cycle lamp.

Copy

// All Step Sequences End Of Cycle Reached
   {region "Description Stop at End Of Cycle Mode"}
   (*
   The plc code below are used to check if all sequences associated with the zone have reached their end of cycle. 
   A reusable output is allocated for this function. This is used below for the End of cycle lamp indicator.
   *)
   {endregion}
   aAllSeqEOCMatrix[0] := GVL_<Sequence_name>.stSeqIf.xSeqEndOfCycleReached;

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

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

Last updated

Was this helpful?