Specifications

TYPES OF MACROS
The macro examples in this manual show line separations by the use of [CR]. When you see [CR] in the
examples, press enter to start a new line for the next instruction.
Commands
To issue a command in a macro, begin a new line with the word COMMAND, followed by the site ID (ME), the
unit number, and the command channel and command state (A or B) to activate:
EExxaammppllee 11
EExxaammppllee 22
Note: If desired, a number based on a variable can be inserted into the command channel location instead of a
channel number and letters A or B. This can be useful in “While Loops” that increment the variable value each pass.
Switch A for channels 1-16 would equal a variable value of 1-16. Switch B would equal 17-32.
Nested Macros
A macro can be used to initiated another macro. Start the line with the word MACRO, followed by the site and
unit numbers, and the macro number to run.
EExxaammppllee 11
EExxaammppllee 22
Note: Nested macros do not act as subroutines – they run concurrently with the originating macro. If you need to
execute a full macro sequence prior to running another macro, see the sub-procedure on page 110.
CHAPTER 10: MACROS
97
CUSTOMER SUPPORT: 978-486-3711 • support@burk.com • www.burk.com
COMMAND ME, ME, 10A [CR]
Command tells the macro it will issue a
command. The first ME refers to the site.
The second ME indicates the channel is
located on this unit. 10A refers to the
command channel and output state to be
activated. [CR] indicates carriage return
(press ENTER or RETURN) to start the
next line.
COMMAND ME, 5, 10A [CR]
Same as above, but in this example, the
macro refers to channel 10A on I/O unit
number 5.
MACRO ME, ME, 5 [CR]
Macro indicates that this instruction will
initiate another macro. The first ME refers
to the site. The second ME indicates the
channel is located on this unit. "5" means
that Macro #5 will be run. [CR] indicates
carriage return (press ENTER or RETURN)
to start the next line.
MACRO ME, 3, 5 [CR]
Same as above, but in this example, the
macro refers to Macro #5 on I/O unit
number 3.