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
);| Argument | Description |
| ProductName | A user-readable name of this Batch. |
| ProductId | A unique Id of this product |
| ProductType | The NodeId of a subtype of the ProductType or the NodeId of the ProductType itself |
| ProductNodeId | The NodeId of the created Object |
| Attribute | Value | ||||
| BrowseName | AddProduct | ||||
| References | NodeClass | BrowseName | DataType | TypeDefinition | ModellingRule |
|---|---|---|---|---|---|
| 0:HasProperty | Variable | InputArguments | Argument[] | 0:PropertyType | Mandatory |
| 0:HasProperty | Variable | OutputArguments | Argument[] | 0:PropertyType | Mandatory |