Saving the Values of a Persistent Variable List in a Recipe

Requirement: a project is opened and a persistent variable list with declarations of persistent variables exists under an application object.

  1. Double-click on the controller in the device tree and select the tab Communication Settings.

  2. Select your gateway and click on the button Scan network.

    Your device is shown in bold in the tree view of the gateway.

  3. Select your device and click on the button Set active path.

  4. Select your application object in the device tree and select the context menu command Set active application.

    The application object is displayed in bold.

  5. Select the menu command Online ‣ Login

    Your application is logged in to the controller and the controller and the application object in the device tree have a green background.

  6. Double-click on the persistent variable list and select the command Declarations ‣ Save current values to recipe.

    CODESYS creates the objects Recipe Manager and PersistentVariables under the application object.

  7. Select the menu command Online ‣ Logout.

    The application is logged out from the controller.

See also