Specifications

119
CREATING MACROS • MACRO EXAMPLES
TECHNICAL SUPPORT 978-486-0086 • support@burk.com • www.burk.com
Sub Procedure
These examples show how global variables may be
used in nested macros to ensure that each macro is
finished before another one begins. The first line
sets the global variable number one to a value of
zero. This line sets up a variable loop that prevents
subsequent macros from starting before the current
one has finished running. The second line launches
Macro #8 which issues three Commands; 10a, 11a,
and 12a, after which the global variable is made
equal to 1.
While Macro #8 is executing, Macro #7 is paused in
a variable loop established by the WHILE statement
that lasts as long as G(1) = 0. When Macro #8
changes the global variable to 1, Macro #7 ends the
WHILE statement and launches Macro 9. Macro #9
issues three commands and then changes the value
of the global variable to 2 and then ends.
Macro #7 is paused by the second WHILE statement
until Macro #9 changes the global variable to 2.
Macro #7 then ends the WHILE statement and ends
the macro.
Sub Procedure Macro
Sub Procedure Macro
Sub Procedure Macro