Encoding of data type fields which use abstract data types|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Encoding of data type fields which use abstract data types
Avatar
Sebastian Schwinn
Member
Members
Forum Posts: 3
Member Since:
03/16/2020
sp_UserOfflineSmall Offline
1
02/13/2023 - 05:07
sp_Permalink sp_Print

Good day everybody!

What is the proper (binary) encoding of a data type field which uses an abstract data type?

Example from BACnet:

<UADataType NodeId=”ns=1;i=103010″ BrowseName=”1:BACnetTimeValueValue”>
  <Definition Name=”1:BACnetTimeValueValue”>
    <Field Name=”BooleanValue” DataType=”Boolean” />
    <Field Name=”UnsignedValue” DataType=”UInteger” />
    <Field Name=”SignedValue” DataType=”Integer” />
    …
  </Definition>
</UADataType>

What is the proper encoding for the fields “UnsignedValue” and “SignedValue”? Based on the following statement in OPC UA v1.05 Part 6 5.1.7 Variant, I suspect that a variant is used for proper encoding:

Variantsare used to store any value or parameter with a data type of BaseDataType or one of its subtypes.

Is there another passage in the specification that correctly describes the (binary) encoding of abstract data types?

Thanks in advance!

Greetings,

Sebastian Schwinn

Avatar
Randy Armstrong
Admin
Forum Posts: 1578
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/21/2023 - 15:41
sp_Permalink sp_Print

Abstract subtypes of Structure are encoded as ExtensionObjects.

All other abstract types are encode as Variants.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 30
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1444
Posts: 4887