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
:
  1. In
    State
    , choose the state routine. Choose from:
    • Aborting
    • Holding
    • Resetting
    • Restarting
    • Running
    • Stopping
  2. In
    Description
    , enter a description of the routine.
  3. From the
    Type
    pull-down menu, choose the type of routine you want to create. Choose from:
    • Ladder Diagram
    • Sequential Function Chart
    • Function Block Diagram
    • Structured Text
      The
      In Phase
      field shows the equipment phase in which you want the state routine to reside
  4. If you want the state routine to open in the appropriate editor once you have created it, select
    Open Routine on OK
    .
  5. Select
    OK
    to create the state routine.
    The state routine appears in the
    Controller Organizer
    under 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
Have questions or feedback about this documentation? Please submit your feedback here.
Normal