Specifications

Table Of Contents
APPENDIX C: EVENT PROGRAMMING
Page 201 MRC-565 Packet Data Radio Operations & Maintenance
EVENT,STOP
EVENT,DEL,ALL
SCALE,TEMP,0.25,-64.0
EVENT,ADCHI,TEMP,26.0,960,960,SET,RO5
EVENT,ADCLOW,TEMP,25.0,960,960,CLR,RO5
EVENT,ADCLOW,TEMP,5.0,960,960,SET,RO6
EVENT,DIOHI,TEMP,10.0,960,960,CLR,RO6
EVENT,DIOLOW,RTS,CAN,80,960,CAN,004
.
. other MRC-565 initialization commands
.
EVENT,START
Example 6: Marker Drop Button
The following is the script for initializing the MRC-565 for the detection of a vehicle operator
pressing a "drop marker" button wired into the RTS signal to go high when the button is
depressed. A MARK message is transmitted if the operator depresses the button for at least a
quarter of a second (4). The operator must release the button for three seconds (48) before
another button press will be detected.
EVENT,STOP
EVENT,DEL,ALL
EVENT,DIOHI,RTS,4,48,MARK
.
. other MRC-565 initialization commands
.
EVENT,START
Example 7: Max/Min/Averaging A/D channel values
Calculations can be performed on ADC channel values to compute averages, maximums,
minimums, etc. This is accomplished using the ADCIN action to read a value into an
accumulator, then doing math operations as desired. The following example shows a way to
average the forward power value. Many other calculations are possible. Every 5 seconds the
FPWR channel is read into accumulator 9. This value is then added to accumulator 10 to sum
the readings. Every minute the sum is divided by the number of samples to compute the average.
Notice that the ADCIN command uses a multiplier of 10 when inputting the value into
accumulator 9. Since the accumulator is an integer, this multiplier lets one decimal fraction digit
be included in the sum. The value of 100.6 Watts would be read in as 100.6, multiplied by 10 to