Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

integrating of RoboDK with servo motor driver and sensores

#1
I'm working on a project integrating a servo motor with my cobot and vision system in RoboDK. I have the motor driver, but I'm facing difficulties setting it up for communication with RoboDK.
The challenge is that the driver uses CAN bus communication and cannot be assigned an IP address. I'd appreciate any insights on the best approach to connect and control this driver within RoboDK.
I am attaching the datasheet for the driver for your reference. It contains detailed information about the driver's specifications and communication protocols. 

in this link "https://robodk.com/doc/en/PythonAPI/driver.html" you write down in the code example this: "CONNECT      Connect request. RoboDK provides IP (or COM port), port and DOF.
               i.e. CONNECT 192.168.0.100 10000 6
               i.e. CONNECT COM4 10000 6"
but if a device such this servo motor can not connect with IP, how i connect it to ROboDK, and to use the serial port connection between the driver and the RoboDK, is another interface required?


Attached Files Thumbnail(s)
17193928675818869550710040671150.jpg   
#2
Which cobot are you using? I would connect the motor driver to the cobot if it has a CAN interface on board. Then you could use the capabilities of the cobot and its RoboDK driver to control this external axis.

If you need to connect the motor driver directly to the computer, then you need to use some interface converter like usb-2-can or ethernet-2-can. It would then be possible to send motion commands from RoboDK to the motor driver by developing your own RoboDK driver.

ps. It looks like the documentation you mentioned didn't load
#3
(07-22-2024, 08:49 AM)Sergei Wrote: Which cobot are you using? I would connect the motor driver to the cobot if it has a CAN interface on board. Then you could use the capabilities of the cobot and its RoboDK driver to control this external axis.

If you need to connect the motor driver directly to the computer, then you need to use some interface converter like usb-2-can or ethernet-2-can. It would then be possible to send motion commands from RoboDK to the motor driver by developing your own RoboDK driver.

ps. It looks like the documentation you mentioned didn't load

thank you very much for your reply.
We use robots from Elite Robot Company. We want to control a height adjuster (using a servo motor) that adjusts the cobot's height independently within an integrated RoboDK system.
Thank you for the two solutions you provided. Regarding the first solution, we would prefer not to use the cobot controller to maintain independence between the height adjuster and the cobot. The second solution involves using a converter like USB-to-CAN or Ethernet-to-CAN. However, the attached image shows that the driver can be connected to the computer via the converter using an RS232 connection. Is this connection method appropriate for communication with RoboDK? In fact, can external devices with USB ports be controlled directly by RoboDK software?
Do you have an example of code or a video to connect an external device to RoboDK software?
The driver manual file was too large to attach.


Attached Files Thumbnail(s)
photo_2024-07-23_02-08-00.jpg   
#4
The code example you mentioned is an example we provide as a reference for connecting to robot controllers or other devices:
https://robodk.com/doc/en/PythonAPI/driv...er-example

Alternatively, you can create the necessary control code using the Add Python Program and use it in a program sequence using the Program call instruction.

You can use the PySerial library for serial data transfer.
#5
(07-22-2024, 01:41 PM)Sergei Wrote: The code example you mentioned is an example we provide as a reference for connecting to robot controllers or other devices:
https://robodk.com/doc/en/PythonAPI/driv...er-example

Alternatively, you can create the necessary control code using the Add Python Program and use it in a program sequence using the Program call instruction.

You can use the PySerial library for serial data transfer.

Thanks so much for pointing out that code example! It's fantastic to know you provide a reference like that for connecting to robot controllers (and other devices too!). The link you shared looks super helpful.
I also appreciate you letting me know about the alternative options for creating control code myself using 'Add Python Program' and 'Program call instruction.' That gives me some flexibility depending on my needs.
The tip about the PySerial library for serial data transfer is fantastic - I'll definitely keep that in mind. This is exactly the kind of information I was looking for!
  




Users browsing this thread:
1 Guest(s)