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

API call for mecademic gripper

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?
Hi Chris,

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

More information here:

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


Users browsing this thread:
1 Guest(s)