Restart Statement
Restarts the current main program group.
This command is for the experienced user and you should understand the command specification before use.
Syntax
Restart
Description
Restart stops all tasks and re-executes the last main program group that was running.
Background tasks continue to run.
All Trap settings are reset and even if Restart stops tasks, it doesn’t execute Trap Abort.
Restart resets the Pause status.
If you execute Restart during error status, reset the error first using a method such as the Reset Error statement. Restart cannot be used during Emergency Stop status as it causes an error.
Emergency Stop status cannot be reset from programs.
CAUTION
When executing the Restart command from a program, you must understand the command specification and confirm that the system has the proper conditions for this command. Improper use such as continuous execution of a command within a loop may deteriorate the system safety.
Note
When using remote control I/O system, do not execute the Restart command of the SPEL+ program and the Start signal of the remote input at the same time. Error 2503 may occur when the programs are executed at the same time.
See Also
Quit, Reset, Trap, Xqt
Restart Statement Example
Function main
Trap Error Xqt eTrap
Motor On
Call PickPlac
Fend
Function eTrap
Wait Sw(ERresetSwitch)
Reset Error
Wait Sw(RestartSwitch)
Restart
Fend