AGITATE phase logic configuration > Configuring the AGITATE running logic

Add a parameter to the running logic

Normally, you will want to add phase algorithm parameters at the phase class level. However, you can create a parameter for an active state such as the running logic. For the AGITATE running logic you will create a phase algorithm parameter (AGIT_FLAG) that will be used to keep track of whether or not the agitate motor is supposed to be running.

  1. Open the AGITATE phase class in Control Studio.
  2. Drill down into the running logic block.
  3. With nothing selected in the Diagram view, right-click in the Parameter view in the lower left corner.
  4. Select AddPhase algorithm parameter.
    A Parameter Properties dialog opens.
  5. Name the parameter AGIT_FLAG, specify a parameter type of named set, browse for the named set mtr2-pv, and select a state of RUNNING.

  6. Click OK to save this phase algorithm parameter. 
  7. Click the Main button , and then click Save to save the phase.
    You can now browse for AGIT_FLAG when you create the step actions, two of which will reference this parameter.