January-17th-2020, 08:31 AM
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
January-17th-2020, 08:56 AM
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
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)
January-17th-2020, 09:23 AM
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
January-17th-2020, 09:58 AM
(This post was last modified: January-17th-2020, 11:09 AM by Armin@netPI.)
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/n...sys-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
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)
January-17th-2020, 10:13 AM
Dear Armin,
Thank you very much! I will try to test.
BR Lingyue
January-17th-2020, 11:12 AM
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).
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)