I’m learning how to create programs, and I’ve made some small programs that I would like to include in a larger ‘main’ program.
The goal is to simplify the main program by only calling the programs I created beforehand.
For example, I made one program that draws triangles and another that draws squares, and I want the main program to call the appropriate one depending on variables.
I’m working on a UR10e robot, and I would like to know which functions I should use to do this.
Could someone help me?
You’ll want to use the “IF” instruction from the Advanced tab to let you say "run this job when my variable is X, run this other job when my variable is Y.
Then you will want to use the “Subprog” function from the Advanced tab to load the jobs as Subprograms that you can Call from your main program’s If conditions
Thank you very much for your help!
I’m going to try your method and see how it works in my program.