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?
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.