Reset program execution
- Last UpdatedJul 20, 2024
- 2 minute read
To reset program execution write Reset to the attribute ExecutionStateCmd.
You can reset program execution 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 the initial command setting.
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: InitialCommand |
OnExit: No |
|
RunningHeld |
State: InitialCommand |
OnExit: No |
|
RunningSingleStep |
State: InitialCommand |
OnExit: No |
|
SingleStepTransitionReady |
State: InitialCommand |
OnExit: No |
|
Stopped |
State: InitialCommand |
OnExit: No |
|
StoppedComplete |
State: InitialCommand |
OnExit: No |
|
StoppedError |
State: InitialCommand |
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.