Versions Compared

Key

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

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

To create a sub program:

...

Creating a Sub Program

  1. In the program area, select a program block in the program area (if the "add Add to program" Program button is inactive).

  2. Make sure the "new subprogram" Select 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" buttonIn the New Subprogram text box, type a name for the sub program.

  5. Select Add to Program to add the task to the program.

    Image Modified

...

Calling a Sub Program

...

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

  2. Make sure the "call subprogram" Select the Call Subprogram radio button is selected.

  3. Choose From the Call Subprogram drop-down menu, select the name of the subprogram sub program to call.

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

    Image Modified