How Can I Read Register Usb Rs485 To Any Modbus Device?
My Device Address is 1, I tried Read Holding Register, and Register Address is 0. I tried pyserial to communicate Modbus Device but pyserial this is my code: import serial,time se
Solution 1:
The read()
method takes an integer for the number of bytes to read.
Did you mean:
whileTrue:
ser.write(b'\x01\x03\x00')
val = ser.read()
print(val)
Post a Comment for "How Can I Read Register Usb Rs485 To Any Modbus Device?"