unit = 1
port = 1234
#it read data of registrator 64000 until 64008
client = modbus_rtu_over_tcp.RtuOverTcpMaster(host=host,port=port,timeout_in_sec=10)
read_input_data = client.execute(slave=unit, function_code=cst.READ_INPUT_REGISTERS, starting_address=64000, quantity_of_x=9)
#it write the values 77,88,99 (its in a list because you can write multiple values) on register 64001,64002 and read the informarion at 64100 until 64108.
read_write_data = client.execute(slave=unit, function_code=cst.READ_WRITE_MULTIPLE_REGISTERS, starting_address=64100, quantity_of_x=9, output_value=[77,88,99], write_starting_address_FC23=64000)