7.2 RecipeManagementType ObjectType Definition

7.2.1 Overview

The RecipeManagementType is the entry point for the recipe management on the TTD. It provides an array of RecipeIds containing the metadata of all recipes that are stored on the TTD as well as methods for accessing the content of the recipe and methods for adding/deleting recipes to/from the TTD.

The RecipeManagementType is formally defined in Table 20.

Table 20 – RecipeManagementType Definition
Attribute Value
BrowseNameRecipeManagementType
IsAbstractFalse
References Node Class BrowseName DataType TypeDefinition Other
Subtype of 0:BaseObjectType defined in OPC 10000-5
0:HasPropertyVariableRecipeIdsRecipeIdDataType[]0:PropertyTypeM
0:HasComponentMethodGetRecipeIdsM
0:HasComponentMethodGetRecipeO
0:HasComponentMethodSetRecipeO
0:HasComponentMethodDeleteRecipeO
0:HasComponentMethodGetRecipesO
0:HasComponentMethodSetRecipesO
Conformance Units
TTD_RecipeManagementType

RecipeIds is a Property that stores the metainformation for all recipes that are stored on the TTD.

GetRecipeIds is a Method that is used to retrieve the metadata for all recipes that are stored on the TTD.

GetRecipe is a Method that is used to retrieve the content of a recipe with a given id.

SetRecipe is a Method that is used to store a recipe on the TTD. A flag is used to indicate if the recipe should be overwritten if a recipe with the same id already exists on the TTD.

DeleteRecipe is a Method that is used to remove a recipe from the TTD. The id of the recipe is used to identify the recipe that is to be deleted.

GetRecipes is a Method that is used to retrieve all recipes (metadata and content) that are stored on the TTD at once.

SetRecipes is a Method that is used to store a set of recipes on the TTD. A flag is used to indicate if the recipes should be overwritten if a recipe with the same id already exists on the TTD.

7.2.2 GetRecipeIds

The Method GetRecipeIds is used to get information about all recipes that are stored on the TTD. The recipe metadata for all recipes is returned in the output parameter RecipeIds.

The signature of this Method is specified below. Table 21 and Table 22 specify the Arguments and AddressSpace representation, respectively.

Signature

	GetRecipeIds (
		[out]	RecipeIdDataType[]	RecipeIds)
Table 21 – GetRecipeIds Method Arguments
Argument Description
RecipeIdsAn array containing the recipe ids that are stored on the device.
Table 22 – GetRecipeIds Method AddressSpace Definition
Attribute Value
BrowseNameGetRecipeIds
References Node Class BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariable0:OutputArguments0:Argument[]0:PropertyType0:Mandatory

7.2.3 GetRecipe

The Method GetRecipe is used to get the recipe content for a given RecipeId. The RecipeId has to match the system-wide unique Id property of the RecipeIdDataType associated with the recipe on the TTD. The output parameter Recipe is used to return the recipe.

The signature of this Method is specified below. Table 23 and Table 24 specify the Arguments and AddressSpace representation, respectively.

Signature

	GetRecipe (
		[in]	0:String	RecipeId,
		[out]	RecipeDataType	Recipe)
Table 23 – GetRecipe Method Arguments
Argument Description
RecipeIdThe id of the recipe that is to be retrieved.
RecipeThe recipe.

Method Result Codes (defined in Call Service)

Result Code Description
Bad_NotFoundSee OPC 10000-4 for a general description. Returned when there is no Recipe with the given RecipeId.
Table 24 – GetRecipe Method AddressSpace Definition
Attribute Value
BrowseNameGetRecipe
References Node Class BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariable0:InputArguments0:Argument[]0:PropertyType0:Mandatory
0:HasPropertyVariable0:OutputArguments0:Argument[]0:PropertyType0:Mandatory

7.2.4 SetRecipe

