Any Sequence in Interlock Fault

Any Sequence in Interlock Fault Der folgende SPS-Code prüft, ob bei einer Sequenz ein Interlockfehler vorliegt.

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

<***>Variablen Name, Kommentar und Datentyp werden aus dem Studio automatisch übernommen

Zuletzt aktualisiert

War das hilfreich?