favalex / modbus-cli

Command line tool to access Modbus devices
Mozilla Public License 2.0
168 stars 31 forks source link

RTU Device not supporting function 06 #22

Open SteveOss opened 1 year ago

SteveOss commented 1 year ago

I have a device that only supports writing to multi holding registers (function 16) and not single register write (function 06). So cannot use the CLI (as far as I can see) to write a single register. Think there needs to be some option to implement a single register write using function 16.

favalex commented 11 months ago

Yeah, I agree, there should be an option to force using function 16 even when writing just one register (and probably same for coils.)

Adding it to my TODO