Robot gripper with CANopen servo drives on a KUKA robot for log handling


Live CANopen Robot Control via CANsub + Claude Code

Case Studies / Robomatics

case study logo

ROBOMATICS (UAB VOZTUVA)

Robomatics is a Lithuanian robot integrator that combines KUKA, Yaskawa Motoman and FAIRINO robots with machine vision, PLCs, servo drives and AI for production plants.

What problem did you solve?

In our robotic log feeding cell, a KUKA robot picks logs with a gripper of our own design: Two jaws, each driven by its own servo motor. A PC controls the robot, and it also had to control the gripper's servo drives over CANopen - including changing their parameters, which takes me several hours by hand.

We also needed CAN bus diagnostics. On a new machine we are building for a plant, 12 servo drives, a Delta PLC and a radio remote receiver share one CAN bus. We got control failures and suspected bus overload, but the remote receiver's fixed speed ruled out a higher bit-rate.

How did you solve it?

I plugged the CANsub.2 USB to CAN interface into the PC and told our AI assistant (Claude Code):

a CANsub.2 is connected

Nothing else needs to be done: It finds the device, the instructions and the API by itself. We only configured CAN communication on the servo drives manually.

Claude scanned the bus, sent a request, tried different bit-rates and found the bus speed and everything else. Since then, it controls the drives via the CANsub and changes their parameters. For example, I wanted the drive display to show the jaw distance in mm. I put a 50 mm log between the jaws and said "50 mm now, clamp", then an 80 mm log. Claude calculated the linear relation and set the coefficients in the drive itself.

Under the hood, Claude used python-can with the python-can-cansub plugin, plus its own CANopen helper for SDO reads and writes to the Delta servo drives.

Robot gripper control via CANopen with the CANsub.2 USB to CAN interface and Claude Code

Two-jaw log gripper with CANopen servo drives on a KUKA robot
The two-jaw log gripper on the KUKA robot (2 x servo drives)

"AI works with the CANsub easily and directly - I did not write a single line of code to control our robot gripper"


AI vision detects each log in the robotic log feeding cell
AI vision finds each log for the robot to pick up

KUKA robot with gripper in a motion test at the Robomatics workshop
Motion test of a KUKA robot + gripper in our workshop

What benefit has this led to?

AI works with the CANsub directly, so we hardly ever look at the device ourselves. By eye, I would have searched for years to find the needed frames in the huge stream, in the right sequence. Here it took one evening - and I did not write a single line of code to control the gripper, although the system is quite complex.

The CANsub also solved our CAN bus diagnostics cases. On the new machine, it immediately showed that data we did not need was flooding the bus. We switched it off, the bus load dropped from 80% to 12% and the failures stopped. And when the control unit of an agricultural machine broke during the season, we recorded the frames of a working machine and programmed our Delta PLC to send the same frames. That kept the machine running until the new control unit arrived.

Why did you choose the CANsub.2?

For us, the CANsub is the best device because AI works with it easily and directly. We bought one CANsub.2 in August, it works well for us, and we have ordered three more for our next projects. We are already commissioning several machines this way, and there will be many more.

   — Vladimir Songin, Robot Specialist, ROBOMATICS




Ready to control your CAN assets with AI?

Get your CANsub.2 today!







Recommended for you