Hold program execution
- Last UpdatedJul 20, 2024
- 1 minute read
To hold program execution write Hold to the attribute ExecutionStateCmd.
You can hold program execution if the current program execution state is one of the following;
-
Running
-
RunningSingleStep
-
SingleStepTransitionReady
-
Stopped
-
StoppedError.
If the command completes successfully the Execution State (attribute ExecutionState) changes to RunningHeld.
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 Execute OnEntry |
|---|---|---|
|
Running |
State: Running -> RunningHeld |
OnExit: NO. (Yes, if target step is Next Step body) |
|
RunningSingleStep |
State: Running -> RunningHeld |
OnExit: NO. (Yes, if target step is Next Step body) |
|
SingleStepTransitionReady |
State:Running -> RunningHeld |
OnExit: No |
|
Stopped |
State: Running -> RunningHeld |
OnExit: No |
|
StoppedError |
State: Running -> RunningHeld |
OnExit: No |
For a detailed overview of the execution state attribute and its 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.