RecipeManCommands
(FB)
FUNCTION_BLOCK RecipeManCommands
The methods of the RecipeManCommands function block allow the programmatic management of recipes.
Note
The application creates recipe files automatically on the PLC with the names <recipe>.<recipe definition>.txtrecipe
.
These are used as a buffer when reading and writing recipe variables. The “Save recipe changes to recipe files automatically” option in the Recipe Manager - “General” tab affects access to these files.
When the recipe command is called, the application accesses the recipe files internally. This can take a few milliseconds depending on the device type. The calls are not executed in a task with time monitoring or in a predefined time frame (real-time sensitive).
Note
If the “Save recipe changes to recipe files automatically” option is activated, then the recipes of the definition in CODESYS and the implicit recipe files on the PLC are kept the same automatically. Changing recipes also leads to file access.
Deactivate this option if the application controls the saving of files programmatically.
Refer to the sample project “Recipe Management” in CODESYS Store for more information about this topic.
Methods:
CreateRecipe
CreateRecipeNoSave
DeleteRecipe
DeleteRecipeFile
GetLastError
GetLastInfo
GetRecipeCount
GetRecipeNames
GetRecipeValues
GetRecipeValuesSizeOf
GetRecipeVariableNames
LoadAndWriteRecipe
LoadFromAndWriteRecipe
LoadRecipe
ReadAndSaveAs
ReadAndSaveRecipe
ReadAndSaveRecipeAs
ReadRecipe
RegisterDatasourceRecipeDefinition
ReloadRecipes
ResetLastError
ResetLastInfo
SaveRecipe
SetRecipeValues
SetStoragePath
WriteRecipe
prvCompareRecipe
Structure:
RecipeManCommands.CreateRecipe
(METH)RecipeManCommands.CreateRecipeNoSave
(METH)RecipeManCommands.DeleteRecipe
(METH)RecipeManCommands.DeleteRecipeFile
(METH)RecipeManCommands.GetLastError
(METH)RecipeManCommands.GetLastInfo
(METH)RecipeManCommands.GetRecipeCount
(METH)RecipeManCommands.GetRecipeNames
(METH)RecipeManCommands.GetRecipeValues
(METH)RecipeManCommands.GetRecipeValuesSizeOf
(METH)RecipeManCommands.GetRecipeVariableNames
(METH)RecipeManCommands.LoadAndWriteRecipe
(METH)RecipeManCommands.LoadFromAndWriteRecipe
(METH)RecipeManCommands.LoadRecipe
(METH)Private
RecipeManCommands.ReadAndSaveAs
(METH)RecipeManCommands.ReadAndSaveRecipe
(METH)RecipeManCommands.ReadAndSaveRecipeAs
(METH)RecipeManCommands.ReadRecipe
(METH)RecipeManCommands.RegisterDatasourceRecipeDefinition
(METH)RecipeManCommands.ReloadRecipes
(METH)RecipeManCommands.ResetLastError
(METH)RecipeManCommands.ResetLastInfo
(METH)RecipeManCommands.SaveRecipe
(METH)RecipeManCommands.SetRecipeValues
(METH)RecipeManCommands.SetStoragePath
(METH)RecipeManCommands.WriteRecipe
(METH)