Modbus use of preset holding register (function 0x10)

Discussion of configuring and troubleshooting communication to PLC's or other devices using iX Developer.
Post Reply
charlyprouteau
Posts: 33
Joined: Wed Jan 23, 2013 2:01 am

Modbus use of preset holding register (function 0x10)

Post 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,

User avatar
Russ C.
Posts: 213
Joined: Thu Nov 16, 2017 3:32 pm
Contact:

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

Post 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 9762 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 9762 times
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply