Set initial and final steps
- Last UpdatedJul 20, 2024
- 2 minute read
After deployment or a reset to ExecutionStateCmd, the Sequencer starts from the Initial Step. If an Initial Step is not specified, Sequencer starts from the first step. At run time, you can set the Initial Step and the Final Step. The changes take immediate effect.
If the Initial Step and Final Step are set so that:
-
the current step is before the Initial Step, Sequencer continues until the final step is reached and continues at the Initial Step
-
the current step is after the Final Step, Sequencer continues until the last step of the step program is reached, continues with the Initial Step (or first step) and then cycles between the InitialStep (or first step) and Final Step
-
if the final step is specified and the transition conditions of the final step are met, the Sequencer writes OnExit outputs and moves to the StoppedComplete state
-
if the final step is not specified and the transition conditions of the last step are met, the Sequencer writes OnExit outputs and returns to the first step.
To set the initial step at run time:
-
Write the step name to the attribute PrgStepInitialCmd. The update is reflected in the attribute PrgStepInitial.
Tip: To clear the Final Step, set PrgStepFinalCmd to an empty string. When Final Step is blank, Sequencer does not stop at any step and returns back to the Initial or first step.
For more information on these attributes, see Sequencer object help.
To set the final step at run time:
-
Write the step name to the attribute PrgStepFinalCmd. The update is reflected in the attribute PrgStepInitial.
Tip: To set the final step as the last step in the Step Program, pass an empty string to the attribute PrgStepFinalCmd.