Failure monitoring > Modifying BLOCK1 of the failure monitor

Modify the expression for the Monitor block

  1. Select BLOCK1 and change the name to MONITOR.
  2. Right-click, and then select Expression from the context menu.
  3. Modify the text of the expression, using the Insert Internal Parameter and Insert Named State buttons as necessary to match the logic shown below:
    IF (( '/+/WDOG_STATE.CV' = '$phase_wdog_states:FAILED' )  AND 
        ('/+/FAIL_INDEX.CV' = 0)) THEN
          '/+/FAIL_INDEX' := 'phase_failures:PLM Watchdog Failed';
    ELSE;
      IF (( '/+/SWITCHED_OVER.CV' = TRUE )  AND 
          ('/+/FAIL_INDEX.CV' = 0)) THEN
            '/+/FAIL_INDEX' := 'phase_failures:Controller Switchover Detected';
            '/+/SWITCHED_OVER.CV' := FALSE;
      ELSE;
         IF (('^/BFI1/OUT_D.CV' = 1)  AND ( '/+/FAIL_INDEX.CV' = 0 )) THEN
             '/+/FAIL_INDEX' := '^/FAIL_MESSAGE/OUT1.CV';
         ENDIF;
      ENDIF;
    ENDIF;
  4. Click Parse to check the expression and make any corrections necessary.
  5. Save the AGITATE phase class.
  6. Download the controller or workstation so that changes to the AGITATE phase logic as well as changes to the phase_failures named set are sent to the node. Do not accept the online values for uploading.