9.2.3.4.2 Mapping of structure data types
Figure 23 – Mapping of structure data types

Ctrl servers shall support the binary encoding (“Default Binary”). Additionally, other encodings may be provided (not shown in above figure). Since OPC UA V1.04 a structured DataType provides the new attribute DataTypeDefinition. This attribute is defined in OPC 10000-6 – F.12. Implementations shall use this new attribute instead of the deprecated DataTypeDictionary.

A Server provides on a structured DataType Node the DataTypeDefinition attribute describing all elements and their order in this structure.

The Value of the DataTypeDefinition Attribute for a DataType Node describing ExampleIEC611313Structure is shown in Table 32.

Table 32 – Value of the DataTypeDefinition
Name Type Description
defaultEncodingIdNodeIdNodeId of the “ExampleIEC611313Structure_Encoding_DefaultBinary” Node.
baseDataTypeNodeId“i=22” [Structure]
structureTypeStructureTypeStructure_0 [Structure without optional fields]
fields [0]StructureField
nameString“IntStructureElement”
descriptionLocalizedTextDescription of IntStructureElement
dataTypeNodeId“i=4” [Int16]
valueRankInt32-1 (Scalar)
isOptionalBooleanFalse
fields [1]StructureField
NameString“RealStructureElement“
DescriptionLocalizedTextDescription of RealStructureElement
dataTypeNodeId“i=10” [Float]
valueRankInt32-1 (Scalar)
isOptionalBooleanfalse
fields [2]StructureField
nameString“BoolStructureElement“
descriptionLocalizedTextDescription of BoolStructureElement
dataTypeNodeId“i=1” [Boolean]
valueRankInt32-1 (Scalar)
isOptionalBooleanfalse