Specifications
109
CREATING MACROS • MATHEMATICAL STATEMENTS
TECHNICAL SUPPORT 978-486-0086 • support@burk.com • www.burk.com
( ) PARENTHESES
Parentheses must be in pairs. The computation of the innermost
pair is resolved before moving outward to the next computation.
Macro Line Example Description
Z = (meter(1)+meter(2))/35 [CR] The variable Z is now equal to the floating point value of
Meter Channels 1 and 2 of this unit ADDED together then
divided by 35
! BOOLEAN NOT OPERATOR
The “!” operator makes the statement following it the opposite of
what it normally would have been.
Macro Line Example Description
If !(MONTH=12) Then [CR] If the current month on this unit is NOT 12 run Macro
Macro ME, ME, 18 [CR] #18 on this unit. If the current month is 12, run Macro #19
Else [CR] on this unit.
Macro ME, ME, 19 [CR]
ENDIF
AND BOOLEAN OPERATOR
All conditions joined by the AND operator must be true or the
whole statement is considered false.
Macro Line Example Description
IF (A=B) AND (B=C) THEN [CR] Both statements must be TRUE before THEN will execute
OR BOOLEAN OPERATOR
At least one statement separated by an OR operator must be
true for the whole expression to be considered true.
Macro Line Example Description
IF (A=B) OR (B=C) THEN [CR] If either statement is TRUE, THEN execute
COS COSINE
Macro Line Example Description
IF COS(x)>.5 THEN [CR] Returns the cosine value of variable ‘X’ in comparison to
.5 (Values expressed in radians)
SIN SINE
Macro Line Example Description
IF Sin(x)<.5 THEN [CR] Returns the sine value of variable ‘X’ in comparison to
.5 (Values expressed in radians)










