Command ‘Load and write Recipe’

Symbol: 3b6c46cdf956b2bec0a8640e00a1a9ad_d1a6040cfd4eaa79c0a8640e01d2c3e8

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

Call: Main menu Recipes.

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

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

When you choose this command, CODESYS overwrites the values of the selected recipe of the recipe definition. In addition, these recipe values overwrite the variable values in the controller.

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. In the following example, when the entries of a recipe file are loaded, only PLC_PRG.iVar is written with a new value (6).

PLC_PRG.bVar:=
PLC_PRG.iVar:=6
PLC_PRG.dwVar:=
PLC_PRG.stVar:=
PLC_PRG.wstVar:=

See also