SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-3
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.
PROGRAM
*
Table 1 Program
01:
60.0
Execution Interval (seconds)
01:
Pulse (P3)
1:
1
Reps
2:
1
Pulse Input Channel
3:
2
Switch Closure
4:
1
Loc [ Precip_mm ]
5:
.254
Mult
6:
0
Offset
02:
If time is (P92)
1:
0
Minutes (Seconds --) into a
2:
15
Interval (same units as above)
3:
10
Set Output Flag High
03:
Set Active Storage Area (P80)
1:
3
Input Storage Area
2:
2
Array ID or Loc [ 15min_tot ]
04:
Totalize (P72)
1:
1
Reps
2:
1
Loc [ Precip_mm ]
05:
IF (X<=>F) (P89)
1:
2
X Loc [ 15min_tot ]
2:
2
<>
3:
0
F
4:
30
Then Do
06:
Set Active Storage Area (P80)
1:
1
Final Storage Area 1
2:
25
Array ID or Loc
[ _________ ]
07:
Real Time (P77)
1: 0110
Day,Hour/Minute
08:
Sample (P70)
1:
1
Reps
2:
2
Loc [ 15min_tot ]
09:
End (P95)
INPUT LOCATIONS
1 Precip_mm
2 15min_tot
8.3 USING CONTROL PORTS AND
LOOP TO RUN AM416
MULTIPLEXER
This example uses an AM416 to measure 16
copper-constantan thermocouples and 16
Model 223 soil moisture blocks. The sensors
are read every ten minutes and the average
value output once an hour. The multiplexer is
housed in an AM-ENCT enclosure to minimize
thermocouple errors created by thermal
gradients. A 107 Temperature Probe is
centrally located on the multiplexer board and
used as a thermocouple temperature reference.
The AM416 switches the 223 moisture block out
of the circuit when it is not being measured.
This eliminates the need for the blocking
capacitors used in the model 227 soil moisture
block. The 223 blocks are about one fifth the
cost of the 227 blocks.
Control ports are used to reset the AM416 and
clock it through its channels. The sequence of
the program is:
•
Measure the 107 probe located at the
AM416 for TC temperature reference.
•
CR23X sets the port high which resets the
AM416.
•
A loop is entered; within each pass:
•
The port clocking the AM416 is pulsed.
•
Delay to ensure relay is closed.
•
The connected TCs and moisture blocks
are measured.
•
CR23X sets the port controlling AM416 reset
low.
•
Soil moisture measurements are converted
to block resistances.
The input location in which the temperature and
soil moisture measurements are stored is
indexed to the loop counter (Instruction 87,
Section 12). An indexed location is
incremented by one with each pass through the
loop. For example, on the first pass
temperature is stored in Location 2, and soil
moisture in Location 18. On the second pass
temperature is stored in Location 3, and soil
moisture in Location 19. After 16 loop passes,
temperature and soil moisture measurements
occupy Locations 2 through 17 and 18 through
33, respectively.
Connections are shown in Figure 8.3-1.
Содержание CR23X
Страница 8: ...CR23X TABLE OF CONTENTS vi This is a blank page ...
Страница 12: ...CR23X MICROLOGGER OVERVIEW OV 2 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE OV1 1 CR23X Micrologger ...
Страница 34: ...CR23X MICROLOGGER OVERVIEW OV 24 This is a blank page ...
Страница 50: ...SECTION 1 FUNCTIONAL MODES 1 16 This is a blank page ...
Страница 72: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 8 This is a blank page ...
Страница 88: ...SECTION 6 9 PIN SERIAL INPUT OUTPUT 6 10 This is a blank page ...
Страница 103: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 15 CR23X AVW1 FIGURE 7 15 2 Well Monitoring Example ...
Страница 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 22 This is a blank page ...
Страница 134: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 24 This is a blank page ...
Страница 164: ...SECTION 9 INPUT OUTPUT INSTRUCTIONS 9 30 This is a blankpage ...
Страница 188: ...SECTION 11 OUTPUT PROCESSING INSTRUCTIONS 11 8 This is a blankp age ...
Страница 221: ...SECTION 13 CR23X MEASUREMENTS 13 21 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Страница 229: ...14 3 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE 14 3 1 CR23X Battery Pack and Panel ...
Страница 239: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 13 S A N Y O FIGURE 14 11 6 Removal of band clamp and battery ...
Страница 240: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 14 This is a blank page ...
Страница 244: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Страница 268: ...APPENDIX B CONTROL PORT SERIAL I O INSTRUCTION 15 B 24 This is a blank page ...
Страница 276: ...APPENDIX C BINARY TELECOMMUNICATIONS C 8 This is a blank page ...
Страница 278: ...This is a blank page ...
Страница 282: ...APPENDIX F DYNAGAGE SAP FLOW P67 F 4 This is a blank page ...
Страница 299: ...APPENDIX I TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Страница 300: ...This is a blank page ...
Страница 302: ...This is a blank page ...
Страница 308: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Страница 324: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Страница 340: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Страница 342: ...This is a blank page ...
Страница 373: ...This is a blank page ...