Great tutorial! I was able to read some values from the PLC with OPC Server UA. But it seems something i've missed, because i'm not able to read everything. For example, i can read the software version (NodeId is i=2264), but if i try to read a DB, something like this: ns=3;s="DB1015:Interface OPC UA"."maschiene data"."tool_number" i get a null value. What do i miss? Is there a specific way to ask for this value?
Hello there... very nice video! Thank you very much for that... May I have a question about accessing node containing array? I haven´t found any way how to access them, as every attempt to use client.ReadNode or client.ReadNodeValue with string argument have failed. Regarding UaExpert the datatype of this node is array of 6 float numbers. I can also see the values in the array via UaExpert... The only result I can get by code: string Temp = Convert.ToString(client.ReadNode("ns=2;s=Torque")); will give me string "System.Single[]" as a result... Can you please advice/help? Thank you and best regards
Can someone give me an example of the contents of the array that is used to subscribe to multiple items? I can read and write to as many items as I need. And I can subscribe to a maximum of 5. But I have been scouring the internet for an example of how to make the MonitoredItems array... None of the scores of samples I have downloaded will compile. I am a C# novice and am just looking for a VERY simple example.... eg, 'if you have 10 tags, here is how you make a MonitoredItems array to subscrive and monitor'. If anyone can help, I would sure appreciate it.
please tell me how to read the Boolean data type? If you use the "console.ReadNode(the path to the tag), then "null" is output instead of "true" or "false"
I think that you have a bad tagName. I have OPC Server on PLC Siemens S-1200 and everything is ok. For boolean data type i use the same methode. Var testValue = opcClient.ReadNode(tagName); and it works :)
Thank you very much for this good example!
hello, i am using that library and it works really good, but it seems it is not free, is it neccesary to pay for that forr free runtime?
Many thanks for the great Video
Great tutorial! I was able to read some values from the PLC with OPC Server UA. But it seems something i've missed, because i'm not able to read everything. For example, i can read the software version (NodeId is i=2264), but if i try to read a DB, something like this: ns=3;s="DB1015:Interface OPC UA"."maschiene data"."tool_number" i get a null value. What do i miss? Is there a specific way to ask for this value?
Hello there... very nice video! Thank you very much for that...
May I have a question about accessing node containing array? I haven´t found any way how to access them, as every attempt to use client.ReadNode or client.ReadNodeValue with string argument have failed.
Regarding UaExpert the datatype of this node is array of 6 float numbers. I can also see the values in the array via UaExpert...
The only result I can get by code: string Temp = Convert.ToString(client.ReadNode("ns=2;s=Torque")); will give me string "System.Single[]" as a result...
Can you please advice/help?
Thank you and best regards
It is a very good OPC UA coding tutorial ! awesome !
thank you! this video is very informative.
read and write is disabled for me on the Client. What could be the Issue?
Can someone give me an example of the contents of the array that is used to subscribe to multiple items? I can read and write to as many items as I need. And I can subscribe to a maximum of 5. But I have been scouring the internet for an example of how to make the MonitoredItems array... None of the scores of samples I have downloaded will compile. I am a C# novice and am just looking for a VERY simple example.... eg, 'if you have 10 tags, here is how you make a MonitoredItems array to subscrive and monitor'. If anyone can help, I would sure appreciate it.
please tell me how to read the Boolean data type? If you use the "console.ReadNode(the path to the tag), then "null" is output instead of "true" or "false"
I think that you have a bad tagName. I have OPC Server on PLC Siemens S-1200 and everything is ok. For boolean data type i use the same methode. Var testValue = opcClient.ReadNode(tagName); and it works :)
(bool)Client.ReadNode("ns=2;s=Application.GVL_SuperClp.BtAbortaStandByCiclo").Value
thanks
Can you do a video on OPC UA on accessing AE and HDA? Thanks.😊
works all very good......but i m not able to perfom a reconnection routine..............
how if it has authentication, what is the code