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 25.

ProductionPresetType provides methods to manage the Production preset.

image032.png

Figure 19 – Overview ProductionPresetType

Table 25 – ProductionPresetType Definition

Attribute

Value

BrowseName

ProductionPresetType

IsAbstract

False

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

Subtype of the BaseObjectType defined in OPC 10000-5

0:HasComponent

Method

AddProduct

Optional

0:HasComponent

Variable

CurrentProducts

0:String[]

BaseDataVariableType

Optional

0:HasComponent

Method

DeselectProduct

Optional

0:HasComponent

Method

RemoveProduct

Optional

0:HasComponent

Method

SelectProduct

Optional

0:HasComponent

Method

SwitchProduct

Optional

0:HasComponent

Object

Products

FolderType

Optional

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 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 26 and Table 27 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 8.8)

Signature

AddProduct(

[in]String ProductName

[in]String ProductId

[in]NodeId ProductType

[out]NodeId ProductNodeId

);

Table 26 – AddProduct Method Arguments

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

Table 27 – AddProduct Method AddressSpace definition

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

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

Signature

SelectProduct (

[in]String ProductId

);

Table 28 – SelectProduct Method Arguments

Argument

Description

ProductId

The ProductId of the product Object that represents the product to be selected

Table 29 – SelectProduct Method AddressSpace definition

Attribute

Value

BrowseName

SelectProduct

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

0:HasProperty

Variable

InputArguments

Argument[]

0:PropertyType

Mandatory

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

Signature

DeselectProduct (

[in]String ProductId

);

Table 30 – DeselectProduct Method Arguments

Argument

Description

ProductId

The ProductId of the product Object that represents the product to be selected

Table 31 – DeselectProduct Method AddressSpace definition

Attribute

Value

BrowseName

DeselectProduct

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

0:HasProperty

Variable

InputArguments

Argument[]

0:PropertyType

Mandatory

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

Signature

RemoveProduct (

[in]String ProductId

);

Table 32 – RemoveProduct Method Arguments

Argument

Description

ProductId

The ProductId of the product Object that represents the product to be selected

Table 33 – RemoveProduct Method AddressSpace definition

Attribute

Value

BrowseName

RemoveProduct

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

0:HasProperty

Variable

InputArguments

Argument[]

0:PropertyType

Mandatory

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 currentProduct array and that the ProductMode switches from "Not processing" to "Processing". Additionally, the old ID is removed in the currentProduct 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 34 and Table 35 specify the Arguments and AddressSpace representation, respectively.

Signature

SwitchProduct (

[in]String ProductId

);

Table 34 – SwitchProduct Method Arguments

Argument

Description

ProductId

The Id of the product Object that represents the product to be selected

Table 35 – SwitchProduct Method AddressSpace definition

Attribute

Value

BrowseName

SwitchProduct

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

0:HasProperty

Variable

InputArguments

Argument[]

0:PropertyType

Mandatory