Specifications

Table Of Contents
APPENDIX C: EVENT PROGRAMMING
Page 202 MRC-565 Packet Data Radio Operations & Maintenance
get 1006. Later, when the sum is put into the SDATA report, the FPWR/F(0.1) group/sensor
definition converts the average value back to floating point and scales the value back to Watts
with one decimal fraction digit.
MRC-565 I/O Signals
The discrete I/O lines provide digital inputs that can be read (sensed) by the event software.
MRC-565 has 3 discrete input lines, 4 discrete output lines and 4 internal analog inputs. One
input senses a 0 to 5 Volt CPU input pin and the other senses a modem control RS 232 ±10V
input line (RTS). The MRC-565 has 7 discrete input lines, 6 discrete output lines, 5 internal
analog inputs and 6 external analog inputs.
;EVENT ACTION COMMENTS
event,stop ;stop event monitor
event,del,all ;delete prev table
;
event,reset, clr, a9 ;clear current reading
event,reset, clr, a10 ;clear total
event,reset, clr, a11 ;clear max
event,reset, set, a12, 9999 ;init min to a big value
event,reset, clr, c1 ;clear sample counter
event,reset, set, c2, 12 ;set number of samples
;
event,diolow,t1,1,1,set, t1, 80 ;if t1 is zero, set t1 to 80(5
secs)
event,cont, adcin, fpwr, a9, 10 ;also read fwdpwr into reg A9
event,cont, adda, a10, a9 ; add A9 to total A10
event,cont, inc, c1 ; increment sample counter
;
event,ifgt,a9,a11, mov, a11, a9 ;get new max value
;
event,iflt,a9,a12, mov, a12, a9 ;get new minimum value
;
event,ifeq,c1,c2, diva, a10, c2 ;if C1 == C2 compute average
event,cont, updt, 1 ;then trigger group 1 SDATA report
event,cont, clr, a10 ; clear the total
event,cont, clr, c1 ; clear the sample counter
event,cont, clr, a11 ; clear the max value
event,cont, set, a12, 9999 ; init min to big value
;
;Define the SDATA group contents
; Max Min Average
event,group,1, a11/f(.1), a12/f(.1), a10/f(.1)