7.7.4 Method AddProduct

The method creates an Object with a subtype of ProductType from the address space. The Object needs a reference of the type "0:HasComponent" to the product folder of the scale device. The signature of this Method is specified below. Table 30 and Table 31 specify the Arguments and AddressSpace representation, respectively.

Note: To simplify the handling, it is recommended that during the creation of the product the object is immediately locked for the client. (see section 7.8)

Signature

	AddProduct(
	[in]	String		ProductName
	[in]	String		ProductId
	[in]	NodeId		ProductType
	[out]	NodeId		ProductNodeId
	);
Table 30 - AddProduct Method Arguments
ArgumentDescription
ProductNameA user-readable name of this Batch.
ProductIdA unique Id of this product
ProductTypeThe NodeId of a subtype of the ProductType or the NodeId of the ProductType itself
ProductNodeIdThe NodeId of the created Object
Table 31 - AddProduct Method AddressSpace definition
Attribute Value
BrowseNameAddProduct
References NodeClass BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariableInputArgumentsArgument[] 0:PropertyTypeMandatory
0:HasPropertyVariableOutputArgumentsArgument[] 0:PropertyTypeMandatory