Hey guys, last week I posted part 1 of a series of OPC UA articles in Node-RED. That article covered some important concepts of OPC UA and how they relate to building your own server in Node-RED. I then walk through an example OPC UA Server flow and show how to successfully deploy it.
In this second article, I create a more practical example, and show how to build a custom OPC UA Server for an Allen Bradley PLC in Node-RED, including how to encrypt the server connection with SSL to make it production-ready.
I did my best to break everything down into manageable details, so that hopefully even someone with minimal experience can follow it. But ultimately building a custom OPC UA Server does take some effort.
My hope is that this tutorial can teach someone enough concepts to go on and develop their own custom OPC Server applications to suit their specific use-case.
As always, if you have any questions please let me know! Here to help.
note - the full source code is included at the end :).
Let me know if you have any questions!