Command Load Recipe

Symbol: Command Load Recipe 1:

Function: The command loads a recipe from a file.

Call: Recipes menu; context menu

Requirement: A field is selected in the recipe column of a recipe definition.

When you run the command, the standard dialog for selecting a file opens. The filter is automatically set to the file extension *.txtrecipe. After loading, the values of the selected recipe in the recipe definition are overwritten, and the display is updated.

If you want to overwrite only individual recipe variables with new values, remove the values for the other variables before loading the recipe into the recipe file. Entries without value specification are not read, which means that these variables are unaffected by the update on the controller and in the project. The following is an example of the entries in a recipe file. When it is loaded, only MAIN.nVar is written with a new value (6):

MAIN.nVar1:=
MAIN.nVar2:=6
MAIN.nVar3:=
MAIN.sVar4:=
MAIN.wsVar5:=

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

See also: