favalex / modbus-cli

Command line tool to access Modbus devices
Mozilla Public License 2.0
158 stars 30 forks source link

Support for writing a single register with Write Multiple Registers (0x10) #17

Closed crashkopf closed 1 year ago

crashkopf commented 1 year ago

First, thanks the author for this program. It has been very useful, and I highly appreciate its existence.

Some device manufacturers only support a limited subset of modbus functions. As an example, I'm currently working with a device that only supports Read Holding Registers (0x03) and Write Multiple Registers (0x10). This is not an uncommon situation. Currently, modbus-cli chooses which function to use without any override from the user. I highly recommend allowing the user to explicitly choose the modbus function when needed.