简体   繁体   中英

How to get the value of a node with OPC UA and C#?

I have a panel Siemens TP1200 Comfort that I have configure as OPC AU server. This panel has some tags (nodes) from which I would like to get the value from a C# application.

I have read the examples of the OPC UA github project: https://github.com/OPCFoundation/UA-.NETStandard .

I am able to connect to the panel and get the root, but if I debug and I check the structure of the root, I don't see any property for the value neither a collection of childs nodes, so I don't know how to find a node by its name.

Is there a method something like GetNodeVale(NodeName);

I don't show any code because I am really lost with OPC, it is my first attempt to implement a simple client in which I want to read that of a node (a tag) but I am not able to do it.

Thanks.

There is the sample repos UA-.NETStandard-Samples . Maybe the examples help you?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM