Failure monitoring

Modifying the AGITATE phase running logic

Now that you have configured the failure monitoring logic, you can modify the running, holding, and restarting logic of the AGITATE phase class to incorporate monitoring of the phase conditions. Save the phase class after modifying each of the logic states.

The logic diagram for the running logic is shown below. Modify the running logic by adding the last step (DISABLE_PH_COND) and termination (COMPLETE) and by adding actions to the other steps, as shown in the following figure. Notice that we don't enable monitoring of the agitate motor until after agitation has started. Otherwise, the Fail_Monitor would start out with a true failure condition.