RecipeManCommands.ReadAndSaveRecipeAs (METH)¶
METHOD ReadAndSaveRecipeAs : DWORD
Reads the current PLC values into the recipe and afterwards stores the recipe into the specified recipe file
The content of an existing file will be overridden.
Attention: The behaviour from this method has changed in the following way. If both parameters „RecipeDefinitionName“ and „RecipeName“ are set (stringlength > 0) the behaviour is not changed. In this case a read to a specific recipe does also an
automatically save to the recipe when the option „Save recipes changes to recipe files automatically“ is set in the RecipeManager configuration „General“.
If the RecipeName is not set (stringlength = 0) the behaviour has changed. In this case an automatically save to the recipe is not executed and the new recipe values are only stored into the given file name.
- InOut:
Scope
Name
Type
Comment
Return
ReadAndSaveRecipeAsDWORDPossible last error values:
See ReturnValues (GVL) for a description of all possible errors.
Inout Const
RecipeDefinitionNameSTRINGName of the recipe definition.
RecipeNameSTRINGName of the recipe.
FileNameSTRING(255)Name of the file