Any step sequences in time out

Any Step Sequences in Time Out The following PLC code is used to check whether a sequence associated with the zone has reached a timeout.

Copy

// --------------------------------Any Step Sequences in Time Out--------------------------------
   {region "Description Any Step Sequences in Time Out"}
   (*
   The following PLC code is used to check if any sequence associated with the zone has reached a time out.
   A reusable output is allocated for this function.
   *)
   {endregion}
   aAnySeqTimeOutMatrix[0] := GVL_<Sequence_name>.stSeqIf.xSeqStepTimeout;


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

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

Last updated

Was this helpful?