Download Campbell CR23X Specifications

Transcript
APPENDIX B. CONTROL PORT SERIAL I/O INSTRUCTION 15
Example: 100 samples are averaged by the
barometer connected to the CR23X via hook-up
#1.
average of one measurement. The following
considerations are accounted for in the
program.
ET = 0.1 * 100 + 0.9
•
To preserve the barometer measurement
resolution, barometer data must be output
to the CR23X Final Storage in High
Resolution (OUTPUT PROCESSING
INSTRUCTION 78).
•
A communication failure shows up as a
partial value or -99999. It is generally
desirable to exclude this value from any
processing and log the incidence of failure.
A failure may be detected by comparing it to
expected limits. A bad value may be
excluded from processing by temporarily
setting the Intermediate Processing Disable
flag (flag 9). To log a failure the reading
could be output immediately with the time of
occurrence.
ET = 10.9 seconds
Time out = 10.9/0.01
Time out = 1090
In general, the above equations overestimate
the execution time. When execution speed is
critical, the minimum time out delay must be
determined through trial and error.
B.7.1.4 BAROMETER PROGRAM
The following example program assumes the
barometer is jumpered for TTL output and the
01:
01:
02:
03:
04:
05:
06:
07:
08:
09:
10:
11:
12:
P15
1
31
1
15
0
0
13
20
200
1
1
0
Control Port Serial I/O
Repetitions
Configuration code
CTS/Delay before send
C1RTS/DTR , C5 TXD/RXD
Output start location
Number of locations to send
Input termination character
Max characters to receive
Delay for CTS/input
First input location
Multiplier
Offset
02:
01:
02:
03:
04:
P89
1
3
1300
11
If X<=>F
X Loc AIR, mb
>=
F
Set high Flag 1
03:
01:
02:
03:
04:
P89
1
4
800
11
If X<=>F
X Loc AIR, mb
<
F
Set high Flag 1
04:
01:
02:
P91
11
30
If Flag/Port
Do if flag 1 is high
Then Do
If Flag 1 is set,
05:
01:
P86
10
Do
Set high Flag 0 (output)
Output time of failure
ASCII;TTL
13 = CR
Wait 1 sec for Input
barometer jumpered
for millibar output
START: Limit testing
If reading is > 1300 mb
then set Flag 1 high
If reading is < 800 mb
then set Flag 1
do the following.
B-13