03-09-2022, 07:57 AM
Hi Rick,
I'm sorry for the delays. I noticed I made a mistake in my example. I just corrected it and added a more complete example here:
Let me know if you still have issues, if you can send us your RDK project it would help us understand what is going on. Alternatively, it will also help if you can send us a print screen of the robot driver communication log.
Thanks,
Albert
I'm sorry for the delays. I noticed I made a mistake in my example. I just corrected it and added a more complete example here:
Code:
# Connect to the robot using the driver and set a KUKA variable
# It is better if you manually connect it first to troubleshoot connection issues
# In RoboDK, select Connect-Connect robot
from robolink import *
RDK = Robolink()
robot = RDK.Item("Your robot name", ITEM_TYPE_ROBOT)
robot.Connect ()
# Set special parameter to the KUKA controller
robot.setParam("Driver", "SET $OV_PRO=50")
# Get a special variable from the KUKA controller
ToolList = robot.setParam("Driver", "GET $TOOL_DATA")
Let me know if you still have issues, if you can send us your RDK project it would help us understand what is going on. Alternatively, it will also help if you can send us a print screen of the robot driver communication log.
Thanks,
Albert