Topic: DMD0146 EXIT - Exit This Program |
|
|
|
The Exit This Program (EXIT) instruction will cause the Program that executes this instruction to stop running immediately.
Once a Program has been started with the Run Program (RUN) instruction it will continue to run. Placing an EXIT instruction at the end of the Program is the proper method to normally terminate a Program.
|
|
If a Program is performing a function that contains error detection and needs to stop running when errors are detected, adding one or more EXIT instructions throughout the Program is the proper method to normally terminate a Program under error conditions.
Note: The EXIT instruction is not allowed in the $Main program.
|
|
|
|
Parameters:This instruction has no parameters.
|
|
|
|
See Also:
|
|
|
|
Related Topics:
|
|
|
|
Rung Example:
|
|
|