Standard recipe |
Manual -> Standard recipes -> Operating during Runtime -> Recipe - Functions -> Standard recipe |
Show all Hide all |
With this function an existing recipe can be executed, read from the hardware or exported in the Runtime. Additionally new recipes can be imported or created with the current values from the hardware.
Give the recipe as a transfer parameter. This function is configured via a dialog mask.
Configurable options are:
Select recipe |
Selection of the recipe that should be read or written |
Recipe name from variable |
The name of the recipe that should be read or written is given by the selected variable. |
Configurable options are:
Write values |
The values of the variables of the selected recipe are written to the PLC. |
Read values |
The values of the variables of the selected recipe are read from the PLC and replace the current values in the recipe. |
Duplicate Recipe |
The source recipe creates a copy of itself with the name of the target recipe. The name of the duplicated recipe is not stored in the variable _LASTNEWRECIPE. If "Duplicate recipe" is selected, the following additional options are available: |
Attention |
The string variable has the contain a valid recipe name, e.g. Recipe_4, before executing the function. Otherwise the function cannot be executed. |
Select target recipe |
Selection of an existing recipe, which should be overwritten with the data of the source recipe. |
Attention |
The data of the target recipe are overwritten. |
New Recipe (Generate name) |
A new recipe according to the standard syntax is created. |
Example |
Recipe_0 and recipe_2 already exist. Duplicating for the first time creates a recipe with the name recipe_1. Duplicating a second time creates a recipe with the name Default_3. The gaps in the list of recipes are filled with generating the names automatically. |
Target recipe from variable |
The name of the target recipe is defined by the contents of a string variable. |