MODBUS over usb

Hello,

I understand one can use modbus over ethernet in UR, but I’m just wondering why there is no “native” (io) modbus support ?

How about using USB modbus dongle/adapter, is it supported and/or recommended ?

Thank you for your kind response.

  • an UR newbie

Natively modbus protocol is supported over Ethernet TCP/IP only. You either need modbus TCP/IP to serial converter or you have to write URCap with driver, and protocol implementation yourself.

1 Like

Thank you for your reply.

In case I need to compile linux kernel driver for UR, where can I get the necessary kernel-sources and/or its related header to compile kernel module ?
(Inside/outside kernel tree module compilation is fine for me.)

By “driver” I assumed native or python daemon that actually uses existing linux drivers for USB dongle. I suppose that most USB dongles will show up as ttySxx device. Then you can use udev rules to symlink your dongle VID:PID to specific device names that you can later enumerate from daemon.

Modifying kernel is not supported or encouraged.

Thank you for your information.

Nevertheless I have USB-modbus device that needs ch341 kernel module.

Any suggestion how I can do that ?

Update:
I just saw your references to all the kernel sources and its related patches as general references, but kernel (patched) sources specifically to reproduce the linux kernel used in UR Robots are not available to end users, are they ?

Hi everyone. I would like to ask regarding external connection to UR robot. Does UR robot allow communication to external device using RS232? If yes can i use an external USB to serial converter cable. Thank you.

USB Serial based on FTDI chips seem to be supported by linux kernel in CB3.
You can access the serial port just like under usual linux using urcap daemon .

Hi Effendi, thanks for your feedback. Can you further explain on how to access the serial port using URcap? Is there any available file/driver for that? Thank you.

It can be done via python using XMLRPC, installing of pyserial library is needed.

Hello Colin,

I am new to this concept of using Pyserial. Can you please put an example and explain how you have done communication?
Thank you