mbpoll

Command-line utility to communicate with ModBus slave devices (RTU or TCP)

brewmacoslinux
Try with needOr install directly
Source

About

Command-line utility to communicate with ModBus slave (RTU or TCP)

Commands

mbpoll

Examples

Read 10 holding registers starting at address 100 from TCP device at 192.168.1.100$ mbpoll -t 4 -a 100 -c 10 192.168.1.100
Write value 1500 to a holding register at address 50 via serial RTU$ mbpoll -t 3 -a 50 /dev/ttyUSB0 1500
Read coil status from addresses 0-5 on TCP ModBus slave at port 5020$ mbpoll -t 1 -a 0 -c 5 -p 5020 192.168.1.100