Hello Amar,
so after a little break I'm back on this Project. I tried everything that you said and it still doesn't want to connect.
Here some pictures.
Here you can see, that I finally got a connection between the Pilz PLC an my computer via Modbus. The values are temperture values from some Sensors and they are correct.
But as soon as I try to get the Data through my revpi nothing happens:
pi@RevPi40083:/var/log $ tail daemon.log
Nov 6 14:01:14 RevPi40083 piModbusMaster[3763]: Modbus connection failed: ip=169.254.26.247 errno=Operation now in progress
Nov 6 14:01:19 RevPi40083 piModbusMaster[3763]: Modbus connection failed: ip=169.254.26.247 errno=Operation now in progress
Nov 6 14:01:25 RevPi40083 piModbusMaster[3763]: Modbus connection failed: ip=169.254.26.247 errno=Operation now in progress
Nov 6 14:01:30 RevPi40083 piModbusMaster[3763]: Modbus connection failed: ip=169.254.26.247 errno=Operation now in progress
pi@RevPi40083:~ $ piTest -r Input_Word_1
2 Byte-Value of Input_Word_1: 0 dez (=0000 hex)
2 Byte-Value of Input_Word_1: 0 dez (=0000 hex)
2 Byte-Value of Input_Word_1: 0 dez (=0000 hex)
Here is my setup:
IP-Adress of my Pilz PLC: 169.254.26.247
IP-Adress of the revpi connect: 192.168.222.22
Modbus Master IO-Link
-
- Posts: 9
- Joined: 21 Sep 2020, 16:12
- Attachments
-
- 2.PNG (22.91 KiB) Viewed 7925 times
-
- 1.PNG (24.57 KiB) Viewed 7925 times
Hi can you try to ping the IP 169.254.26.247 from the RevPi?
-
- Posts: 9
- Joined: 21 Sep 2020, 16:12
Hello,
so I took some time last week to update all modules und reconnect everything. Now it works fine and I can transmit Data from the Safety-PLC to the Recolution Pi and use it in Node Red and Grafana. The Problem was that I connected all devices with an ethernet switch which was connected to the network. I guess this was the reason the Safety-PLC wasn't sending any data. Now I connected one Ethernetport of the Revpi to the switch anonly connected my Device which send data. The other Ethernetport is used to connect the revpi to the network. I guess it was import to have this devision and everything works now.
Thanks for the support!!
so I took some time last week to update all modules und reconnect everything. Now it works fine and I can transmit Data from the Safety-PLC to the Recolution Pi and use it in Node Red and Grafana. The Problem was that I connected all devices with an ethernet switch which was connected to the network. I guess this was the reason the Safety-PLC wasn't sending any data. Now I connected one Ethernetport of the Revpi to the switch anonly connected my Device which send data. The other Ethernetport is used to connect the revpi to the network. I guess it was import to have this devision and everything works now.
Thanks for the support!!