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

Send program to robot from the Python API

#1
Hello,

I am trying to use the force mode on the UR5e robot. I've put my URscript force mode code in a RoboDK program called "force_test_program" as shown in the image. 

If I right click on "force_test_program"  and click "Send program to robot" the URscript code executes as expected. I'd like to be able to do the same via the python API. How can I "Send program to robot" from the python API?

Thanks!


Attached Files Thumbnail(s)
Screenshot 2024-06-08 185921.png   
#2
Using the API you can send the program to the program to the robot by calling the MakeProgram function using the corresponding flags. Example:
Code:
program.MakeProgram("", RUNMODE_MAKE_ROBOTPROG_AND_UPLOAD)
You can find more information here:
https://robodk.com/doc/en/PythonAPI/robo...akeProgram
#3
That works, thanks!
#4
Great, thank you for your feedback.
  




Users browsing this thread:
1 Guest(s)