SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-2
04:
P54
Block Move
01:
9
No. of Values
02:
12
First Source Loc Temp i-8
03:
1
Source Step
04:
11
First Dest. Loc [:Temp i-9 ]
05:
1
Destination Step
05:
P86
Do
01:
10
Set high Flag 0 (output)
06:
P70
Sample
01:
1
Reps
02:
2
Loc 10smpl av
07:
P
End Table 1
In the above example, all samples for the
average are stored in input locations. This is
necessary when an average must be output
with each new sample. In most cases,
averages are desired less frequently than
sampling. For example, it may be necessary to
sample some parameter every 5 seconds and
output every hour an average of the previous
three hours' readings. If all samples were
saved, this would require 2160 input locations.
The same value can be obtained by computing
an hourly average and averaging the hourly
averages for the past three hours. To do this
requires that hourly averages be stored in input
locations.
Instruction 80 is used to send the 1 hour
average to Input Storage and again to send the
3 hour average to Final Storage.
Input Location Labels:
1:AVG i-2
2:AVG i-1
3:AVG i
4:3 HR AVG
5:XX mg/M3
*
1
Table 1 Programs
01:
5
Sec. Execution Interval
01:
P2
Volt (DIFF)
01:
1
Rep
02:
25
2500 mV 60 Hz rejection
03:
3
IN Chan
04:
5
Loc [:XX mg/M3 ]
05:
10
Mult
06:
0
Offset
02:
P92
If time is
01:
0
minutes into a
02:
60
minute interval
03:
10
Set high Flag 0 (output)
03:
P80
Set Active Storage Area
01:
3
Input Storage Area
02:
3
Array ID or location
04:
P71
Average
01:
1
Rep
02:
5
Loc XX mg/M3
05:
P51
Spatial Average
01:
3
Swath
02:
1
First Loc AVG i-2
03:
4
Avg Loc [:3 HR AVG ]
06:
P80
Set Active Storage Area
01:
1
Final Storage Area 1
02:
25
Array ID or location
07:
P77
Real Time
01:
110
Day,Hour-Minute
08:
P70
Sample
01:
1
Reps
02:
4
Loc 3 HR AVG
09:
P91
If Flag/Port
01:
10
Do if flag 0 (output) is high
02:
30
Then Do
10:
P54
Block Move
01:
2
No. of Values
02:
2
First Source Loc AVG i-1
03:
1
Source Step
04:
1
First Dest. Loc [:AVG i-2 ]
05:
1
Destination Step
11:
P95
End
12:
P
End Table 1
8.2 RAINFALL INTENSITY
In this example, the total rain for the last 15
minutes is output only if any rain has occurred.
The program makes use of the capability to
direct the output of Output Processing
Instructions to Input Storage.
Every 15 minutes, the total rain is sent to Input
Storage. If the total is not equal to 0, output is
redirected to Final Storage Area 1, the time is
output and the total is sampled.
Summary of Contents for CR10 PROM
Page 2: ...This is a blank page ...
Page 4: ...This is a blank page ...
Page 9: ...CR10 TABLE OF CONTENTS v LIST OF TABLES LT 1 LIST OF FIGURES LF 1 INDEX I 1 ...
Page 10: ...CR10 TABLE OF CONTENTS vi This is a blank page ...
Page 14: ...CR10 OVERVIEW OV 2 ...
Page 15: ...CR10 OVERVIEW OV 3 FIGURE OV1 1 1 CR10 and Wiring Panel ...
Page 16: ...CR10 OVERVIEW OV 4 FIGURE OV1 1 2 CR10 Wiring Panel Instruction Access ...
Page 17: ...CR10 OVERVIEW OV 5 ...
Page 34: ...CR10 OVERVIEW OV 22 ...
Page 35: ...CR10 OVERVIEW OV 23 FIGURE OV6 1 1 Data Retrieval Hardware Options ...
Page 36: ...CR10 OVERVIEW OV 24 OV7 SPECIFICATIONS ...
Page 37: ...CR10 OVERVIEW OV 25 ...
Page 38: ...CR10 OVERVIEW OV 26 ...
Page 51: ...SECTION 1 FUNCTIONAL MODES 1 13 This is a blank page ...
Page 53: ...2 2 ...
Page 62: ...SECTION 3 INSTRUCTION SET BASICS 3 6 ...
Page 63: ...SECTION 3 INSTRUCTION SET BASICS 3 7 ...
Page 68: ...SECTION 3 INSTRUCTION SET BASICS 3 12 This is a blank page ...
Page 74: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 6 ...
Page 88: ...6 5 FIGURE 6 6 1 Addressing Sequence for the RF Modem ...
Page 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 17 FIGURE 7 16 2 Well Monitoring Example ...
Page 132: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 13 This is a blank page ...
Page 197: ...SECTION 13 CR10 MEASUREMENTS 13 18 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Page 203: ...SECTION 13 CR10 MEASUREMENTS 13 24 This is a blank page ...
Page 215: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 12 This is a blank page ...
Page 218: ...APPENDIX A GLOSSARY A 3 and computers in a terminal mode fall in this category ...
Page 220: ...APPENDIX A GLOSSARY A 5 This is a blank page ...
Page 228: ...APPENDIX C BINARY TELECOMMUNICATIONS C 6 This is a blank page ...
Page 230: ...This is a blank page ...
Page 232: ...This is a blank page ...
Page 234: ...APPENDIX G CHANGING RAM OR PROM CHIPS G 2 FIGURE G 1 Disassembling CR10 ...
Page 236: ...APPENDIX G CHANGING RAM OR PROM CHIPS G 4 FIGURE G 3 Jumper Settings and Locations ...
Page 237: ...APPENDIX G CHANGING RAM OR PROM CHIPS G 5 This is a blank page ...