OPC UA Arrays|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
OPC UA Arrays
Avatar
Michael Meirovitz
Member
Members
Forum Posts: 9
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
1
08/02/2021 - 12:13
sp_Permalink sp_Print

Hi,

I have few questions regarding arrays in OPC UA.

  1. What is the maximum number of elements in an array?
  2. How can the OPC client determine what is the number elements in an array?
  3. Does the OPC Server sets the number of array items? Or, is it set by the OPC client? 

Thank you.

Mike

Avatar
Randy Armstrong
Admin
Forum Posts: 1463
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
08/02/2021 - 13:33
sp_Permalink sp_Print

1) The max number of array elements depends on the server and the variable.

The ServerCapabilitiesType defines the Server wide limits:
https://reference.opcfoundatio.....rt5/6.3.2/

Per Variable limits use the properties defined here:
https://reference.opcfoundatio.....rt3/5.6.2/

2) The number of elements in an array are encoded with the value in the Variant structure.
https://reference.opcfoundatio...../#5.2.2.16

If a Variable has a fixed length array you can used the ArrayDimensions Attrribute:
https://reference.opcfoundatio.....rt3/5.6.2/

3) If a Variable does not use fixed length array then the Client can write arrays that have any length.

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