2 21x programming – Campbell Scientific CS505 Fuel Moisture Sensor User Manual
Page 10
CS505 Fuel Moisture Sensor
5.2 21X Programming
A program to measure a CS505 fuel moisture sensor using the Pulse Count
Instruction P3. The fuel moisture sensor is measured when flag 1 is set high.
The measurement is made then flag 1 is set low.
;{21X}
;21X Program for CS505
*Table 1 Program
01: 10.0000 Execution Interval (seconds)
1: If time is (P92)
1: 0
Minutes
into
a
2: 60
Minute
Interval
3: 30
Then
Do
2: Do (P86)
1: 41
Set Port 1 High
3: Beginning of Loop (P87)
1: 10
Delay
2: 2
Loop
Count
4: End (P95)
5: Pulse (P3)
1: 1
Reps
2: 1
Pulse
Input
Channel
3: 21
Low Level AC, Output Hz
4: 5
Loc [ FkHz_5 ]
5: 0.001
Multiplier
6: 0
Offset
6: Z=1/X (P42)
1: 5
X Loc [ FkHz_5 ]
2: 4
Z Loc [ PA_uS ]
7: Z=X*F (P37)
1: 4
X Loc [ PA_uS ]
2: 0.001
F
3: 4
Z Loc [ PA_uS ]
8: Z=X*F (P37)
1: 4
X Loc [ PA_uS ]
2: 0.001
F
3: 3
Z Loc [ FuelM ]
6