Command ‘Reset warm’ΒΆ

Function: This command resets all variables of the active application to their initialization values, except remanent variables (retain, persistent).

Call: Menu bar: Online .

Requirement: The application is in online mode.

If you have not defined any initialization values, then CODESYS resets the variables to the default initialization value (for example, integer variables to zero).

As a precaution, CODESYS requires you to confirm before it overwrites any variables. The situation is like when a power failure occurs or the PLC is switched off and on while the application is running (warm restart).

Breakpoints of the application that were activated before resetting the active application are still active after the execution of the command. Breakpoints that were deactivated previously are still inactive after executing the command.

If you execute this command when the program is halted at a breakpoint, then you will be prompted whether the current cycle should really be ended. Alternatively, CODESYS executes the reset immediately. However, not all runtime systems are able to perform a reset without first ending the current cycle.

Hint

If a safety controller is inserted below a PLC, then this command can temporarily interrupt the communication links of the safety controller to other safety controllers (via safety network variables), to field devices, and to the development system. The safe field devices and the other safety controller can enter the safe state as a reaction. The connection to the development system is affected only in the case of a safety controller that is connected to the main controller via a fieldbus. For more information, refer to the section “Subordinate Safety Controllers”.

After the reset, you must start the application by clicking Start.

See also