Global Fault Reset

The following PLC code adds the fault reset flags of all hardware zones. This enables a common fault acknowledgment for all zones when any zone fault reset button is pressed.

Copy

//--------------------------------Global Fault Reset--------------------------------
   {region "Description Global Fault Reset"}
   (*
   The PLC code below sums the fault reset flags from all Hardware Zone.
   This allows a common fault reset to all zones when any zone fault reset Push Button is pressed.
   *)
   {endregion}
   aResetMatrix[0] := GVL_Global_HMI.stHmiIf.xHmiFaultReset;
   aResetMatrix[1] := GVL_HwZone1.stHwzIf.xFaultResetPbPressed;

   FOR  iIndex := 0 TO 1 DO
      IF aResetMatrix[iIndex] THEN
         GVL_Global.stGlobalIf.xFaultReset := TRUE;
         EXIT;
      ELSE
         GVL_Global.stGlobalIf.xFaultReset := FALSE;
      END_IF
   END_FOR

Last updated

Was this helpful?