Need Data type of the node along with browse results |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
Need Data type of the node along with browse results
Avatar
sree venkedesh
Member
Members
Forum Posts: 5
Member Since:
03/12/2021
sp_UserOfflineSmall Offline
1
05/30/2025 - 04:09
sp_Permalink sp_Print

Hello All,

In my current implementation i have to browsenodes, then fetch the data type of each node again, overall i have to make 2 requests to the server. Is there any way to get the data type of node while browsing ? from the specification i see there is no field  data type on the browse request parameters as given in the link: UA Part 4: Services – 5.8.2 Browse

This is useful when we work with larger nodes with different data types, oftenly we need to change the data types based on the node types, to do that we have to make datatype requests to server. this is an extra overhead.
Please let me know regarding this.

Avatar
Randy Armstrong
Admin
Forum Posts: 1620
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
05/30/2025 - 18:50
sp_Permalink sp_Print

The OPC UA model requires Browse then Read.

However, this should only be 2 calls since you can call Read for every Variable returned by Browse in one call.

This is useful when we work with larger nodes with different data types, oftenly we need to change the data types based on the node types, to do that we have to make datatype requests to server. this is an extra overhead.

Can you explain more what you mean by this?

Avatar
sree venkedesh
Member
Members
Forum Posts: 5
Member Since:
03/12/2021
sp_UserOfflineSmall Offline
3
06/01/2025 - 22:56
sp_Permalink sp_Print sp_EditHistory

Hello Randy,

  

In our use case, we browse a large number of nodes (more than 500). To perform read/write operations, we need to verify the data type of each node to ensure type consistency. However, this requires us to fetch the data type attribute of each node separately, which introduces additional overhead. 

Overall, before performing read/write operation on nodes we have to fetch data type attribute of each node (once we get the data type we are storing it, then for subsequent read/write operation data type attribute is not fetched).

 

we require data type attribute has to be fetched along with browsing of nodes , this will significantly improve the first read/write operations on the node. 

Avatar
Randy Armstrong
Admin
Forum Posts: 1620
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
06/16/2025 - 00:21
sp_Permalink sp_Print

You are over estimating the impact of the 2 calls you need to make.

The first call you Browse and get 500 nodes back.

The second call you Read the DataType of 500 nodes.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Mohammad Rahil Quazi
Guest(s) 16
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1483
Posts: 5011