SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-5
INPUT LOCATIONS
1 Ref_Temp
12 TC_#11
23 Soil_#6
2 TC_#1
13 TC_#12
24 Soil_#7
3 TC_#2
14 TC_#13
25 Soil_#8
4 TC_#3
15 TC_#14
26 Soil_#9
5 TC_#4
16 TC_#15
27 Soil_#10
6 TC_#5
17 TC_#16
28 Soil_#11
7 TC_#6
18 Soil_#1
29 Soil_#12
8 TC_#7
19 Soil_#2
30 Soil_#13
9 TC_#8
20 Soil_#3
31 Soil_#14
10 TC_#9
21 Soil_#4
32 Soil_#15
11 TC_#10
22 Soil_#5
33 Soil_#16
8.4 SUB 1 MINUTE OUTPUT INTERVAL
SYNCHED TO REAL TIME
Output can be synchronized to seconds by
pressing “-” or “C” while entering the first
parameter in Instruction 92. If a counter,
incremented within the program, was used to
determine when to set the Output Flag, output
would depend on the number of times the table
was executed. The actual time of output would
depend on when the program was actually
compiled and started running. If the table
overran its execution interval (Section 1.1.1),
the output interval would not be the count
multiplied by the execution interval, but some
longer interval.
In this example a temperature (107
Temperature Probe) is measured every 0.5
seconds and the average output every 30
seconds.
PROGRAM
*
Table 1 Program
01:
0.5
Execution Interval (seconds)
01:
Reference Temperature (P17)
1:
1
Loc [ Ref_Temp ]
02:
Thermocouple Temp (DIFF) (P14)
1:
1
Reps
2: 11
±10 mV Fast Range
3:
2
DIFF Channel
4:
2
Type E (Chromel-Constantan)
5:
1
Ref Temp Loc [ Ref_Temp ]
6:
2
Loc [ TC_Temp ]
7:
1
Mult
8:
0
Offset
03:
If time is (P92)
1:
0--
Minutes (Seconds --) into a
2: 30
Interval (same units as above)
3: 10
Set Output Flag High
04:
Average (P71)
1:
1
Reps
2:
2
Loc [ TC_Temp ]
INPUT LOCATIONS
1 Ref_Temp
2 TC_Temp
8.5 SWITCH CLOSURES ON CONTROL
PORTS (RAIN GAGE)
Control ports 6, 7, and 8 can be used to
measure switch closures up to 40 Hz.
Instruction 3, pulse, is used to measure two rain
gages on pulse inputs 1 and 2, and a third rain
gage with control port 8. This is done as a
comparison. In a real application the pulse
channels would be used for wind speed and a
control port for a rain gage. The rain gage is
connected as diagrammed below.
CR23X
FIGURE 8.5-1. Connections for Rain Gage
PROGRAM
*
Table 1 Program
01:
10.0
Execution Interval (seconds)
01:
Pulse (P3)
1:
2
Reps
2:
1
Pulse Input Channel
3:
2
Switch Closure
4:
10
Loc [ Precip_1 ]
5:
.254
Mult
6:
0
Offset
02:
Pulse (P3)
1:
1
Reps
2:
8
Control Port
3:
2
Switch Closure
4:
12
Loc [ Precip_3 ]
5:
.254
Mult
6:
0
Offset
Summary of Contents for CR23X
Page 8: ...CR23X TABLE OF CONTENTS vi This is a blank page ...
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 ...
Page 34: ...CR23X MICROLOGGER OVERVIEW OV 24 This is a blank page ...
Page 50: ...SECTION 1 FUNCTIONAL MODES 1 16 This is a blank page ...
Page 72: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 8 This is a blank page ...
Page 88: ...SECTION 6 9 PIN SERIAL INPUT OUTPUT 6 10 This is a blank page ...
Page 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 22 This is a blank page ...
Page 134: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 24 This is a blank page ...
Page 164: ...SECTION 9 INPUT OUTPUT INSTRUCTIONS 9 30 This is a blankpage ...
Page 188: ...SECTION 11 OUTPUT PROCESSING INSTRUCTIONS 11 8 This is a blankp age ...
Page 221: ...SECTION 13 CR23X MEASUREMENTS 13 21 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Page 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 ...
Page 240: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 14 This is a blank page ...
Page 244: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Page 268: ...APPENDIX B CONTROL PORT SERIAL I O INSTRUCTION 15 B 24 This is a blank page ...
Page 276: ...APPENDIX C BINARY TELECOMMUNICATIONS C 8 This is a blank page ...
Page 278: ...This is a blank page ...
Page 282: ...APPENDIX F DYNAGAGE SAP FLOW P67 F 4 This is a blank page ...
Page 299: ...APPENDIX I TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Page 300: ...This is a blank page ...
Page 302: ...This is a blank page ...
Page 308: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Page 324: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Page 340: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Page 342: ...This is a blank page ...
Page 373: ...This is a blank page ...