Jump to a specific step
- Last UpdatedJul 20, 2024
- 2 minute read
To jump to a specific step write the step number to the attribute StepNumCmd or the step name to the attribute StepNameCmd.
You can jump to a specific step if the current program execution state is one of the following;
-
Running
-
RunningHeld
-
RunningSingleStep
-
SingleStepTransitionReady
-
Stopped
-
StoppedComplete
-
StoppedError
If the command completes successfully the Execution State (attribute ExecutionState) changes to to the values as shown in the table below.
Note: If you instruct the Sequencer Object to jump to a specific step and the current execution state is either Running, RunningSingleStep or RunningHeld and the current step is configured to WriteOnExit it takes two execution cycles to finally jump to the destination step.
The following table shows you how the target state and target state timer change depending on the current execution state. It also shows you whether the On Exit and On Entry values are written:
|
Current state |
Target state |
Execute OnExit |
|
Running |
State: Running |
OnExit: Yes (if Jump write on exit is true) OnEntry: Yes |
|
RunningHeld |
State: RunningHeld Timer: Restart Step: StepNum |
OnExit: Yes (if Jump write on exit is true) OnEntry: Yes |
|
RunningSingleStep |
State: RunningSingleStep Timer: Restart Step: StepNum |
OnExit: Yes (if Jump write on exit is true) OnEntry: Yes |
|
SingleStepTransitionRewady |
State: RunningSingleStep Timer: Restart Step: StepNum |
OnExit: No (OnExit has already been executed in the previous state) OnEntry: Yes |
|
Stopped |
State: Stopped Timer: Stopped Step: StepNum |
OnExit: No OnEntry: No |
|
StoppedComplete |
State: Stopped Timer: Stopped Step: StepNum |
OnExit: No OnEntry: No |
|
StoppedError |
State: Stopped Timer: Stopped Step: StepNum |
OnExit: No OnEntry: No |
For a detailed overview of the StepNumCmd and StepNameCmd attributes and their properties, see Sequencer object help
For a detailed overview of the state transition and information on quality, timers and target steps that are effected by this execution command, see Sequencer state transition tables