Command Reset cold
Symbol:
Function: The command resets all variables of the active PLC project to their initialization values, except the PERSISTENT variables and the RETAIN variables.
Call: Menu PLC, TwinCAT PLC toolbar options
Requirement: The PLC project is in online mode.
All variables of the active PLC project are reset, with the exception of the PERSISTENT variables and the RETAIN variables. The situation is the same as when an application program that has just been loaded onto the controller ("cold start") is started.
Breakpoints of the PLC program that were enabled before the active PLC project was reset are still enabled after execution of the command. Breakpoints that were previously disabled are still disabled after the command is executed.
If you select the command while the program is stopping at a breakpoint, you will be asked whether the current cycle is to be terminated. Alternatively, TwinCAT carries out the reset immediately. However, not all runtime systems are able to perform a reset without terminating the current cycle.
After the reset, you must start the PLC program with the Start command.
See also:
- PLC documentation: Remanent Variables - PERSISTENT, RETAIN
- PLC documentation: Resetting the PLC project
- Command Reset origin
- Command Start