Controversial supertype of the NodeId DataType (according the nodeset file Opc.Ua.NodeSet2.xml)|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
Controversial supertype of the NodeId DataType (according the nodeset file Opc.Ua.NodeSet2.xml)
Avatar
Anton Piskunov
Russia
Member
Members
Forum Posts: 6
Member Since:
06/19/2020
sp_UserOfflineSmall Offline
1
09/30/2021 - 19:06
sp_Permalink sp_Print

Hello Everyone,

In my OPC UA implementation I use the nodeset file Opc.Ua.NodeSet2.xml as the source of truth for those nodes that are defined by OPC Foundation. The problem is that, according the nodeset file, the supertype of the NodeId DataType is not the Structure DataType but the BaseDataType. This is how it is defined in the file:

<UADataType NodeId="i=17" BrowseName="NodeId">
<DisplayName>NodeId</DisplayName>
<Documentation>https://reference.opcfoundatio.....on&gt;
<References>
<Reference ReferenceType="HasSubtype" IsForward="false">i=24</Reference>
</References>
</UADataType>

Here we have the claim that the NodeId DataType is subtype if the (i=24) BaseDataType. At the same time, the specification describes this type as a structured type (and in fact this is a structure with 3 fields).

Is it a real mistake? Or I misunderstand the declaration.

BTW, the same I see problem with ExpandedNodeId.

Thanks.

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
09/30/2021 - 21:35
sp_Permalink sp_Print sp_EditHistory

Part 6 defines 24 "built-in types" which are fundamental types with custom encodings. NodeId and ExpandedNodeId are two of these types. It is called a lower case "structured type" because it set of name-value pairs but it is not an upper case "Structure".

See https://reference.opcfoundatio.....rt6/5.1.2/

Note the text in Part 3:

https://reference.opcfoundatio.....rt3/8.2.1/

This Built-in DataType is composed of three elements that identify a Node within a Server.

Avatar
Anton Piskunov
Russia
Member
Members
Forum Posts: 6
Member Since:
06/19/2020
sp_UserOfflineSmall Offline
3
10/01/2021 - 04:50
sp_Permalink sp_Print

Yes, you are absolutely right. Being a structure type does not automatically imply subtyping the Structure data type. Built-in DataTypes have well known layout and encodings to every compatible software.

Thank you for the clarification.

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