UI: Subprogram Conversational Notebook

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

  1. In the program area, select a program block (if the Add to Program button is inactive).
  2. Select the New Subprogram radio button.
  3. In the New Subprogram text box, type a name for the sub program.
  4. Select Add to Program to add the task to the program.

Call a Sub Program

  1. In the program area, select the block after which you wish to call the sub program.
  2. Select the Call Subprogram radio button.
  3. From the Call Subprogram drop-down menu, select the name of the sub program to call.
  4. Select Add to Program to add the task to the program.
1 Like