Any step sequence Ready2Start

Any Step Sequence Ready2Start The following PLC code indicates whether a sequence associated with this hardware zone is ready to start. That means no interlocks or C.M.Z. faults are active.

Copy

// --------------------------------Any Step Sequences Ready2Start--------------------------------
   {region "Description Any Step Sequences Ready2Start"}
   (*
   The following plc code indicates if ANY sequence associated with that hardware zone is ready to start. i.e. 
   has no interlock or CMZ fault active.
   *)
   {endregion}
    aAnySeqReady2StartMatrix[0] := GVL_<Sequence_name>.stSeqIf.xNoCMZFault AND GVL_<Sequence_name>.stSeqIf.xSeqNoInterlockFault;

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

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

Last updated

Was this helpful?