Specifications
105
CREATING MACROS • TYPES OF MACROS
TECHNICAL SUPPORT 978-486-0086 • support@burk.com • www.burk.com
MUTESTATEMETER/MUTESTATESTATUS
These commands check to see if the input channel selected is in
a muted state. They do nothing to modify the state. When the
channel is muted it will return a value of 1. When the channel is
un-muted, it will return a value of 0.
To find out what the state of an input channel is, begin the macro
line with the words “MUTESTATEMETER” or
“MUTESTATESTATUS” followed by the channel number in
parentheses.
Macro Line Example Description
While MUTESTATUSMETER(5) = 1 While Meter Channel 5 of this unit is muted,
execute the WHILE statement
VARIABLES
There are two types of variables available for use in a macro. The
first type is a LOCAL variable. This type of variable is usable only
in the currently running macro. Any results saved or equated to a
variable inside of a particular macro will be deleted or lost as
soon as that macro is finished. There may be up to 32 local
variables. Local variable names may be from 1 up to 64
characters in length and must start with an alphabetic character.
Local variables cannot use reserved names that are on the
source code list.
The second type of variable is a GLOBAL variable. This type of
variable can be used by multiple macros on the same I/O unit
and is not lost unless power to an I/O unit is lost. Global variables
must start with the letter “G” followed by the variable number in
parentheses. There are eight variable names available for global
variables (G(1) to G(8)).
A global variable, changed
on one macro, will cause
a change to the
corresponding global variable in
all macros on that unit.The global
variable on one unit will not affect
the global variables on other units
in the network.
✍✍
Macro Line Example Description
POWER = meter(3)/meter(9) [CR] Sets the variable POWER equal to this unit's Meter
Channel 3 divided by this unit's Meter Channel 9.
G(1)=STATUS(9) [CR] Sets the Global Variable 1 to 0 if Status Channel 9 on
this unit is low, and to 1 if it is high.










