Specifications
SSQQRR
–
SQUARE ROOT
Returns the square root of X.
YYEEAARR
Returns the four-digit year in the current I/O unit.
MMOONNTTHH
Returns the decimal equivalent of the current month (1-12).
DDAAYY
Returns the decimal equivalent of the Day of the Month (1-31).
DDAAYYOOFFWWEEEEKK
Returns the decimal equivalent of the Day of the Week starting with Sunday (1-7).
HHOOUURR
Returns the current hour of this I/O unit based on a 24-hour clock.
MMIINNUUTTEE
Returns the current minute (0-59)
SSEECCOONNDD
Returns the current second (0-59).
CHAPTER 10: MACROS
105
CUSTOMER SUPPORT: 978-486-3711 • support@burk.com • www.burk.com
WHILE HOUR=0 [CR]
Executes following command statements
continuously during the first HOUR of each
day.
WHILE MINUTE=30 [CR]
Executes following command statements
continuously during the 30th MINUTE of an
hour.
METER(10)=SQR(METER(3)) [CR]
Metering channel 10 is now equal to the
SQUARE ROOT of metering channel 3.
IF YEAR<2003 THEN [CR]
Compares the four-digit year of this I/O unit
to 2003.
IF MONTH=4 THEN [CR]
Compares the current month of this I/O unit
to 4 (April).
IF DAY<16 THEN [CR]
Executes the statement if it is before the 16th
day of the month.
IF DAYOFWEEK=1 THEN [CR]
Executes statement only on Sunday.
IF SECOND=45 THEN [CR]
Executes statement if SECOND equals 45










