[Macros] (Tools Menu)

You can create SPEL+ command macros using the Macro Editor. Macros consist of one or more SPEL+ statements that can be executed from the command window. A macro statement may use global variables, I/O labels, and point labels. You can assign a macro to each of the Alt function keys except for Alt+F4, which is a Windows shortcut to close the application.

  1. Select [Tools]-[Macros] to open the [Command Macros] dialog box.

  2. Type the macro statements in the [Macro] text box.

    • Up to 512 characters can be entered for a macro statement. Any further characters after 512 characters will be deleted when pressing the [Enter] key.
    • Your macro entry can be up to 1023 bytes in size. Macro entries after 1024 bytes will be deleted when clicking the [Apply] button.
  3. Click the [Apply] button to save changes.

  4. Click [Execute] to run the macro.

You can use macros to move the robot and control I/O. The separate execute step is provided for safety.

To open a macro and execute it, type [Alt] + function key. Then click [Execute] to run it. Macros never execute by pressing the function key.