Modbus Error: [Input/Output] No Response received from the remote unit

后端 未结 3 1917
抹茶落季
抹茶落季 2021-01-06 15:02

I\' trying to connect from my Mac laptop to a Modbus device (MR-SI4) using a serial connection using a USB RS485 converter that gets \"mounted\" to /dev/cu.SLAB_USBtoU

3条回答
  •  长情又很酷
    2021-01-06 15:42

    Check this Stack_post.

    You can handle the error:

    if not result.isError():
        '''isError() method implemented in pymodbus 1.4.0 and above'''
    
        print(result.registers)  # Note.
    
    else:
        # Handle Error.
        print('Unable to read or there is the connection problem.')
    

    [NOTE]:

    • In many cases, RTU parity is None: parity='N'
    • Make sure from root permission on your serial port (/dev/cu.SLAB_USBtoUART).

提交回复
热议问题