Topic: DMD0148 HALT - Halt Program or Task |
|
The HALT Program or Task (HALT) instruction is used to programmatically stop running the specified Program or Task. This instruction is typically used by a supervisory code-block to abnormally terminate the execution of another Program or Task.
When the Program or Task is halted, 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 is the Code Block (Program or Task) to be halted. The HALT instruction does not allow $Main to be selected.
|
|
See Also:
ENDC - Conditional End of Code-Block
HALT - Halt Program or Task
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:
|
|