
CS505 FUEL MOISTURE SENSOR
4
5.1 CR10X EXAMPLE PROGRAM
A program to measure a CS505 fuel moisture sensor using the Period Averaging instruction P27 of a
CR10(X), CR500, or CR23X datalogger. P27 is the preferred measurement technique with a Campbell
Scientific, Inc. datalogger. P27 is not an option in the 21X datalogger.
;{CR10X}
color
function
example CR10X Program wiring connections
red power 12V
black ground G
orange control
C1
green
signal
1H (single-ended 1)
clear shield G
*Table 1 Program
01:
5
Execution Interval (seconds)
1: If time is (P92)
Measure the CS505 once an hour.
1:
0
Minutes (Seconds --) into a
2:
60
Interval (same units as above)
3:
30
Then Do
2: Do (P86)
Turn on sensor by applying 5V to the enable lead.
1:
41
Set Port 1 High
3: Period Average (SE) (P27)
Measure the sensor’s output period.
1:
1
Reps
2:
4
2 V Peak to Peak/200 kHz Max. Freq., Output Period
3:
1
SE Channel
4:
10
No. of Cycles
5:
5
Timeout (units = 0.01 seconds)
6:
1
Loc [ FuelMoist ]
7:
0.001
Mult
Prescaling for the polynomial.
8:
0.0
Offset
4: Polynomial (P55)
Convert sensor period to fuel moisture.
1:
1
Reps
2:
1
X Loc [ FuelMoist ]
3:
1
F(X) Loc [ FuelMoist ]
4:
-220.14
C0
5:
365.89
C1
6:
-114.96
C2
7:
0.0
C3
8:
0.0
C4
9:
0.0
C5
5: Do (P86)
Turn off the sensor.
1:
51
Set Port 1 Low
6: End (P95)
-Input Locations-
1 FuelMoist 5 1 2