• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configuring S7-1200 PLC to communicate with node-red ...
#2
Hi there,

the good news first ... your project can be realized as your pdf drawing is showing it.

Since I had a similar case in the forum yesterday I recommend to you to read this post here from yesterday https://forum.hilscher.com/thread-694-post-2991.html. This member hat a similar problem with his master PLC ET200 as you have with your master PLC S7-1200.

First of all the 2 x RJ45 Ethernet ports needs to be configured to run PROFINET. netPI can run also EtherNet/IP or EtherCAT or POWERLINK or or or on these ports. So you need to tell it which of these protocols it shall run. Did you do this? I suppose not from what I read.

For an easy setup I recommend to use Node-RED tool to setup the netPI running PROFINET. But Node-RED is not preinstalled on netPI. To install it your have to run a Docker container additionally. Watch this video how to deploy a container in general: https://www.youtube.com/watch?v=A-asfhl7b0c.

The video shows how to deploy Raspbian ... you need to do it of course with Node-RED whose repository you find here https://hub.docker.com/r/hilschernetpi/netpi-nodered. After you deployed it watch this video here to see how you get the 2 x RJ45 ports (fielbus ports) https://www.youtube.com/watch?v=TmNgbGS_ydE configured.

After all this the fieldbus ports are PROFINET capable and can be scanned by TIA as your S7-1200 PLC. There is no need to plug in both cables. One single cable as you did it is totally enough for scanning and communicating PROFINET. Both ports are equal.

One important thing. Do not configure the eth0 interface of netPI to the same IP address the S7-1200 request for the netPI PROFINET address. This is wrong. The eth0 port is not PROFINET capable an a standard Ethernet port and needs to have an unused IP address in your whole setup. I recommend to set the eth0 IP address to something like 192.168.0.254 outside the standard IP addresses that are usually used in PROFINET

TIA configures an IP address of 192.168.0.1 for the S7 and the first PROFINET device something like 192.168.0.2. When the S7-1200 is started later after being configured and finds the netPI on the fieldbus ports it will auto-configure the netPI to address 192.168.0.2 from remote on these ports. This is not something you can influence. So there is no setup needed in the netPI Web UI concerning PROFINET as you did before. All is done automatically.

Good Luck.

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

  Reply


Messages In This Thread
RE: Configuring S7-1200 PLC to communicate with node-red via fieldbus node using a netPi - by Armin@netPI - January-27th-2021, 06:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Configuring EtherCAT communication Hoeber 1 2,223 September-22nd-2021, 01:29 PM
Last Post: Armin@netPI
  IoT Edge Gateway: Node-RED - ARRAY -> OPC UA AxelHa2111 5 4,904 May-21st-2021, 05:13 PM
Last Post: Armin@netPI
  InfluxDB, Node-RED and Grafana Armin@netPI 0 3,719 January-6th-2021, 02:36 PM
Last Post: Armin@netPI
  PROFINET to OPC UA data conversion with Node-RED Armin@netPI 0 3,616 July-7th-2020, 12:20 PM
Last Post: Armin@netPI
  Accessing Siemens S7 PLCs over Node-RED Armin@netPI 3 9,390 February-24th-2020, 06:44 PM
Last Post: jacp
Information NPIX-RCAN with node-red-contrib-canbus node patrick 0 2,162 August-22nd-2019, 02:36 PM
Last Post: patrick

Forum Jump:


Users browsing this thread: 1 Guest(s)