CHAPTER 10: MACROS
95
CUSTOMER SUPPORT: 978-486-3711 • support@burk.com • www.burk.com
S
So
ou
urrcce
e C
Co
od
de
e C
Co
om
mp
po
on
ne
en
ntt
D
De
essccrriip
pttiio
on
n
%
MOD OPERATOR –
– Returns the integer remainder
()
PARENTHESIS –
– Used to maintain mathematical hierarchy
:
STATEMENT SEPARATOR
!
BOOLEAN OPERATOR –
– Reverses value of expression
AND
BOOLEAN OPERATOR –
– Requires both conditions to be true
COS(x)
COSINE – Expressed in radian values, not degrees
EXP(x)
EXPONENT – Returns the exponential of x
LOGE(x)
NATURAL LOG
OR
BOOLEAN OPERATOR – Requires either condition to be true
POW(x,y)
POWER – x to the power of y
SIN(x)
SINE – expressed in radian values, not degrees
SQR(x)
SQUARE ROOT
YEAR
Returns the current 4-digit year (2002, 2003, etc...)
MONTH
Returns numeric equivalent of the current month (1-12)
DAY
Returns the current day of the month (13, 17, 31, etc...)
DAYOFWEEK
Returns numeric equivalent of the day of the week:
1-7 (Sunday-Saturday)
HOUR
Returns current hour (0-23)
MINUTE
Returns current minute (0-59)
SECOND
Returns current second (0-59)
ALARM “text string”
Alarm text message displayed in Lynx alarm window and
announced by Voice Interface
CAPTURE X, Y
Captures data at site (X), on unit (Y)
COMMAND X, Y, ZA or ZB
Closes A or B contact for particular command channel on site
(X), unit (Y) and channel (Z)
DELAY X
Delays X seconds before processing next line. Adjustable in
tenths of seconds
ELSE [instruction]
Used when IF condition is not met
END
Exits macro prematurely
IF [condition] THEN [instructions]
Used to execute commands IF certain conditions are met
KILL X
Terminates macro #(X) on this I/O unit
L1METER(X)
Returns 1st Lower Limit value for metering channel (X)
L1METER(X)=[NUM]
Assigns new value to 1st Lower Limit of metering channel (X)
L2METER(X)
Returns 2nd Lower Limit value for metering channel (X)
L2METER(X)=[NUM]
Assigns new value to 2nd Lower Limit of metering channel (X)
MACRO X, Y, Z
Executes macro #(Z) located on site (X), unit (Y)
MACRO “text string”
First line in every macro – names that particular macro
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 ...