Any sequence in CMZ fault

Any Sequence in CMZ Fault The following PLC code checks whether a sequence has a CMZ fault.

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

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

Last updated

Was this helpful?