Posts: 5
Threads: 2
Joined: Jul 2020
Reputation:
0
04-29-2025, 09:14 AM
(This post was last modified: 04-30-2025, 07:44 AM by Albert.)
I'm currently working on a RoboDK KukaOfficelite and TwinCAT simulation.
The real robot uses collision sensors and sends this to TwinCAT.
I want to use RoboDK's collision checking and set a variable when triggered (by a gripper or robot) and send this variable to TwinCAT (ads).
How do I evaluate the status of the collision check in RoboDK using Python?
Posts: 5
Threads: 2
Joined: Jul 2020
Reputation:
0
04-29-2025, 10:55 AM
(This post was last modified: 04-30-2025, 07:43 AM by Albert.)
Thanks. I know about the OPC plugin. But the TwinCAT (ads) part I can use from older projects.
Posts: 4,419
Threads: 2
Joined: Apr 2018
Reputation:
208
What do you mean by the TwinCAT / ads part?
Posts: 5
Threads: 2
Joined: Jul 2020
Reputation:
0
I use Pyads. In the PLC (here 3), I use input/output variables (structs) that are linked to the robot via Ethercat hardware in real-world operation. In the simulation, I read/write them via Pyads and connect them via RoboDK/KukaOfficelite. Every robot has the same structure, so this is a library. Some time ago, I used other expensive drivers for Twincat-KukaOfficeLite communication. But it doesn't have to be that way . I just see I have been using RoboDk for ca. 10 years
Posts: 4,419
Threads: 2
Joined: Apr 2018
Reputation:
208
OK I understand better know. Thanks for this information.
So you should be able to communicate with TwinCAT without paid modules using Python. Another option is to use plain Modbus or OPC-UA. There are Python modules. For example, we use pymodbus to communicate with Omron TM robots when you use the driver for this robot.
Posts: 5
Threads: 2
Joined: Jul 2020
Reputation:
0
years ago, I used RoboDK with Modbus. I purchased a tool for this. But 90% of my customers use TwinCAT, and almost all of them have a fixed structure how they communicate with the robot. Now I have an ADS connection between RoboDK and the PLC, and in RoboDK, I link all the signals to Kuka.Officelite. (Until I find a way to establish The EtherCAT connection in Kuka.Officelite.)
In RoboDK, I then manipulate the robot signals, as product in the gripper, crash sensors, etc.
Posts: 4,419
Threads: 2
Joined: Apr 2018
Reputation:
208
OK thank you for your feedback. Let us know if you need help with your integration between RoboDK and EtherCAT.