Skip to main content

Command: Load and Write Recipe

Symbol: _cds_icon_load_and_write_recipe.png

Function: The command loads a recipe from a file and writes the values to the variables in the PLC.

Call: Recipes menu

Requirement: The application is in online mode. You have selected the value of a recipe in the recipe definition.

After executing the command, you are prompted to either write the variable values also to the recipe in the project or to write them only to the controller. Updating the values in the recipe could require an online change when you log in again.

When you execute the command, CODESYS overwrites the values of the selected recipe of the recipe definition. Furthermore, these recipe values overwrite the variable values in the controller.

Tip

If you want to overwrite only individual recipe variables with new values, then remove the values for the other variables before loading to the recipe file. Entries without value definitions are not read, and therefore updating leaves these variables unchanged on the controller and in the project.

For values of the data type REAL/LREAL, the hexadecimal value is also written to the recipe file in some cases. This is necessary so that the exactly identical value is restored when converting back. In this case, change the decimal value and delete the hexadecimal value.

For more information, see: Using Recipes to Set Values