Hilscher Community Forum
PM - develope OPC UA Server using the Codesys - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: PM - develope OPC UA Server using the Codesys (/thread-547.html)



PM - develope OPC UA Server using the Codesys - Lingyue - January-17th-2020

Hello Armin,

I have a question about CODESYS, our customer said our netPI can develop an OPCUA Server through CODESYS. I think it should be developed in Container-CODESYS Control for Raspberry Pi, is it right? Is this container license necessary? Is this license purchased from Hilscher? Is there any necessary software and component tools need to order to the software upgrading? Please help me confirm these issues.

Thanks in advance.

Best regards

Lingyue


RE: PM - develope OPC UA Server using the Codesys - Armin@netPI - January-17th-2020

Hello Lingyue,

CODESYS OPC UA server is already integral part of standard CODESYS runtime. You do not need to develop anything. It is already present after you load the CODESYS runtime to the container.

CODESYS runtime supports by default PROFINET master, EtherNet/IP Master, EtherCAT Master, Modbus TCP and also OPC UA server.

CODESYS has a lot of videos showing how to setup the different networks and methods. One is the CODESYS OPC UA handling video https://www.youtube.com/watch?v=DV5PfdzbMfQ or this video that show how to use it with Raspberry Pi https://www.youtube.com/watch?v=nNEAiRywtT0

In order to use OPC UA you need to understand how to create "symbols" in CODESYS from PLC data first and then the data is available immediately as OPC UA values.

Thx


RE: PM - develope OPC UA Server using the Codesys - Lingyue - January-17th-2020

Dear Armin,

Thanks a lot for your timely reply and detailed explanation. Now I roughly understand how to achieve it. But I still don't konw the information about container license, can you give me some answers?

Thank you again.

Best regards

Lingyue


RE: PM - develope OPC UA Server using the Codesys - Armin@netPI - January-17th-2020

Hello Lingyue,

the CODESYS runtime that you can deploy in the container runs for two hours only if not licensed. This has nothing to do with the container, it is a restriction of CODESYS runtime itself.

If you want to let run the CODESYS runtime forever you need to license the runtime (in the container). This is done ordering a license in the CODESYS webshop and it is deployed using the Windows CODESYS programming tool.

There is a small "how to do licensing" explained in the containers README at https://hub.docker.com/r/hilschernetpi/netpi-codesys-basis/. It is CODESYS licensing procedure and not Hilscher specific licensing. It is working the same with other platforms in the same manner if someone wants to let CODESYS runtime unlimited time.

Thx


RE: PM - develope OPC UA Server using the Codesys - Lingyue - January-17th-2020

Dear Armin,

Thank you very much! I will try to test.

BR Lingyue


RE: PM - develope OPC UA Server using the Codesys - Armin@netPI - January-17th-2020

During the deployment of the license, the key is stored in the container is bound to the serial number of the CPU in netPI. So please take care after licensing to save the license files to a separate location as explained in the container README. So even if the container is lost and you redeploy it again, you can copy the saved files back to the new container (...but on the same netPI. A different one with different serial number will not work).