• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to pick up PROFINET data and store them to OPC UA server on Node-RED/netPI.
#1
Hello everyone,

I am now trying to access the netPI from a windows PC via OPC UA.
Because my OPC UA client on the windows PC wants to access PROFINET data via OPC UA.
That means the netPI is used as an edge computing.
But, I don't know what kinds of Node-RED nodes I should use and how to configure nodes at all.

Current hardware components:
Siemens S7-1500 PLC  <==PROFINET==>  netPI  <==OPC UA==> Windows PC (uaExpert)
(netPI: NIOT-E-NPI3-51-EN-RE)

Current situation:
- The following dockers have been already deployed.
  hilschernetpi / netpi-opcua-server 
  hilschernetpi / netpi-nodered
- opcua nodes such as 'opcua server', 'opcua event' etc. are also shown on the left side on Node-RED.
- PROFINET data is exchanged btw S7-1500 and netPI properly.
- An XML file (OPC UA nodeset) was compiled and loaded into netPI properly.

Actually, I would like to know how to pick up PROFINET data and store them to OPC UA server on Node-RED/netPI.

Thank you very much for your kind advice.
Best regards,
  Reply
#2
Hi there.

all you need is netPI-nodered only. There is no need to use extra OPC UA server.

In netPI-nodered there is also an OPC UA server node included. So you have everything you need in Node-RED only.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#3
I have another question. Why do you not install Node-RED directly on your Windows PC? Node-RED is also available on Windows so you can do everything just with a single PC.
In this case you need not to go through PROFINET protocol but with TCP/IP programming protocol of S7 PLC called RFC1006 with Node-RED node like this video shows: https://youtu.be/haV0F-SPGH4
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#4
Hello Armin,

Thank you very much for your quick and kind response.
I will try to set up OPC UA according to your comments.
And, I want to connect a legacy equipment to netPI via RS232/485 so that I need a netPI as an edge device.
(I don't want to remove netPI between PLC and PC.)

Best regards,
  Reply
#5
Dear Armin,

I deleted all containers and re-deployed 'netPI-nodered' only.
It was successfully done.

Would you please let me know how to load a nodeset (xml) file?
In case of hilschernetpi/netpi-opcua-server, I was able to load my nodeset (xml) file from the port 8080.

Thank you very much for your help.
  Reply
#6
What exactly to your mean with "Would you please let me know how to load a nodeset (xml) file?"

You say you now have installed "netPI-nodered" container only ... but this Node-RED and included OPC UA nodes do not need any XML file as far as I know. I have not checked it myself. The included OPC UA nodes are maintained on this page https://flows.nodered.org/node/node-red-contrib-opcua and I think there you everything be explained how to use them. So why are you asking now for nodeset file again, I do not understand?

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#7
Dear Armin,
Thank you very much for your response.
I think I now understand current specification of node-red-contrib-opcua.

VDMA has been creating companion specifications (nodesets) over OPC UA protocol cccording to Industrie 4.0 concept (management shell),
One of the specifications is Euromap 77/83 for injection moulding machines (http://www.euromap.org/en/euromap77).
I just wanted to load the xml files shown on this web site to netPI.
But, I think I have to set up the same data structure via node-RED without any xml files.

Thank you very much for your comments.
Best regards,
  Reply
#8
Yes your understanding is correct. Node-RED wants to keep different application scenarios as easy as possible, this is why you have to do it without XML nodeset files and manage your dataset manually.

I totally agree that nodeset XML would be the ideal solution ... but this is not support by node-red-contrib-opcua. So I always say: "you have to die one death". I would in any case prefer using Node-RED cause of its endless connectivity to "everything".

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Node Red configuration LucioFiam 3 1,647 November-30th-2022, 05:14 PM
Last Post: Armin@netPI
  secure node-red with a username and password Christian_Rau 3 2,842 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  cifx0 and Node-Red fabio1975 5 3,102 November-22nd-2021, 01:13 PM
Last Post: Armin@netPI
  netPI opc ua server pull image error wswitula 3 3,109 August-27th-2021, 10:47 AM
Last Post: wswitula
  OPC UA server with NetPi RTE DSongra 9 4,210 July-27th-2021, 12:01 PM
Last Post: Armin@netPI
  Node red web UI issue DSongra 3 3,150 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  REST API server data communication MGharat 2 2,440 July-21st-2021, 07:01 AM
Last Post: MGharat
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,304 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Docker exposed port don't send data on eth0 COswald 3 3,106 July-15th-2021, 02:10 PM
Last Post: Armin@netPI
  [SOLVED]DHCP server not working m-yoshikawa 24 13,616 June-11th-2021, 07:04 AM
Last Post: tad

Forum Jump:


Users browsing this thread: 1 Guest(s)