Specifications
!! ––
BOOLEAN NOT OPERATOR
The “!” operator makes the statement following it the opposite of what it normally would have been.
AANNDD ––
BOOLEAN OPERATOR
All conditions joined by the AND operator must be true or the whole statement is considered false.
OORR ––
BOOLEAN OPERATOR
At least one statement, separated by an OR operator, must be true for the whole expression to be considered
true.
CCOOSS ––
COSINE
SSIINN ––
SINE
SSIINN((xx))//CCOOSS((xx)) ––
TANGENT
EEXXPP
–
EXPONENTIAL
exp(x + y)=exp(x)exp(y) exp(0)=1 exp(-x)=1/exp(x)
LLOOGGEE
–
NATURAL LOGARITHM
Returns the natural logarithm of a number. Natural logarithms are based on the constant e(2.71828182845904).
Values entered must be positive a real number for which you want the logarithm.
PPOOWW
–
POWER
Raises variable X to the power of Y.
GSC3000 & VRC2500 INSTALLATION & OPERATION MANUAL
CHAPTER 10: MACROS
104
Z=LOGE(METER(4)*METER(2)) [CR]
Variable Z is now equal to the natural
logarithm of the product of metering channels
4 and 12 of this unit.
Z=EXP(METER(3)) [CR]
Variable Z is now equal to the exponential of
metering channel 3.
IF !(MONTH=12) THEN [CR]
MACRO ME, 3, 18 [CR]
ELSE
MACRO ME, 3, 19 [CR]
ENDIF
If the current month on this unit is NOT 12, run
macro #18 on unit 3. If the current month IS 12,
run macro #19 on unit 3.
IF (A=B) AND (B=C) THEN [CR]
Both statements must be TRUE before THEN will
execute.
IF (A=B) OR (B=C) THEN [CR]
IF either statement is TRUE, THEN execute.
IF COS(x)>.5 THEN [CR]
Returns the cosine value of variable X in
comparison to .5 (values expressed in radians).
IF SIN(x)<.5 THEN [CR]
Returns the sine value of variable X in comparison
to .5 (values expressed in radians).
WHILE SIN(x)/COS(x)>1.0 [CR]
Will stay in WHILE loop as long as the tangent
of Y is above 1 (values expressed in radians).
Z=POW(METER(3), METER(2)) [CR]
Variable Z is now equal to the floating point
value of metering channel 3 raised to the
power of the floating point value of metering
channel 2.










