Specifications
CHAPTER 10: MACROS
95
CUSTOMER SUPPORT: 978-486-3711 • support@burk.com • www.burk.com
SSoouurrccee CCooddee CCoommppoonneenntt DDeessccrriippttiioonn
% 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










