L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 728

L-force | PLC Designer
General Editors
726
DMS 4.1 EN 03/2011 TD29
GetRecipeValues: This method returns the recipe variable names from the
corresponding recipe.
Parameters:
RecipeDefinitionName - Name of the recipe definition.
RecipeName - Name of the recipe.
pStrings - The strings were the recipe values should be stored.
iSize - The size of the string array.
iStartIndex - The start index. Can be used for a scrolling function.
Return values:
ERR_NO_RECIPE_MANAGER_SET, ERR_RECIPE_DEFINITION_NOT_FOUND,
ERR_RECIPE_NOT_FOUND, ERR_FAILED, ERR_OK
Example:
We have 50 recipe values. We want to create a table which shows 10 recipe variable
names at a time.
We define a Stringarray strArr: ARRAY[0..9] OF STRING;
Corresponding to the iStartIndex we can get the recipe variable names from a specific
area.
iStartIndex := 0; The names 0..9 are returned.
iStartIndex := 20; The names 20..29 are returned.
In this example:
iSize := 10;
SetRecipeValues: This method sets the recipe values into the corresponding recipe.
Parameters:
RecipeDefinitionName - Name of the recipe definition.
RecipeName - Name of the recipe.
pStrings - The strings where the recipe values should be stored.
iSize - The size of the string array.
iStartIndex - The start index. Can be used for a scrolling function.
Return values:
ERR_NO_RECIPE_MANAGER_SET, ERR_RECIPE_DEFINITION_NOT_FOUND,
ERR_RECIPE_NOT_FOUND, ERR_FAILED, ERR_OK