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
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
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.
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)
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
ProductId
The ProductId of the product Object that represents the product to be selected
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
ProductId
The ProductId of the product Object that represents the product to be selected
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
ProductId
The ProductId of the product Object that represents the product to be selected
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
ProductId
The ID of the product Object that represents the product to be selected