Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sub programs are analogous to subroutines in CNC programming. They allow the user to organize their 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 users to create and call subprograms conversationally (without writing Python robot code “by hand”).

To create a sub program:

  1. Select a program block in the program area if the "add to program" button is inactive.

  2. Make sure the "new subprogram" radio button is selected.

  3. Give the sub program the name using the text box to the right of the New Subprogram radio button.

  4. Add this task to the program by clicking the "add to program" button.

...

To call a subprogram:

  1. Select the "Sub Program" tab

  2. In the program area select the block after which you wish to call the sub program.

  3. Make sure the "call subprogram" radio button is selected.

  4. Choose the name of the subprogram to call.

  5. Add this task to the program by clicking the "add to program" button.

...