RecipeManCommands.CreateRecipe (METH) ¶ METHOD CreateRecipe : DWORD Creates a new recipe in the given recipe definition The method reads the current PLC values to the new recipe and saves them as a recipe file with the default name. The default name is <recipe>.<recipe definition>.<recipe extension> . At the end the new recipe would be stored in the default file. InOut: Scope Name Type Comment Return CreateRecipe DWORD Possible last error values: ERR_RECIPE_DEFINITION_NOT_FOUND ERR_RECIPE_ALREADY_EXIST ERR_RECIPE_NOMEMORY ERR_NO_RECIPE_MANAGER_SET ERR_OK See ReturnValues (GVL) for a description of all possible errors. Inout Const RecipeDefinitionName STRING Name of the recipe definition RecipeName STRING Name of the recipe
RecipeManCommands.CreateRecipeNoSave (METH) ¶ METHOD CreateRecipeNoSave : DWORD Creates a new recipe in the specified recipe definition and afterwared reads the current PLC values into the new recipe InOut: Scope Name Type Comment Return CreateRecipeNoSave DWORD Possible last error values: ERR_RECIPE_DEFINITION_NOT_FOUND ERR_RECIPE_ALREADY_EXIST ERR_RECIPE_NOMEMORY ERR_NO_RECIPE_MANAGER_SET ERR_OK See ReturnValues (GVL) for a description of all possible errors. Inout Const RecipeDefinitionName STRING Name of the recipe definition RecipeName STRING Name of the recipe
RecipeManCommands.DeleteRecipe (METH) ¶ METHOD DeleteRecipe : DWORD Removes a recipe from the recipe definition InOut: Scope Name Type Comment Return DeleteRecipe DWORD Possible last error values: ERR_RECIPE_DEFINITION_NOT_FOUND ERR_RECIPE_NOT_FOUND ERR_NO_RECIPE_MANAGER_SET ERR_OK See ReturnValues (GVL) for a description of all possible errors. Inout Const RecipeDefinitionName STRING Name of the recipe definition RecipeName STRING Name of the recipe
RecipeManCommands.DeleteRecipeFile (METH) ¶ METHOD DeleteRecipeFile : DWORD Removes the standard recipe file from a recipe The standard recipe file has the file name <recipe>.<recipedefinition>.<extension> . InOut: Scope Name Type Comment Return DeleteRecipeFile DWORD Possible last error values: ERR_RECIPE_DEFINITION_NOT_FOUND ERR_RECIPE_NOT_FOUND ERR_RECIPE_FILE_NOT_FOUND ERR_NO_RECIPE_MANAGER_SET ERR_OK See ReturnValues (GVL) for a description of all possible errors. Inout Const RecipeDefinitionName STRING Name of the recipe definition RecipeName STRING Name of the recipe
RecipeManCommands.GetLastError (METH) ¶ METHOD GetLastError : DWORD Returns the last error of the previous operation InOut: Scope Name Type Comment Return GetLastError DWORD See ReturnValues (GVL) for a description of all possible errors.
RecipeManCommands.GetLastInfo (METH) ¶ METHOD GetLastInfo : InfoValues Returns the last information of the previous operation InOut: Scope Name Type Comment Return GetLastInfo InfoValues See ReturnValues (GVL) for a description of all possible errors.
RecipeManCommands.GetRecipeCount (METH) ¶ METHOD GetRecipeCount : INT Returns the recipe count of the corresponding recipe definition InOut: Scope Name Type Comment Return GetRecipeCount INT Possible last error values: ERR_RECIPE_DEFINITION_NOT_FOUND ERR_NO_RECIPE_MANAGER_SET ERR_OK See ReturnValues (GVL) for a description of all possible errors. Inout Const RecipeDefinitionName STRING Name of the recipe definition
RecipeManCommands.GetRecipeNames (METH) ¶ METHOD GetRecipeNames : DWORD Returns the recipe names from the corresponding recipe definition Example: We have 50 recipes. We want to create a table which shows 10 recipe names at the same time. We define a string array strArr: ARRAY[0..9] OF STRING ; Corresponding to the iStartIndex we can get the recipe names from a specific area. StartIndex := 0; The names 0..9 are returned. iStartIndex := 20; The names 20..29 are returned. In this example: iSize := 10; InOut: Scope Name Type Comment Return GetRecipeNames DWORD Possible last error values: ERR_RECIPE_DEFINITION_NOT_FOUND ERR_NO_RECIPE_MANAGER_SET ERR_OK See ReturnValues (GVL) for a description of all possible errors. Inout Const RecipeDefinitionName STRING Name of the recipe definition Input pStrings POINTER TO ARRAY [0..0] OF STRING The strings were the recipe values should be stored iSize INT Size of the string array iStartIndex INT Start index. Can be used for a scrolling function (see example)
RecipeManCommands.GetRecipeValues (METH) ¶ METHOD GetRecipeValues : DWORD Returns the recipe values from the corresponding recipe. Example: We have 50 recipe values. We want to create a table which shows 10 recipe values at the same time. We define a string array 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; The default STRING has 80 characters. iSize := 10; InOut: Scope Name Type Comment Return GetRecipeValues DWORD Possible last error values: ERR_RECIPE_DEFINITION_NOT_FOUND ERR_RECIPE_NOT_FOUND ERR_NO_RECIPE_MANAGER_SET ERR_OK See ReturnValues (GVL) for a description of all possible errors. Inout Const RecipeDefinitionName STRING Name of the recipe definition. RecipeName STRING Name of the recipe. Input pStrings POINTER TO ARRAY [0..0] OF STRING The strings where the recipe values should be stored. iSize INT Size of the string array. iStartIndex INT Start index. Can be used for a scrolling function. (See example). iStringLength INT Length of a string in the pStrings array. It should correspond to the actual amount of characters.
RecipeManCommands.GetRecipeValuesSizeOf (METH) ¶ METHOD GetRecipeValuesSizeOf : DWORD Returns the recipe values from the corresponding recipe. Example: We have 50 recipe values. We want to create a table which shows 10 recipe values at the same time. We define a string array 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: iSizeOfString := TO_INT(SIZE_OF(strArr[0])); iSize := 10; InOut: Scope Name Type Comment Return GetRecipeValuesSizeOf DWORD Possible last error values: ERR_RECIPE_DEFINITION_NOT_FOUND ERR_RECIPE_NOT_FOUND ERR_NO_RECIPE_MANAGER_SET ERR_OK See ReturnValues (GVL) for a description of all possible errors. Inout Const RecipeDefinitionName STRING Name of the recipe definition. RecipeName STRING Name of the recipe. Input pStrings POINTER TO ARRAY [0..0] OF STRING The strings where the recipe values should be stored. iSize INT Size of the string array. iStartIndex INT Start index. Can be used for a scrolling function. (See example). iSizeOfString INT Size of a string in the pStrings array. It should correspond to the actual number of bytes provided by the SIZEOF operator.