GetCurrentVersion

(Recipe Book module)

Description:

Returns the current version of the current recipe

Returns: Numeric
Usage: Script Only.
Function Groups: Recipe Book
Related to: GetRecipes | GetVersions | GetCurrentRecipe | SetCurrentRecipe | SetCurrentVersion |
Format: RecipeBook.GetCurrentVersion([GetFromTag])
Parameters:  
GetFromTag

Optional Boolean. If FALSE (default), the name of the selected recipe is returned.

If TRUE, the name of the recipe as read out of the PLC is returned if the PLC supports this and if the Recipe Version ingredient tag has been given an address for reading this value.

Comments:

"RecipeBook" must be a reference to a Recipe Book tag object, not the name of the tag.