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

ProductionPresetType provides methods to manage the production preset.

image031.gif

Figure 19 − Overview ProductionPresetType

Table 24 − 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 25 and Table 26 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 25 – 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 26 – 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 CurrentProducts array and that the ProductMode switches from "Not processing" to "Processing". Table 27 and Table 28 specify the Arguments and AddressSpace representation, respectively.

Signature

SelectProduct (

[in]String ProductId

);

Table 27 – SelectProduct Method Arguments

Argument

Description

ProductId

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

Table 28 – 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 CurrentProducts array and that the ProductMode switches from "Processing" to "Not processing". The signature of this Method is specified below. Table 29 and Table 30 specify the Arguments and AddressSpace representation, respectively.

Signature

DeselectProduct (

[in]String ProductId

);

Table 29 – DeselectProduct Method Arguments

Argument

Description

ProductId

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

Table 30 – 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 31 and Table 32 specify the Arguments and AddressSpace representation, respectively.

Signature

RemoveProduct (

[in]String ProductId

);

Table 31 – RemoveProduct Method Arguments

Argument

Description

ProductId

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

Table 32 – 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 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 33 and Table 34 specify the Arguments and AddressSpace representation, respectively.

Signature

SwitchProduct (

[in]String ProductId

);

Table 33 – SwitchProduct Method Arguments

Argument

Description

ProductId

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

Table 34 – SwitchProduct Method AddressSpace definition

Attribute

Value

BrowseName

SwitchProduct

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

0:HasProperty

Variable

InputArguments

Argument[]

0:PropertyType

Mandatory