How to OPC UA in Node-RED?

6,478 views
Skip to first unread message

Walter Kraembring

unread,
Oct 3, 2015, 1:54:02 AM10/3/15
to Node-RED
I recently stumbled into this:

Been working with automation "my whole life" but traditional OPC DA and AE more or less restricted to Windows, I can see this would be very interesting for automation purposes. Would like to know how this could be used in Node-RED

Kind regards, Walter

Julian Knight

unread,
Oct 3, 2015, 3:35:13 AM10/3/15
to Node-RED
Seems simple enough. You need an OPC server to talk to which that tool allows you to create using node.js - this would live along side the NR server. Could be on the same platform if it has enough grunt, otherwise you'd need another platform to run that.

Then you'd need to create a client for NR. You would need to understand the client part of that library to work out how to implement that in a series of NR nodes. I would imagine it working in a similar way to the MQTT nodes though I've not looked too deeply into it.

In fact, it all looks quite similar to the concepts in MQTT except that MQTT seems at first glance rather simpler to use though that might be due to the excellent work already put into NR for MQTT use :)   Also worth noting that MQTT has the option of a websockets interface which makes for some interesting options in web apps.

John Gillerman

unread,
Oct 4, 2015, 10:41:12 AM10/4/15
to Node-RED

Lawrence Griffiths

unread,
Oct 6, 2015, 7:18:11 AM10/6/15
to Node-RED
Walter I've tried node-opcua but it's very much work in progress.

NZfarmer built an MQTT to OPCUA bridge to overcome this.
We were both needed interrogation to Ignition! SCADA 
The only way we could get it to work was for Ignition to talk to OPCUA server it doesn't like OPCUA clients!!

BTW mika has also created a node-red to Modbus node which might be of interest to you.
And CJ has ported a node PID module to NR.

Lawrence

Paul Dreslinski

unread,
Oct 6, 2015, 1:22:35 PM10/6/15
to Node-RED
I'm very new to this space and found the stuff that Mika has done very interesting.  I'm trying to get it to run but I can not get the OPCUaClient nor the OPCUaBrowse to work in node-red.  The OPCUAItem however does work and have access to it.  Not sure what I'm doing wrong.  I did the following:

npm install node-red
npm install node-opcua

I then copied Mika's github files into the directory and did an npm install.

It says it does not like the OPCUaClient nor the OPCUaBrowse.  Any help would be greatly appreciated.

Lawrence Griffiths

unread,
Oct 7, 2015, 3:51:26 PM10/7/15
to Node-RED
Paul by chance I got an email from Mika from a old Git issue I raised.
I think the best thing is to post your issue there.

Lawrence

Mika Karaila

unread,
Oct 8, 2015, 7:41:22 AM10/8/15
to Node-RED
I have now instance in IBM Bluemix under node-red, but access is not possible... just had to update other old code.
I will push it soon to github. I will try to look these other issues at the same time.

Roger Paulssen

unread,
Aug 24, 2016, 10:48:00 AM8/24/16
to Node-RED
Hi Mika,

I also was trying to use your OPC UA nodes in Node-Red in Bluemix. It seemed to work but first I have to understand more the items that need to be configured for a certain environment.
A generic description or manual for your node would be highly appreciated!
Thanks for your work so far and I am looking forward to your git update!

Op donderdag 8 oktober 2015 13:41:22 UTC+2 schreef Mika Karaila:

Mika Karaila

unread,
Aug 25, 2016, 8:01:48 AM8/25/16
to node...@googlegroups.com
There is a lot general OPC UA stuff available in internet. I think the most crucial point is to have public IP or hostname to access IBM Bluemix instance. As I studied it creates always new instance during deployment, there is most probably some routes available, but they are limited to the current protocols and OPC UA protocol / ports are not included.

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/B0Un3kuZKLw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages