Topic: DMD0151 RESTART - Restart Program or Task |
|
The Restart Program or Task (RESTART) instruction is used to stop a Program or Task that is currently running, and then restart it so that is begins running from the beginning. This instruction can be used to restart the Program or Task that contains the instruction (restart itself) or to restart a different Program or Task.
When the Program or Task is stopped the Termination Logic
|
|
Parameters:Note: Use the F9 key or click the 'three dot box' at the right edge of the parameter field to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.
Code Block selects the Program or Task to be restarted.
|
|
Status Display:
If the Code Block parameter is the same as the Code Block that contains this instruction (the Code Block is restarting itself ), there will be a green triangle in the upper left corner of the status display to indicate this is a Skipping instruction.
The gray triangle at the right end of the input leg indicates the input is Edge Triggered
|
|
See Also:
RESTART - Restart Program or Task
SUSPEND - Suspend Program or Task
|
|
Related Topics:Overview of Code Blocks (Programs, Tasks, Subroutines and Interrupt Service Routines)
Modifying the Execution Order of Programs and Tasks
|
|
Rung Example:
|
|