4 writerecipe, Writerecipe, Appendix – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual

Page 149

Advertising
background image

Lenze · ApplicationTemplate · 1.3 EN - 04/2013

149

Appendix

Recipe manager

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

12.4.5.4

WriteRecipe

...writes the values of a recipe to the PLC variables.

[12-11] Example: Program view

Initial situation:

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

VAR

_RecipeManCommands : RecipeManCommands;

_stRecipeDef : STRING := 'MM_Par_Modul1';

[name of the recipe definition]

_stRecipe2 : STRING := 'Recipe2';

END_VAR

_RecipeManCommands.WriteRecipe(_stRecipeDef,_stRecipe2);

• The values (to be transferred) of the

"Recipe2.MM_Par_Modul1.txtrecipe" recipe file.

• ...transferred to the values of

MFB_Module1.

• ...transferred to the current PLC values

(column

).

Advertising