The OPEN-SCS model for aggregation management when adapted to OPC UA results in two methods attached to an aggregation manager object.
The aggregation manager receives unsolicited events through the aggregation methods. The aggregation methods have the same method signature. The specific methods supported by an aggregation manager are defined in profiles.
Figure 14 – Aggregation Manager Methods and Data
Table 42 is the AddressSpace definition of an OPENSCSAggregationManagerObjectType.
Table 42 – OPENSCSAggregationManagerObjectType AddressSpace Definition
Attribute |
Value |
||||
BrowseName |
OPENSCSAggregationManagerObjectType |
||||
IsAbstract |
False |
||||
References |
NodeClass |
BrowseName |
Data Type |
TypeDefinition |
Other |
Subtype of the BaseObjectType defined in OPC 10000-5 |
|||||
0:HasComponent |
Method |
AggregationPackingEvent |
|
See 6.3.3.1. |
M |
0:HasComponent |
Method |
AggregationUnpackingEvent |
|
See 6.3.3.2. |
M |
0:HasProperty |
Variable |
MaxAggregationEvents |
0:UInt32 |
0:PropertyType |
M |
MaxAggregationEvents - Defines a read-only maximum number of AggregationElements for packing and unpacking events which can be received in a single method call.
AggregationPackingEvent – This method is used to send unsolicited notification of Aggregation Packing events to an OPC Server that is performing aggregation management.
The signature of this Method is specified below. Table 43 and Table 44 specify the Arguments and AddressSpace representation, respectively.
Signature
AggregationPackingEvent (
[in] OPENSCSAggregationDataType[] AggregationElement
[in] String ParentSNFormat
[in] String PackedElementSNFormat
[in] OPENSCSKeyValueDataType[] AggregationContext
[out] OPENSCSReturnEnum ReturnStatus
);
Table 43 – AggregationPackingEvent Method Arguments
Argument |
Description |
AggregationElement |
Specifies the parent element and the packed element collection that is to be added to the parent element. |
ParentSNFormat |
Defines the format of the parent Serial Numbers associated to the event. |
PackedElementSNFormat |
Defines the format of the packed element Serial Numbers associated to the event. |
AggregationContext |
Zero or mode key value pairs that define additional context information for the event, such as order number or lot number. |
ReturnStatus |
Returns the status of the method execution. |
Method Result Codes are defined as part of the Call service (see OPC 10000-4 and Table 95).
Table 44 – AggregationPackingEvent Method AddressSpace Definition
Attribute |
Value |
||||
BrowseName |
AggregationPackingEvent |
||||
IsAbstract |
True |
||||
References |
NodeClass |
BrowseName |
DataType |
TypeDefinition |
ModellingRule |
0:HasProperty |
Variable |
InputArguments |
Argument[] |
0:PropertyType |
Mandatory |
0:HasProperty |
Variable |
OutputArguments |
Argument[] |
0:PropertyType |
Mandatory |
AggregationUnpackingEvent – This method is used to send unsolicited notification of Aggregation Unpacking events to an OPC Server that is performing aggregation management.
The signature of this Method is specified below. Table 45 and Table 46 specify the Arguments and AddressSpace representation, respectively.
Signature
AggregationUnpackingEvent (
[in] OPENSCSAggregationDataType[] AggregationElement
[in] String ParentSNFormat
[in] String PackedElementSNFormat
[in] OPENSCSKeyValueDataType[] AggregationContext
[out] OPENSCSReturnEnum ReturnStatus
);
Table 45 – AggregationUnpackingEvent Method Arguments
Argument |
Description |
AggregationElement |
Specifies the parent element and the packed element collection that is to be removed from the parent element. |
ParentSNFormat |
See 6.3.3.1 |
PackedElementSNFormat |
See 6.3.3.1 |
AggregationContext |
See 6.3.3.1 |
ReturnStatus |
See 6.3.3.1 |
Method Result Codes are defined as part of the Call service (see OPC 10000-4 and Table 95).
Table 46 – AggregationUnpackingEvent Method AddressSpace Definition
Attribute |
Value |
||||
BrowseName |
AggregationUnpackingEvent |
||||
IsAbstract |
True |
||||
References |
NodeClass |
BrowseName |
DataType |
TypeDefinition |
ModellingRule |
0:HasProperty |
Variable |
InputArguments |
Argument[] |
0:PropertyType |
Mandatory |
0:HasProperty |
Variable |
OutputArguments |
Argument[] |
0:PropertyType |
Mandatory |