Create a phase state routine
Equipment phases support a standard set of state routines that can be created:
- Aborting
- Holding
- Resetting
- Restarting
- Running
- Stopping
Additionally, for large or complex programming tasks, you may want to break up the state routine logic into multiple subroutines that can be called from the state routine.
Use the
New Phase State Routine
dialog box to create a phase state routine.To access the
New Phase State Routine
dialog box, from the File
menu, choose New Component > Phase State Routine
. This menu item is only available when an equipment phase is currently selected in the Controller Organizer. You can also right click selected equipment phase in the Controller Organizer, and choose New Phase State Routine
from the popup menu.To create a phase state routine
:- InState, choose the state routine. Choose from:
- Aborting
- Holding
- Resetting
- Restarting
- Running
- Stopping
- InDescription, enter a description of the routine.
- From theTypepull-down menu, choose the type of routine you want to create. Choose from:
- Ladder Diagram
- Sequential Function Chart
- Function Block Diagram
- Structured TextTheIn Phasefield shows the equipment phase in which you want the state routine to reside
- If you want the state routine to open in the appropriate editor once you have created it, selectOpen Routine on OK.
- SelectOKto create the state routine.The state routine appears in theController Organizerunder the equipment phase you chose. The state routines are scheduled for execution by the equipment phase itself. When the equipment phase is the given state, it executes the appropriate state routine. For example, when the equipment phase state is Running, it executes the logic in the Running state routine.
Provide Feedback