Manual
Page 5
26800-90(K)
IMPORTANT NOTE ABOUT FLAGS:
FLAG 01 is a special ag that triggers result calculation for AVER-
AGE, MINIMUM, MAXIMUM and STANDARD DEVIATION instruc-
tions when they use the BLOCK method. The ag has no effect 
when the MOVING method is used.
FLAG SET is used to set a ag ON or OFF. Use ags to signify 
the occurrence of some event and trigger a response (see IF 
FLAG).
  ag#=   Flag number (01 to 16)
  state=  Flag state (ON or OFF)
FLAG SET MASK sets the state of all ags using a hexadecimal 
mask.
  mask=  Hexadecimal mask value (0000-FFFF)
  state=  Flag state (ON or OFF)
FLAG TIME INTERVAL sets the state of FLAG# when current 
time aligns with an interval. When UNIT is set to MIN (minute), 
TIME interval is limited to 1440 (equivalent to 24 hours). The 
PROGRAM INTERVAL parameter must be set to 00 or 01 for 
this instruction to operate correctly.
  unit=    Time unit (SEC or MIN)
  time=   Time alignment (0001-9999)
  ag#=  Flag number (01-16)
  state=  Flag state (ON or OFF)
IMPORTANT NOTE ABOUT IF INSTRUCTIONS:
All IF instructions must have a matching END IF instruction. Only 
one optional ELSE instruction may be inserted between them. 
Example:
 IFFLAG
  instruction(s)...
 ELSE(optional)
  instruction(s)...(optional)
 ENDIF
IF FLAG tests whether FLAG# is ON or OFF. 
  ag#=    Flag number (01-16)
  state=    Flag state (OFF or ON)
IF FLAG MASK tests all ags against a hexadecimal ag 
mask. LOGIC parameter determines whether ANY or ALL ags 
matching the mask will satisfy the condition. STATE parameter 
determines whether we are looking for ON ags or OFF ags as 
dened by the mask.
  mask=    Hexadecimal mask (0000 to FFFF)
  logic=    Match logic (ANY or ALL)
  state=    Comparison state (OFF or ON)
IF KEYSWITCH tests whether any of the 3 user soft-keys are 
pressed during OPERATE MODE.
    key=  Key value (KEY1, KEY2, or KEY3)
IF LOC1 COMPARE LOC2 compares the values in SLOC1 
and SLOC2.
  sloc1=  Source location 1 (001-256)
  comp:  <  less than
        <=  less than or equal to
        >=  greater than or equal to
        >  greater than
        <>  not equal to
        =  equal to
  sloc2=  Source location 2 (001-256)
IF LOC1 COMPARE VALUE compares the value in SLOC to a 
xed value.
  sloc1=  Source location 1 (001-256)
  comp:  <  less than
        <=  less than or equal to
        >=  greater than or equal to
        >  greater than
        <>  not equal to
        =  equal to
  val=  Value to compare
IF LOC SPAN tests the value in SLOC against two setpoint val-
ues. SPAN determines how to compare the value in SLOC to the 
range dened by SETPOINT 1 and 2. INCL (inclusive) compares 
SLOC to values inside the range. EXCL (exclusive) compares 
SLOC to values outside the range. DELAY sets the duration the 
compare condition must be met to consider the comparison true.
  sloc=   Source location (001-256)
  set1=   Setpoint 1
  set2=   Setpoint 2
  delay=  Time delay seconds (00-99)
  span=  Span logic (INCL or EXCL)
IF TIME INTERVAL tests current time to against a time interval. 
When UNIT is set to MIN (minutes), TIME interval is limited 
to 1440 (equivalent to 24 hours). The PROGRAM INTERVAL 
parameter must be set to 00 or 01 for this instruction to operate 
correctly.
  unit=    Time unit (MIN or SEC)
  time=   Time interval (0001-9999)
INPUT FREQ measures pulses per second on FREQ INPUT 
channels. LOW-AC congures the detector for a low-level AC 
signal. TTL/SW congures the detector for a TTL logic-level or 
switch-closure signal. Apply a multiplier and offset with MULT 
and OFFS if needed. Result stored in DLOC. 
Switch-closures require a pull-up resistor. See appendix B for 
wiring examples.
  chan=    Frequency Input channel (1-4)
  type=    Input type (LOW-AC or TTL/SW)
  mult=    Multiplier value
  offs=    Offset value
  dloc=    Destination location (001-256)
INPUT PRECIP (TIPPING BUCKET) measures precipitation 
from a tipping bucket sensor using FREQ INPUT channels. 
RESO parameter sets the resolution per tip. Apply a multiplier 
with MULT if needed. Current 1-hour precipitation is stored at 
DLOC. Additional results are stored in six locations following 
DLOC. DO NOT allow other instructions to store values in these 
locations.
  chan=    Frequency input channel (1-4)
  reso=    Tip resolution
  mult=    Multiplier value
  dloc=    Destination location (001-256)
        Current 1-hour precipitation 
  dloc+1    Last 1-hour precipitation
  dloc+2    Current 24-hour precipitation
  dloc+3    Last 24-hour precipitation
  dloc+4    1-hour rate based on 5-minute sample
  dloc+5    Rate total (used internally)
  dloc+6    Raw pulse count (used internally)










