Any sequence end of cycle reached

Any Sequence End Of Cycle Reached The following PLC code checks whether a sequence associated with the zone has reached its end-of-cycle step.

Copy

// --------------------------------Any Sequence End Of Cycle Reached--------------------------------
   {region "Description Any Step Sequences End Of Cycle Reached"}
   (*
   The following PLC code is used to check if any sequence associated with the zone has reached its End of Cycle step.
   A reusable output is allocated for this function.
   *)
   {endregion}
    aAnySeqEOCMatrix[0] := GVL_<Sequence_name>.stSeqIf.xSeqEndOfCycleReached;


   FOR  iIndex := 0 TO 0 DO
      IF aAnySeqEOCMatrix[iIndex] THEN
         GVL_<HwZone_name>.stHwzIf.xAnySeqEocReached := TRUE;
         EXIT;
      ELSE
         GVL_<HwZone_name>.stHwzIf.xAnySeqEocReached := FALSE;
      END_IF
   END_FOR

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

Last updated

Was this helpful?