Specifications

110
CREATING MACROS • MATHEMATICAL STATEMENTS
7 Beaver Brook Road, Littleton, MA 01460 • 978-486-0086 • www.burk.com
TAN TANGENT
Macro Line Example Description
WHILE Tan(y) >1.0 [CR] Will stay in While loop as long as the Tangent of ‘Y’ is
above 1 (Values expressed in radians)
EXP EXPONENTIAL
exp(x + y) = exp(x)exp(y) exp(0) = 1 exp(- x) = 1/exp(x)
Macro Line Example Description
Z = EXP(meter(3)) [CR] Variable ‘Z’ is now equal to the exponential of Meter
Channel 3 of this unit
LOGE NATURAL LOGARITHM
Returns the natural logarithm of a number. Natural logarithms are
based on the constant e (2.71828182845904). Values entered
must be a positive real number for which you want the logarithm.
Macro Line Example Description
Z = Loge(meter(4)*meter(12)) [CR] Variable ‘Z’ is now equal to the natural logarithm of the
Product of Meter Channels 4 and 12 of this unit
POW POWER
Raises variable x to the power of y. X
Y
Macro Line Example Description
Z = POW (meter(3), meter(2)) [CR] Variable ‘Z’ is now equal to the floating point value of
Meter Channel 3 raised to the power of the floating point
value of Meter Channel 2 of this unit
SQR SQUARE ROOT
Returns the square root of X. -X
Macro Line Example Description
meter(10)=SQR(meter(3)) [CR] Meter Channel 10 on this unit is now equal to the SQUARE
ROOT of Meter Channel 3 of this unit
YEAR
Returns the four-digit year in the current I/O unit.
Macro Line Example Description
IF YEAR<2001 Then [CR] Compares the four-digit year of this I/O unit to 2001