stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.44k stars 1.75k forks source link

modbus_read_bits & modbus_write_bit Issue #193

Closed niravt closed 10 years ago

niravt commented 10 years ago

Hi, I am trying to read bit number 9 of modbus register 400014 and set bit number 12 of modbus register 400530. Both are read & write coil status. Here are the calls I am using , but getting errors. Can someone help validating my calls and correct, if required?

modbus_write_bit(pDevice>ctx, 530, 12)

modbus_read_bits(pDevice->ctx, 400014, 9, tab_bits)

Many thanks in advance.

stephane commented 10 years ago

It doesn't seem to be an issue with libmodbus. Could you ask libmodbus mailing for questions, please?