![]() Wheel Your help is too much appreciable, I'm making progress step by step. ![]() ![]() Request = client.read_holding_registers(3911, count=2, unit=1) #client = ModbusClient(method='rtu', port="dev/ttyUSB1", baudrate=9600, timeout=2, Print("There aren't the registers, Try again.")Ĭlient=ModbusSerialClient(method='rtu',port="/dev/ttyUSB1",īaudrate=9600,timeout=2,parity='E',stopbits=1,strict=False) '''.isError() implemented in pymodbus 1.4.0 and above.'''ĭecoder = omRegisters(īyteorder=Endian.Big, wordorder=Endian.Little Python 3.5.2 (default, Oct 11 2016, 05:05:28)įrom pymodbus.payload import BinaryPayloadDecoderįrom import ModbusTcpClientįrom import ModbusSerialClient #as ModbusClient Type "help", "copyright", "credits" or "license" for more information.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |