Relative Content

Tag Archive for modbusmodbus-tcppymodbuspymodbustcppymodbus3

Is there a way to use Modbus Function Code 23 from server to write data via DataBank() with pyModbusTCP?

I am using pyModbusTCP library to exchange data with a tool. The tool only supports Modbus Function Code 23 (Read Write Registers) and can only act as a Modbus Client and a TCP Master. I am able to read the data from the tool successfully but I am not able to write/send the data back to the tool. The values to read are only there at register 2048. And values are supposed to be written at register address 0.
Following is the code: