I'm using minimalmodbus for reading and writing. I have USB to Rs485 connection.
I'm trying to write this "02 05 0000 ff11" to RTU register in python but i'm getting error. Here is my code.
Device address: 02
Function code: 05
Register Address: 0000
Value: ff00
import minimalmodbus
instrument = minimalmodbus.Instrument('COM4', 1)
instrument.write_register(02, 05, 0000, ff00)
I need the same functionality in the above code using python!
