Start program execution
- Last UpdatedJul 20, 2024
- 1 minute read
To start program execution write Start to the attribute ExecutionStateCmd.
You can start program execution if the current program execution state is one of the following;
-
Stopped
-
RunningHeld
-
RunningSingleStep
-
SingleStepTransitionReady
-
StoppedError
If the command completes successfully the Execution State (attribute ExecutionState) changes to Running.
The following table shows you how the target state and target state timer change depending on the current execution state when the ExecutionStateCmd is set to Start. It also shows you whether the On Exit and On Entry values are written:
|
Current state |
Target state |
Execute OnExit Execute OnEntry |
|---|---|---|
|
Stopped |
State: Running |
OnExit: No |
|
RunningHeld |
State: Running |
OnExit: No |
|
RunningSingleStep |
State: Running |
OnExit: No OnEntry: No |
|
SingleStepTransitionReady |
State: Running (StopComplete if in the Final step) |
OnExit: No |
|
StoppedError |
State: Running |
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.