Simion
Hello to everybody,
My roots are electrician (relays, limit switch, lamps). Recently, I've change my work place and in electrical cabinets I have found very few relays. There are only green cables, drivers, PLCs ... yeh! I am scared.
 
Any way, I am here to ask you nice guys ... this fantastic OpenPLC software can be used as a "simulator" for OPC UA server like you have in real CPU 300, 400 ... from Siemens?
More context, I am building a application in php (btw! php it is not dead) and I want to try to pull some data from machine PLC (Siemens CPU-4xx). If I don't succeed, for (this specific) task I will try python but the problem remain. I need to learn how to read data from PLC.
 
Thank you!
Reply 0 0
thiagoralves
OpenPLC does not support OPC UA yet. But you can use Modbus to pull data, and it is quite easy, especially if you're using Python. Here is a video I made a while ago showing exactly that:
 
Reply 1 0
Simion
Thank you for your fast answer and for all this incredible work.
Reply 2 0
fg71
If you like to use OpenPLC_v3 runtime on general-purpose computer you could use PSM and OPC-UA Client to read/write/update OPC-UA Server.
 
Freeopcua.github.io | FreeOpcUa: Open Source Rust and Python OPC-UA Client and Server Libraries and Tools
 
Node-Red have good support for OPC-UA, so the only thing you need to do is communicate with OpenPLC and Node-Red.
You could use any communication protocol that could be used in OpenPLC that also support in Node-Red. From there you read/write/update OPC-UA Server.
 
Or
 
Learn how the OPC-UA protocol is working use Arduino extension on MCU to read/write/update OPC-UA Server.
 
I do believe people at Arduino have a libraries for OPC-UA and OPTA I do not think it would be so difficult to update it for your device.
Reply 1 0
Reply