3 loadfromandwriterecipe, Loadfromandwriterecipe, Appendix – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual

Page 148

Advertising
background image

Appendix

Recipe manager

148

Lenze · ApplicationTemplate · 1.3 EN - 04/2013

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

12.4.5.3

LoadFromAndWriteRecipe

...loads the recipe from the file specified to "_stRecipe2" and
...writes the recipe to the current PLC values

[12-10] Example: Program view

Initial situation:

Result:
The values of the "Recipe_2011_10_01.txtrecipe" recipe (file) have been...

VAR

_RecipeManCommands : RecipeManCommands;

_stRecipeDef : STRING := 'MM_Par_Modul1';

[name of the recipe

definition]

_stRecipe1: STRING := 'Recipe1';

_stRecipe2: STRING := 'Recipe2';

_stRecipe3: STRING := 'Recipe3';

_stFileName1: STRING := 'Recipe2011_11_01.txtrecipe';

_stFileName3: STRING := 'Recipe3. MM_Par_Modul1.txtrecipe';

END_VAR

MM_Par.Par_Printer.lrPar1:=325.68;

MM_Par.Par_Printer.wPar4:= 375;

_RecipeManCommands.LoadFromAndWriteRecipe(_stRecipeDef,_stRecipe2,_stFileName1);

• The values (to be transferred) of the

"Recipe_2011_10_01.txtrecipe" recipe

definition.

• ...transferred to the current PLC values

(column

).

• ...transferred to the

"Recipe3.MM_Par_Modul1.txtrecipe"

recipe (file).

Advertising