Any Sequence in CMZ Fault

Any Sequence in CMZ Fault Der folgende SPS-Code prüft, ob eine Sequenz einen CMZ-Fehler aufweist.

Copy

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


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

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

Zuletzt aktualisiert

War das hilfreich?