Any step sequences end of cycle reached

The following PLC code is used to check whether any sequences connected to the zone have reached their End of Cycle step. A reusable output is assigned for this function.

Copy

   // Any Step Sequences End Of Cycle Reached
      {region "Description Stop at End Of Cycle Mode"}
      (*
      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.xAllSeqEocReached := 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?