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

API call for mecademic gripper

#1
I'm writing a python program for my meca500 in robodk.  I see when connected to the robot that the GripperOpen and GripperClose commands are supported and work when sent through the "connection" panel, but I don't see a way in the api to send those commands.  Can anyone point me in the right direction here?
#2
Hi Chris,

You can do:
robot.RunInstruction("GripperOpen", INSTRUCTION_CALL_PROGRAM)
and
robot.RunInstruction("GripperClose", INSTRUCTION_CALL_PROGRAM)

More information here:
https://robodk.com/doc/en/PythonAPI/robo...nstruction

This shouldn't be confused with RDK.RunProgram or RDK.RunCode() which will trigger a program in the RoboDK tree.

Albert
  




Users browsing this thread:
1 Guest(s)