Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

OPC UA Live mapping to Siemens S7-1500 PLC, - by: maxtester

$
0
0
Hi,
I have been testing around with the "Boiler" OPC UA live mapping example, to try to learn how this is wired together. I have tried to adapt this to a siemens plc.
I have some issues getting the namespaces correct I believe, and when I try to issue the mapper.Read() command, my model class is not being updated.

I have the following configured in the OPC server:


I have modeled this to the following C# class:


Calling the mapping is done like this:


What I`m strugling with is getting the namespaces to be correct.
Based on the submitted screenshot of UAExpert, how should I configure the UANodeDescriptor object, when using a siemens PLC?
I have used the namespace "www.siemens.com/simatic-s7-opcua", and I have tried all possible paths with ObjectsFolder...



Also, in the "Boiler"example, the Boiler class is using "Boiler" in the namespace attribute, but I`m using "www.siemens.com/simatic-s7-opcua".




In addition, when I browse the registered namespaces in UA Expoert, I have the following entries:


I`m not sure how or if the element [1] is relevant, or where this should be inserted in the submitted code.
I`m obviously missing something here, but I cant see what.

I would very much appreciate some guidance, on what to change in my example code.
Thanks

Viewing all articles
Browse latest Browse all 1794

Trending Articles