4/2/2022 1:46 PM | |
Joined: 11/8/2020 Last visit: 7/12/2022 Posts: 9 Rating: (0) |
Hi, I want to do a project of collecting data from a PLC 1200, with an IOT 2040 and with the help of Node Red. I already have the programming in the PLC and using PLCSim and Node Red it works fine and I collect the data. The problem comes when the IOT intervenes. I have put the 2.6.1 image, I have configured the wifi and I have managed to start node red through putty and the web with its IP. What is the difference between starting from putty (where you see the debug messages when you make changes) and starting directly from the web without touching putty? The problem comes when trying to install any node, if I do it from putty it gives me error and if I do it from the palette on the web, it stays directly loading and does not install. When I log in from putty, the log shows this:[node-red-dashboard] Node module cannot be loaded on this version. Requires: >=1.0.0 I can't get the data from the PLC either (using PLCSim) or connecting the IOT to the PLC 1200 on the second port. I comment the IPs: PLC: 192.168.200.10 IOT:192.168.200.1 Ethernet: 192.168.200.50 In the case that I connect the IOT and the PLC on port 2, should I change the ip eth1 of the IOT in its network configuration and put 192.168.200.XXX or it is not necessary? Then I don't understand why the first time I start node-network from putty (node /usr/lib/node/node/node-network/network &) the server starts fine, but if I exit putty and enter again I get this: [error] Unable to listen on http://127.0.0.1:1880/ [error] Error: port in use Why? Let's see if someone can help me, I've been fighting with this for a long time and I can't solve it. ------------------------------------------------------------------------------------------ |
Last edited by: kampos46 at: 04/02/2022 18:03:07Last edited by: Jen_Moderator at: 04/04/2022 11:34:27New subject after splitting |
|
4/20/2022 8:28 AM | |
Joined: 4/28/2015 Last visit: 11/5/2024 Posts: 3345 Rating: (379)
|
Hi, please use the Example Image V3.1.1. With this image the dashboard are already pre-installed and there is no need to install them. From the Node-Red version in your screenshot it seems you are using any older Example Image. The easiest way to have access to the IOT2040 and to the PLC from your PC is using a switch. When using a S7-1215 or S7-1217 you can use the two ports of the PLC as a switch. Connect the PC to one of the ports and the IOT2040 to the other port. In this case also all devices have an IP address in subnet 192.168.200.xxx. Best regards! |
Not working for IOT2050 support anymore from March 1st, 2024. |
|
Follow us on