Executing the Online Change

CODESYS automatically offers you an online change if you log in with an application that is already present on the controller, but has been changed since the last download in the programming system. With this procedure only the modified parts are reloaded to the controller. A running program on the controller is not stopped during the online change.

In the view Memory reserve for online change, you can configure memory reserves for the online change for function blocks of a project. In this way, instance variables do not have to be moved to the memory after changes are made to a function block for an online change.

Hint

When carrying out the online change, pay attention to the notes in the description of the Online change command.

See also

Executing the online change when logging in

Requirement: The connection settings of the controller are correctly set. The applications in the project and on the controller are identical. The project on the controller is running. The application is logged out.

  1. Change your application.

  2. Click Online ‣ Login .

    ⇒ A dialog appears with the information that the application has been changed since the last download.

  3. Click the Details… button

  4. Check the details in the Application information tab.

    If you have not generated any code since the last change, the command Application is not up to date. Generate code now? appears at the bottom edge of the dialog. In this case click this command.

    ⇒ You are shown a comparison view of the objects (objects marked red are different).

  5. Close the dialog.

  6. Select the option Login with Online Change and click OK.

    ⇒ The change is loaded to the controller. The running program on the controller is not stopped while doing this. The application is logged in.

See also

Execute online change in the logged-in state (online operation)

Requirement: The connection settings of the controller are correctly set. The applications in the project and on the controller are identical. The project on the controller is running. The application is logged in.

  1. Select an object in the device tree. It is best to select a POU or a GVL here.

  2. Click Project ‣ Edit object (offline) .

    ⇒ The object opens in the editor.

  3. Change the object. For example, you can declare a new variable or change a value assignment here.

  4. Click Online ‣ Online Change .

    ⇒ A query will appear, asking whether you really want to execute the online change.

  5. Click Yes to confirm the dialog.

    ⇒ The change is loaded to the controller.