You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can use modpoll (https://github.com/gavinying/modpoll) to modbus data. But failed to get modbus data from modbus-cli.
Log messages of modbus-cli are as follows.
./modbus-cli --target tcp://172.16.88.110:502 rh:uint32:0x1+5 rc:0+10 wc:4:true
failed to read holding/input registers: gateway target device failed to respond
failed to read coils/discrete inputs: gateway target device failed to respond
failed to write true at coil address 0x0004: gateway target device failed to respond
Log messages of modpoll are as follows.
./modpoll -m tcp -a 2 -r 1 -c 4 -t 4:int -p none -o 1 172.16.88.110
modpoll 3.15 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright (c) 2002-2024 proconX Pty Ltd
Visit https://www.modbusdriver.com for Modbus libraries and tools.
it looks like your device sits at unit id / slave id # 2, which you're passing to modpoll with -a 2. Since you're not selecting any unit id with modbus-cli, it defauts to 1, and there's probably no such device on the bus at this address.
I can use modpoll (https://github.com/gavinying/modpoll) to modbus data. But failed to get modbus data from modbus-cli.
Log messages of modbus-cli are as follows.
./modbus-cli --target tcp://172.16.88.110:502 rh:uint32:0x1+5 rc:0+10 wc:4:true
failed to read holding/input registers: gateway target device failed to respond
failed to read coils/discrete inputs: gateway target device failed to respond
failed to write true at coil address 0x0004: gateway target device failed to respond
Log messages of modpoll are as follows.
./modpoll -m tcp -a 2 -r 1 -c 4 -t 4:int -p none -o 1 172.16.88.110
modpoll 3.15 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright (c) 2002-2024 proconX Pty Ltd
Visit https://www.modbusdriver.com for Modbus libraries and tools.
Protocol configuration: MODBUS/TCP, FC3
Slave configuration...: address = 2, start reference = 1, count = 4
Communication.........: 172.16.88.110, port 502, t/o 1.00 s, poll rate 1000 ms
Data type.............: 32-bit integer, holding register table
-- Polling slave... (Ctrl-C to stop)
[1]: 171515394
[3]: 142679782
[5]: 7118
[7]: 0
-- Polling slave... (Ctrl-C to stop)
[1]: 171515396
[3]: 142745318
[5]: 7120
[7]: 0
-- Polling slave... (Ctrl-C to stop)
[1]: 171712003
[3]: 142876396
[5]: 7124
[7]: 0
The text was updated successfully, but these errors were encountered: