Any sequence in interlock fault

Any Sequence in Interlock Fault The following PLC code checks whether there is an interlock fault in a sequence.

Copy

// --------------------------------Any Sequence in Interlock Fault--------------------------------
   {region "Description Any Sequence in Interlock Fault"}
   (*
   The following PLC code is used to check if any sequence has an interlock fault.
   A reusable output is allocated for this function.
   *)
   {endregion}
    aAnySeqInterlockFaultMatrix[0] := GVL_<Sequence_name>.stSeqIf.xSeqInterlockFault;


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

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

Last updated

Was this helpful?