
CS615 WATER CONTENT REFLECTOMETER
7
The calibration coefficients in the example
programs are demonstrative only. See Section
9 for information on calibration.
10.1 SAMPLE PROGRAM 1
Simple program using the Period Averaging
Instruction (P27) of a CR10 datalogger to read a
single CS615. The measurement is taken
hourly and the period and water content are
written to output storage.
CR10 CS615
Single-Ended
Channel 1 (SE1)
green
Control Port 5 (C5) orange
The red lead is connected to 12VDC and the
black and shield are connected to ground.
;{CR10}
;
*Table 1 Program
01: 5.0 Execution Interval (seconds)
1: If time is (P92) ;take reading hourly
1: 0000 Minutes (Seconds --) into a
2: 60 Interval (same units as above)
3: 30 Then Do
2: Do (P86)
1: 45 Set Port 5 High;enable CS615
3: Period Average (SE) (P27)
1: 1 Reps
2: 4 2 V Peak to Peak/200 kHz
Max. Freq.
3: 1 SE Channel
4: 10 No. of Cycles
5: 5 Timeout (units = 0.01 seconds)
6: 1 Loc [ 615period ]
7: .001 Mult
8: 0.0 Offset
4: Do (P86) ;disable CS615
1: 55 Set Port 5 Low
5: Polynomial (P55) ;convert period to water content
1: 1 Reps
2: 1 X Loc [ 615period ]
3: 2 F(X) Loc [ 615water ]
4: -0.187 C0
5: 0.037 C1
6: 0.335 C2
7: 0.0 C3
8: 0.0 C4
9: 0.0 C5
6: Do (P86)
1: 10 Set Output Flag High
7: Real Time (P77)
1: 0220 Day,Hour/Minute
8: Sample (P70)
1: 2 Reps
2: 1 Loc [615period]
9: End (P95)
End Program
10.2 SAMPLE PROGRAM 2
Simple program using the Pulse Count Instruction
(P3) of a CR10, CR500 or 21X datalogger to read
a single CS615. The Water Content
Reflectometer is queried when Flag 1 is set high.
The measurement is made and the period and
water content values are written to output storage.
CR10 or 21X CS615
Pulse Count
Channel 1 (P1)
green
Control Port 5 (C5) orange
The red lead is connected to 12VDC and the
black and shield are connected to ground.
;{CR10, CR500 or 21X}
;
*Table 1 Program
01: 1.0 Execution Interval (seconds)
1: If Flag/Port (P91) ;set flag1 high to initiate
reading
1: 11 Do if Flag 1 is High
2: 30 Then Do
2: Do (P86) ;enable CS615
1: 45 Set Port 5 High
3: Beginning of Loop (P87) ;delay for complete
count interval
1: 1 Delay
2: 2 Loop Count
4: End (P95)
5: Pulse (P3) ;determine CS615 output frequency
1: 1 Reps
2: 1 Pulse Input Channel
3: 21 Low Level AC, Output Hz
4: 1 Loc [ 615kHz ]
5: .001 Mult ;convert to kHz
6: 0.0 Offset
Kommentare zu diesen Handbüchern