...
Sub programs are like subroutines in CNC programming. They allow you to organize robot programs into small, logical blocks of code that may be called one or more times during the main program.
The Sub Program tab allows you to create and call sub programs conversationally (without writing Python robot code “by hand”).
Create a Sub Program
In the program area, select a program block (if the Add to Program button is inactive).
Select the New Subprogram radio button.
In the New Subprogram text box, type a name for the sub program.
Select Add to Program to add the task to the program.
Widget Connector | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Call a Sub Program
In the program area, select the block after which you wish to call the sub program.
Select the Call Subprogram radio button.
From the Call Subprogram drop-down menu, select the name of the sub program to call.
Select Add to Program to add the task to the program.