-

Writing Project Changes to the Controller

Note
The availability of the 'Write Changes' function described in this topic is controller-dependent.

Beside the 'Write and Start' commands, the controller context menu and cockpit may provide two commands 'Write and Start Project Changes' (with and without project sources). The purpose of these commands is to write and apply project modifications to the controller with one mouse click, without stopping the running controller.

If possible, the entire process is performed in real-time. Depending on the modifications made in the current project and the controller performance/usage, however, real-time violations may occur when the controller switches to the new project because user tasks may not be processed for a short time. Refer to the section "Background: Exact task scheduling vs. real-time violation" for details.

WARNING
Unintended machine operation
  • Make sure that any real-time violations which may occur when executing the 'Write and Start Project Changes' command cannot result in any hazardous situations.
  • Verify the effect of possible real-time violations on the timing and performance of your entire application.
  • Observe the regulations given by relevant sector standards while the machine is running in any other operating mode than "operational".
  • Use appropriate safety interlocks where personnel and/or equipment hazards exist.

'Write and Start Project Changes' is possible while the controller is in STOP or RUN state. If performed in STOP state, it is started automatically afterwards. If possible, a hot start is executed. Otherwise, a warm or cold start is made. If the controller is in RUN state when executing the 'Write and Start Project Changes' command, the runtime takes the required data/values from the "old" project version in real-time (if possible) and continues program execution. This corresponds to an implicit hot start.

After completing the Write Project Changes operation and when the controller executes the modified program, PLCnext Engineer automatically activates the debug mode, i.e., all currently opened variables tables and code worksheets display variables values read from the target.

Note
The descriptions in this topic also apply to the command 'Write and Start Project Changes (with sources)' which includes the project sources and stores them on the controller.

Observe that there are some restrictions (listed below), i.e., situations when writing changes to the controller is not possible due to the project modification you made before.

Use cases: writing project changes is possible after...

Restrictions

Treatment of data types

How to write project changes

Background: Exact task scheduling vs. real-time violation

Modifications in SFC POUs: Potentially hazardous modifications