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

Make a loop - roboDK

#1
Hello,
I would need help from someone who knew how to call a program in Robodk, to run the program from a starting point that is different each time. It would be to make a loop but start it from different positions and that the values of the points that this program runs through were the same but with respect to the initial point of origin.
Thanks.
#2
You can call a program that set a new origin before calling the main program, that way the targets will be relative to the new origin. See the attached example.


Attached Files
.rdk   TargetsExample.rdk (Size: 484.7 KB / Downloads: 351)
#3
Thank you very much!! Another question I have... is there an option to automatically create the new frame displaced every time you run the program "Prog.1"? I need to run "Prog.1" many times and I don't want to have to create hundreds of frames.
#4
Using the Python API would be the way there.

You can create all your frame and automatically create the main program exactly as Oliver did.
https://robodk.com/doc/en/PythonAPI/intro.html

Jeremy
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our Youtube Channel


#5
Thank you very much!!
  




Users browsing this thread:
1 Guest(s)