2 cr10x programming – Campbell Scientific CS506 Fuel Moisture Sensor User Manual
Page 13
CS506 Fuel Moisture Sensor
5.2 CR10X Programming
The following program measures a CS506 fuel moisture sensor using Edlog’s
Instruction 27 (Period Averaging). See Table 5-1 for wiring details that match
this program.
;{CR10X}
;CR10X Program for CS506
*Table 1 Program
01: 10.0000 Execution
Interval
(seconds)
1: If time is (P92)
1: 0
Minutes (Seconds --) into a
2: 60
Interval (same units as above)
3: 30
Then
Do
2: Do (P86)
1: 41
Set Port 1 High
3: Period Average (SE) (P27)
1: 1
Reps
2: 4
200 kHz Max Freq @ 2 V Peak to Peak, Period Output
3: 1
SE
Channel
4: 100
No.
of
Cycles
5: 1
Timeout (0.01 sec units)
6: 1
Loc [ PA_uS ]
7: 1
Multiplier
8: 0
Offset
4: Do (P86)
1: 51
Set Port 1 Low
5: If (X<=>F) (P89)
1: 1
X Loc [ PA_uS ]
2: 4
<
3: 17.701 F
4: 30
Then
Do
6: Polynomial (P55)
1: 1
Reps
2: 1
X Loc [ PA_uS ]
3: 2
F(X) Loc [ FuelM ]
4: -130.09 C0
5: 7.6298 C1
6: 0.0
C2
7: 0.0
C3
8: 0.0
C4
9: 0.0
C5
7: Else (P94)
7