!! –
–
BOOLEAN NOT OPERATOR
The “!” operator makes the statement following it the opposite of what it normally would have been.
A
AN
ND
D –
–
BOOLEAN OPERATOR
All conditions joined by the AND operator must be true or the whole statement is considered false.
O
OR
R –
–
BOOLEAN OPERATOR
At least one statement, separated by an OR operator, must be true for the whole expression to be considered
true.
C
CO
OS
S –
– COSINE
S
SIIN
N –
–
SINE
S
SIIN
N((xx))//C
CO
OS
S((xx)) –
–
TANGENT
E
EX
XP
P –
EXPONENTIAL
exp(x + y)=exp(x)exp(y)
exp(0)=1
exp(-x)=1/exp(x)
LLO
OG
GE
E –
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.
P
PO
OW
W –
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.
Summary of Contents for GSC3000
Page 8: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL viii ...
Page 22: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 14 ...
Page 32: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 24 ...
Page 40: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 32 ...
Page 52: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 44 ...
Page 68: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 60 ...
Page 120: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 112 ...
Page 128: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 120 ...
Page 132: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 124 ...
Page 140: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 132 ...
Page 144: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 136 ...