ljean / modbus-tk

Create Modbus app easily with Python
Other
557 stars 211 forks source link

how to write data in little endian for float #158

Closed JimmyTimmmm closed 2 years ago

JimmyTimmmm commented 2 years ago

master.execute(1,cst.WRITE.SINGLES.REGISTRER, 0, output_value=3.14,data_format=“<f”) When I checked what I write in modbusscan,I got different input. Anyone know why?