5 Data encoding ToC Previous Next

5.3 OPC UA XML ToC Previous Next

5.3.2 Decimal ToC Previous Next

A Decimal Value is a encoded as an xs:complexType wit the following XML schema:

<xs:complexType name="Decimal">
<xs:element name="TypeId" type="tns:NodeId" minOccurs="0" />
<xs:element name="Body" minOccurs="0">
<xs:element name="Scale" type="xs:unsignedShort" />
<xs:element name="Value" type="xs:string" />

The NodeId is always the NodeId of the Decimal DataType. When encoded in a Variant the Decimal is encoded as an ExtensionObject. Arrays of Decimals are Arrays of ExtensionObjects.

The Value is a base-10 signed integer with no limit on size. See 5.1.7 for a description of the Scale and Value fields.

Previous Next