The Method SetRecipe is used to store a recipe on the TTD. Beneath the Recipe that is to be stored on the TTD the method takes an additional input parameter Overwrite that indicates if the recipe should be overwritten in case a recipe with the same id already exists on the TTD.

The signature of this Method is specified below. Table 25 and Table 26 specify the Arguments and AddressSpace representation, respectively.

Signature

	SetRecipe (
		[in]	RecipeDataType	Recipe,
		[in]	0:Boolean	Overwrite)
Table 25 – SetRecipe Method Arguments
Argument Description
RecipeThe recipe that is to be stored on the TTD.
OverwriteA flag is used to indicating if the Recipe shall be overridden if there is already a recipe with the same id on the TTD.

Method Result Codes (defined in Call Service)

Result Code Description
Bad_InvalidStateReturned when the Overwrite flag is set to false and a Recipe with the same id already exists on the server so that the server is not allowed to overwrite.
Bad_NotSupportedReturned if the Overwrite flag is set but not supported by the server.
Table 26 – SetRecipe Method AddressSpace Definition
Attribute Value
BrowseNameSetRecipe
References Node Class BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariable0:InputArguments0:Argument[]0:PropertyType0:Mandatory

7.2.5 DeleteRecipe

The Method DeleteRecipe is used to delete a recipe from the TTD. The given RecipeId has to match the system-wide unique Id property of the RecipeIdDataType associated with the recipe on the TTD.

The signature of this Method is specified below. Table 27 and Table 28 specify the Arguments and AddressSpace representation, respectively.

Signature

	DeleteRecipe (
		[in]	0:String	RecipeId)
Table 27 – DeleteRecipe Method Arguments
Argument Description
RecipeIdThe id of the recipe that is to be deleted.

Method Result Codes (defined in Call Service)

Result Code Description
Bad_NotFoundSee OPC 10000-4 for a general description. Returned when there is no Recipe with the given RecipeId.
Table 28 – DeleteRecipe Method AddressSpace Definition
Attribute Value
BrowseNameDeleteRecipe
References Node Class BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariable0:InputArguments0:Argument[]0:PropertyType0:Mandatory

7.2.6 GetRecipes

The Method GetRecipes is used to get the recipe content for all recipes stored on the TTD. The output parameter Recipes is used to return all recipes that are currently stored on the TTD.

The signature of this Method is specified below. Table 29 and Table 30 specify the Arguments and AddressSpace representation, respectively.

Signature

	GetRecipes (
		[out]	RecipeDataType[] Recipes)
Table 29 – GetRecipes Method Arguments
Argument Description
RecipesAn array of all stored recipes on the TTD.

Method Result Codes (defined in Call Service)

Result Code Description
BadEncodingLimitsExceededReturned when the size of the Recipes on the TTD exceeds the maximum message size of the server. This may happen if a large number of Recipes are stored on the TTD and the maximum message size is configured small.
Table 30 – GetRecipes Method AddressSpace Definition
Attribute Value
BrowseNameGetRecipes
References Node Class BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariable0:OutputArguments0:Argument[]0:PropertyType0:Mandatory

7.2.7 SetRecipes

The Method SetRecipes is used to store a set of recipes on the TTD. Beneath the Recipes that are to be stored on the TTD the method takes an additional input parameter Overwrite that indicates if the recipes should be overwritten in case a recipe with the same id already exists on the TTD.

The signature of this Method is specified below. Table 31 and Table 32 specify the Arguments and AddressSpace representation, respectively.

Signature

	SetRecipes (
		[in]	RecipeDataType[]	Recipes,
		[in]	0:Boolean	Overwrite)
Table 31 – SetRecipes Method Arguments
Argument Description
RecipesAn array of recipes that is to be stored on the TTD.
OverwriteA flag indicating if recipes should be replaced if there are already recipes with the same id on the TTD.
Table 32 – SetRecipes Method AddressSpace Definition
Attribute Value
BrowseNameSetRecipes
References Node Class BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariable0:InputArguments0:Argument[]0:PropertyType0:Mandatory