5 managing recipes with recipemancommands, 1 create recipe, Create recipe – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual
Page 146: Appendix
![background image](/manuals/566296/146/background.png)
Appendix
Recipe manager
146
Lenze · ApplicationTemplate · 1.3 EN - 04/2013
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
12.4.5
Managing recipes with RecipeManCommands
This section contains information for the creation of recipes by means of the RecipeManCommands.
To create a recipe, the name of the recipe definition available (RecipeDef) has to be specified.
[12-6] Example: Recipe definition MM_Par_Modul1
12.4.5.1
Create Recipe
• ...creates a new (empty) recipe .
[12-7] Program example: Create the "Recipe1" recipe in the MM_Par_Modul1 recipe definition
Result: Afterwards the following files are available on the controller:
• The recipe manager has created the "Recipe1" recipe (file:
Recipe1.MM_Par_Modul1.txtrecipe).
• When the CreateRecipe is called, the applicable name of the
recipe definition (RecipeDef) has to be specified, example:
MM_Par_Modul1
VAR
_RecipeManCommands : RecipeManCommands;
_stRecipeDef : STRING := 'MM_Par_Modul1'; [Name of the recipe definition]
_stRecipe3 : STRING := 'Recipe1';
END_VAR
_RecipeManCommands.CreateRecipe(_stRecipeDef,_stRecipe3);