Specifications
116
CREATING MACROS • MACRO EXAMPLES
7 Beaver Brook Road, Littleton, MA 01460 • 978-486-0086 • www.burk.com
While Delay
This example shows how a While statement
can set up a variable loop which pauses a
macro until a defined set of conditions are met.
First, the macro mutes Status Channel 11,
then issues Command 13a. The While
statement checks the reading of Status
Channel 11. As long as Status Channel 11 is
“High,” the macro will continue to loop and
check the status. When Status Channel 11 is
no longer High, the While statement ends and
the macro issues Command 13b. Last, the
macro unmutes Status Channel 11 and ends.
Start Transmitter
This is an example of a macro that starts other
macros after a short time delay. The first line
starts Macro #2. There is a 10-second delay,
then Macro #3 is started. After another delay of
ten seconds, Macro #5 begins. Each line of
code takes approximately .2 seconds to run.
NOTE:This macro shows a time delay only.
Each macro will start immediately after the
specified amount of delay time whether or
not the previous macro has finished. This
type of macro should be used with caution
because too many macros running
simultaneously (more than eight) will cause
an alarm. If a macro needs to be completed
before continuing on to the next part of the
macro, follow the sub-procedure example
on page 119.
While Delay Macro
Start Transmitter Macro










