Regarding ValueRank and ArrayDimensions|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
Regarding ValueRank and ArrayDimensions
Avatar
2M
Member
Members
Forum Posts: 5
Member Since:
07/16/2019
sp_UserOfflineSmall Offline
1
06/08/2022 - 08:45
sp_Permalink sp_Print

Hi,

 

Variables exposed via our server don’t have any real constraints except theoretical memory limits. They can be scalars or arrays of arbitrary dimensions.

According to Part 5 section 5.3:

ArrayDimensions

If the ValueRank does not identify an array of a specific dimension (i.e. ValueRank <= 0) the ArrayDimensions can either be set to null or the Attribute is missing. This behaviour is server-specific.
If the ValueRank specifies an array of a specific dimension (i.e. ValueRank > 0) then the ArrayDimensions Attribute shall be specified in the table defining the Variable.

Would setting ValueRank to -2 (i.e. Any: the value can be a scalar or an array with any number of dimensions) and ArrayDimensions to null/missing be a correct interpretation of the specs?

 

Many thanks!

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
06/08/2022 - 18:29
sp_Permalink sp_Print

Yes. ValueRank to -2 tells the client that the only way to know the dimensions is to look at the data.

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