Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.