Posts: 7
Threads: 4
Joined: Sep 2021
Reputation:
0
Hi, I have this register: 0022H ---uint16
This has 16 bits, counting from 0 to 15, bits 12 and 13 are for the activation of a relay, how do I write to those bits with the 16 modbus function?
Posts: 4638
Threads: 24
Joined: Aug 2017
Reputation:
207
Add write_multiple to force to use function 16. Use value_bitmask and write_bitmask to write to specific bits.
https://openrb.com/docs/modbus.htm
https://forum.logicmachine.net/showthrea...29#pid6729
------------------------------
Ctrl+F5
Posts: 4638
Threads: 24
Joined: Aug 2017
Reputation:
207
Try address 33, are you sure it is inputregister?
------------------------------
Ctrl+F5
Posts: 4638
Threads: 24
Joined: Aug 2017
Reputation:
207
And make sure you use firmware from 2021
------------------------------
Ctrl+F5
Posts: 4638
Threads: 24
Joined: Aug 2017
Reputation:
207
This is not supported in this fw. Install RC2 2021
------------------------------
Ctrl+F5