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

Page 727

Advertising
background image

L-force | PLC Designer

General Editors

DMS 4.1 EN 03/2011 TD29

725

GetRecipeValues: This method returns the recipe values 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.
iStringLength - The string length of the strings in the array.
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 values at a
time.
We define a Stringarray strArr: ARRAY[0..9] OF STRING;
Corresponding to the iStartIndex we can get the recipe values from a specific area.
iStartIndex := 0; The values 0..9 are returned.
iStartIndex := 20; The values 20..29 are returned.
In this example:
iStringLength := 80;
iSize := 10;

Advertising