~$ mbpoll -a10 -b38400 -P none -t4 -r25 com4 2 1
mbpoll 1.5 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright (c) 2015-2023 Pascal JEAN, https://github.com/epsilonrt/mbpoll
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'mbpoll -w' for details.
Protocol configuration: Modbus RTU
Slave configuration...: address = [10]
start reference = 25, count = 2
Communication.........: com4, 38400-8N1
t/o 1.00 s, poll rate 1000 ms
Data type.............: 16-bit register, output (holding) register table
Written 2 references.
~$ mbpoll -a10 -b38400 -P none -t4 -r27 com4 2 0 0 -v
debug enabled
Set mode to RTU for serial port
Set device=com4
3 write data have been found
Set data=2
Word[0]=0x2
Set data=0
Word[1]=0x0
Set data=0
Word[2]=0x0
mbpoll 1.5 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright (c) 2015-2023 Pascal JEAN, https://github.com/epsilonrt/mbpoll
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'mbpoll -w' for details.
Opening com4 at 38400 bauds (N, 8, 1)
Set response timeout to 1 sec, 0 us
Protocol configuration: Modbus RTU
Slave configuration...: address = [10]
start reference = 27, count = 3
Communication.........: com4, 38400-8N1
t/o 1.00 s, poll rate 1000 ms
Data type.............: 16-bit register, output (holding) register table
[0A][10][00][1A][00][03][06][00][02][00][00][00][00][A4][7E]
Waiting for a confirmation...
<0A><86><03><73><A3>
ERROR Invalid exception code
Write output (holding) register failed: Invalid exception code