7.7 ProductionPresetType Definition

7.7.1 Overview

The ProductionPresetType defines the structure of an Object of ProductionPresetType. Figure 19 shows the hierarchical structure and details of the composition. It is formally defined in Table 28.

ProductionPresetType provides methods to manage the production preset.

Figure 19 - Overview ProductionPresetType

7.7.2 ObjectType Definition

Table 28 - ProductionPresetType Definition
Attribute Value
BrowseNameProductionPresetType
IsAbstractFalse
References NodeClass BrowseName DataType TypeDefinition ModellingRule
Subtype of the BaseObjectType defined in OPC 10000-5
0:HasComponentMethodAddProductOptional
0:HasComponentVariableCurrentProducts0:String[]BaseDataVariableTypeOptional
0:HasComponentMethodDeselectProductOptional
0:HasComponentMethodRemoveProductOptional
0:HasComponentMethodSelectProductOptional
0:HasComponentMethodSwitchProductOptional
0:HasComponentObject ProductsFolderTypeOptional
Conformance Units
Scales ManageProduct
Scales SelectProduct

7.7.3 ObjectType Description

CurrentProducts is an array containing the Ids of all product objects currently in processing mode. The product process can be started using the SelectProduct method or another interface or an external trigger signal.

Products contains the products used in the scale aggregated in the Products Object. The objects in the folder should have the type ProductType or a subtype of it. The subcomponents of the Products Object are defined in Table 29.

Table 29 - ProductionPresetType Additional Subcomponents
BrowsePath References NodeClass BrowseName DataType TypeDefinition Others
Products0:HasComponentObject<Product>ProductTypeMandatoryPlaceholder

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

7.7.5 Method SelectProduct

Selects the product. The scale is now able to process the product. This includes that the ID is saved in the CurrentProducts array and that the ProductMode switches from "Not processing" to "Processing". Table 32 and Table 33 specify the Arguments and AddressSpace representation, respectively.

Signature

	SelectProduct (
		[in]	String		ProductId
	);
Table 32 - SelectProduct Method Arguments
Argument Description
ProductIdThe ProductId of the product Object that represents the product to be selected
Table 33 - SelectProduct Method AddressSpace definition
Attribute Value
BrowseNameSelectProduct
References NodeClass BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariableInputArgumentsArgument[] 0:PropertyTypeMandatory

7.7.6 Method DeselectProduct

Deselects the product. The scale should stop to process the product. This includes that the ID is removed in the CurrentProducts array and that the ProductMode switches from "Processing" to "Not processing". The signature of this Method is specified below. Table 34 and Table 35 specify the Arguments and AddressSpace representation, respectively.

Signature

	DeselectProduct (
		[in]	String		ProductId
	);
Table 34 - DeselectProduct Method Arguments
Argument Description
ProductIdThe ProductId of the product Object that represents the product to be selected
Table 35 - DeselectProduct Method AddressSpace definition
Attribute Value
BrowseNameDeselectProduct
References NodeClass BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariableInputArgumentsArgument[] 0:PropertyTypeMandatory

7.7.7 Method RemoveProduct

The method removes an Object from the address space with a subtype of the ProductType. The signature of this Method is specified below. Table 36 and Table 37 specify the Arguments and AddressSpace representation, respectively.

Signature

	RemoveProduct (
		[in]	String		ProductId
	);
Table 36 - RemoveProduct Method Arguments
Argument Description
ProductIdThe ProductId of the product Object that represents the product to be selected
Table 37 - RemoveProduct Method AddressSpace definition
Attribute Value
BrowseNameRemoveProduct
References NodeClass BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariableInputArgumentsArgument[] 0:PropertyTypeMandatory

7.7.8 Method SwitchProduct

Selects the new product and deselects the old product. The scale is now able to process the new product. This includes that the new ID is saved in the CurrentProducts array and that the ProductMode switches from "Not processing" to "Processing". Additionally, the old ID is removed in the CurrentProducts array and the ProductMode of the old product switches from "Processing" to "Not Processing". This method is only possible if only one product is used. The signature of this Method is specified below. Table 38 and Table 39 specify the Arguments and AddressSpace representation, respectively.

Signature

	SwitchProduct (
		[in]	String		ProductId
	);
Table 38 – SwitchProduct Method Arguments
Argument Description
ProductIdThe ID of the product Object that represents the product to be selected
Table 39 - SwitchProduct Method AddressSpace definition
Attribute Value
BrowseNameSwitchProduct
References NodeClass BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariableInputArgumentsArgument[] 0:PropertyTypeMandatory