Re: Modbus Master IO-Link
Posted: 06 Nov 2020, 14:10
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
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