Ask Your Question
1

What is the procedure for navigating to an array node in OPC UA using OPC foundation .NET?

asked 2021-12-15 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-10-08 19:00:00 +0000

nofretete gravatar image

First, establish a connection to the OPC UA server using the Connect method of the UaClient object. Then, browse the server address space using the BrowseNode method and find the parent node of the array. Once the parent node is located, use the GetChildren method to retrieve its child nodes. Find the node that represents the desired array node and use the ReadValue method to read its value. To navigate to individual elements of the array, use the GetIndexRange method and specify the array index to retrieve a subset of the array. Finally, use the ReadValue method to read the value of the individual array element.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-12-15 11:00:00 +0000

Seen: 8 times

Last updated: Oct 08 '21