CREATING & EDITING MACROS
You can make your macros as simple or complex as you want. For a guide to all macro commands, operators and
expressions, see MACRO SOURCE CODE on pages 94-96.
Creating a New Macro
To create a new macro, open the Macro Editor and select an empty macro entry from the drop-down list. The
programming window will be blank, and you can then enter source code from scratch. If all of your macro entries
are in use, you can either program the macro on a different unit with empty macro positions, or select an existing
macro and replace it with new source code.
In order to be properly identified by the I/O unit, the first line of all macros must consist of the word macro
followed by the name of the macro in quotation marks, All macros must conclude with the end statement “mend”
on the last line (for macro end).
Editing an Existing Macro
To edit a macro that is already saved to the I/O unit, select the desired macro from the drop-down list. The
programming window will open, and you can edit the macro’s source code as needed.
Note: Editing macros requires system or operator privileges.
Entering Source Code
Entering text in the macro editor is straightforward. You will find standard text editing functions in the Edit menu,
and there are toolbar shortcuts for cut, paste, copy, indent/outdent and undo. At any time during the editing
process, you can check the macro syntax by clicking the Check Syntax
icon. The macro editor will verify that
the source code has been entered correctly.
Note: The Macro Editor automatically checks syntax before it saves the macro to the I/O unit. The manual Check
Syntax function is useful if you would like to make corrections as you edit, rather than after writing the entire macro.
Within the body of your macro, you can insert remarks within single-quotation marks separated from the macro
syntax by a colon:
If Status(9) = Low Then : ‘IF NO AC POWER’
Command Me, Me, 14A : ‘TURN BREAKER ON’
Command Me, Me, 11A : ‘DIRECT POWER TO AC’
Remarks can be used to clarify each step of the macro, or to explain to other operators how macro works.
Saving Macros to the I/O Unit
When you are finished creating or modifying macros, save them to the I/O unit by clicking the Save to Unit
icon in the Macro Editor toolbar. A pop-up window confirms a successful save.
Note: Any currently running macros will be stopped when you save new macros the I/O unit. To manually restart
them, open the Macro Status window, select the desired macro, and click Run.
If you wish to save a copy of your macro to disk, use the select all function from the Edit menu and copy the
contents of the programming window into a text file (such as a Notepad document). Then save the text file to
your computer or floppy disk. This method allows you to save a work-in-progress macro for future editing. To
continue working on the macro, open the text file and copy the macro back into the Macro Editor.
CHAPTER 10: MACROS
93
CUSTOMER SUPPORT: 978-486-3711 • support@burk.com • www.burk.com
Summary of Contents for GSC3000
Page 8: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL viii ...
Page 22: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 14 ...
Page 32: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 24 ...
Page 40: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 32 ...
Page 52: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 44 ...
Page 68: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 60 ...
Page 120: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 112 ...
Page 128: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 120 ...
Page 132: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 124 ...
Page 140: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 132 ...
Page 144: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 136 ...