• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cifx0 and Node-Red
Hello to all.
I state that I am taking the first steps in this environment.
I am trying to configure a NIOT-E-NPI3-51-EN-RE to communicate with an S7 PLC that uses an NL-50 MPI
On the NIOT I installed the NODE-RED docker and I was able to get the information from the S7 PLC if it is in the same network segment as the NIOT management card.
My goal, however, is to have a separate management network from the one where the S7 PLCs are connected, I tried to use the ports indicated as FIELDBUS using the appropriate docker to enable them.
But without success, I cannot recover data from NODE-RED from the cifx0 card.
Is there a guide?

well on netPI device "NIOT-E-NPI3-51-EN-RE" the netX controller featuring cifx0/fieldbus interface can only be fieldbus device OR ethernet-lan interface at the same time. Both at the same time is not possible. This is due to the two independently running docker containers , Node-RED and Ethernet-LAN. Only one docker container of both (the last one that is started on the netPI system after boot sequence) will "win" and claims the netX access prior the other container. So if the Ethernet-LAN container is the one started later after the Fieldbus container was started the netX will turned into Ethernet-LAN ... if the fieldbus container is started after the Ethernet-LAN container then the netX will be turned in a fieldbus interface.

I am sorry to say that this scenario is not possible at all. The only chance you have is to connect the netPI's eth0 interface to the S7 PLC as well and let netX run in fieldbus bus.

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

Thank you for the fast answer.

For me it might be enough that all three network ports of the NIOT are ethernet-lan. On which I can put different network segments and let my NODE-RED communicate with one of these network segments.
 it's possible? Now the NODE-RED can only talk to the management interface
The 2-ported cifx0 interface is working as a switch always. This means it has only one MAC address and hence only one IP addresse but it is switched. So you can make inline installations with it without the need for an additional external switch.

The 1-port eth0 port is anyway an ethernet/TCP-IP/LAN port.

If you deploy now the https://hub.docker.com/r/hilschernetpi/n...ernet-lan/ container on your netPI, the container immediately creates a network interface named "cifx0" which is visible in netPI management UI unter "networks". there you can configure its IP address and network mask as it is usual for other ethernet interfaces.

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

Thanks for the info.
I proceeded to deploy https://hub.docker.com/r/hilschernetpi/n...ernet-lan/ and correctly in the netPI I was able to enter the network configuration for the cifx0.

I also installed the docker for node-red and did the interface tests to an S7, but I can't figure out how to tell the node-red docker that the S7 is on the network connected to the citfx0 port and not from that of managment

Please tell me exactly which Node-RED container you have installed right how?

Since eth0 interface and cifx0 interface are both even network interfaces now (as if you have plugged in two network cards in a PC) the standard netPI Linux OS routing will automatically route the packets to the right interface based on the corresponding subnet and mask you have setup. This means there is no parameter you can setup anywhere ... all is done automatically by Linux.

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  secure node-red with a username and password Christian_Rau 3 63 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  Node red web UI issue DSongra 3 699 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 518 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Node-RED: OpcUa Client node tad 4 1,047 June-9th-2021, 08:51 AM
Last Post: tad
  activate Ethernet cifx0 Christian_Rau 3 705 March-26th-2021, 05:28 AM
Last Post: Armin@netPI
  Accessing a modbus device connected to RTE port from Node-RED tad 10 3,369 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI
  5 x NL 50-Mpi and Node Red like colector data? Jotarod 4 1,527 September-14th-2020, 01:59 PM
Last Post: Armin@netPI
  linux bridge eth0 and cifx0 carmel85 3 1,476 August-13th-2020, 08:41 AM
Last Post: Armin@netPI
  Node-Red "http in"-Node not working DWxPro 8 3,135 June-19th-2020, 01:12 AM
Last Post: DWxPro
  using node.js on NIOT-E-TP151-EN-RE COswald 9 2,898 May-20th-2020, 12:54 PM
Last Post: Armin@netPI

Forum Jump:

Users browsing this thread: 1 Guest(s)