Reading Tag from OPC client

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
shwethasp
Jr. Member
Jr. Member
Posts: 1
Joined: 01 Mar 2018, 21:59

Reading Tag from OPC client

Post by shwethasp »

Hello All:
I'm new to OPC UA. I am going through sample code for OPC UA Client SDK. I have connecting to a Modbus OPC server using the example code for full client. it's connecting and browsing the tags. What I would like to do is, extract the tag value in the program and assign it to a local variable. Is that possible? How can we browse the object tree to extract the value of a particular tag from a particular device? Any guidance would be greatly appreciated.

Thanks,
Shwetha.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re: Reading Tag from OPC client

Post by Support Team »

Hello,

I think I did not understand your question completely. The Browse service returns data about the referenced nodes, like NodeId, ReferenceType, TypeDefinitionId, BrowseName, ... This data can be used for storing and for browsing the next level. If you want to store more attributes, you have to call the Read method in addition.
Best regards
Unified Automation Support Team

Post Reply