Page 1 of 1

Modbus use of preset holding register (function 0x10)

Posted: Thu Feb 25, 2016 9:57 am
by charlyprouteau
Dear sir,
I use modbus master controller.
I would like to write some UINT16 with function code 0x10.
For example, I would write 5 UINT16:
40001
40002
40003
40004
40005
When I modified the value of each register, each register are sent one by one :
one request per register with function code 0x10. I also tryed to modified the register values by Scripting but same result.
I can use UINT 32 to send two registers but how can I do to writemore than 2 registers.
Regards,

Re: Modbus use of preset holding register (function 0x10)

Posted: Wed Jan 29, 2020 3:52 pm
by Russ C.
You can force code 0x10 using this option in the Modbus Master Settings.
Modbus Master-force-code0x10.png
Modbus Master-force-code0x10.png (16.12 KiB) Viewed 10036 times
Please note: Writing INT32 automatically forces 0x10.
Modbus Master RTU_ASCII-force-0x10-help-file.png
Modbus Master RTU_ASCII-force-0x10-help-file.png (74.86 KiB) Viewed 10036 times