Modbus Master IO-Link

Marius Kaiser
Posts: 9
Joined: 21 Sep 2020, 16:12

Re: Modbus Master IO-Link

Post by Marius Kaiser »

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.
Modbus_PC.JPG
Modbus_PC.JPG (135.15 KiB) Viewed 7926 times
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
1.PNG[/attachment [attachment=0]2.PNG
Attachments
2.PNG
2.PNG (22.91 KiB) Viewed 7926 times
1.PNG
1.PNG (24.57 KiB) Viewed 7926 times
Marius Kaiser
Posts: 9
Joined: 21 Sep 2020, 16:12

Re: Modbus Master IO-Link

Post by Marius Kaiser »

And the Revpi setup
3.PNG
3.PNG (182.04 KiB) Viewed 7926 times
4.PNG
4.PNG (14.64 KiB) Viewed 7926 times
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Modbus Master IO-Link

Post by dirk »

Hi can you try to ping the IP 169.254.26.247 from the RevPi?
Marius Kaiser
Posts: 9
Joined: 21 Sep 2020, 16:12

Re: Modbus Master IO-Link

Post by Marius Kaiser »

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!!
Post Reply