2 cr200(x) series pulse channel example, 3 cr10x pulse channel example – Campbell Scientific CS700 Tipping Bucket Rain Gage and CS700H Heated Rain Gage User Manual
Page 17

CS700 and CS700H Rain Gage
5.1.1.2 CR200(X) Series Pulse Channel Example
'CR200 Series
'CS700 program
'Declare Variables and Units
Public Rain_mm
Units Rain_mm=mm
'Define Data Tables
DataTable(CS700_mm,True,-1)
DataInterval(0,60,Min)
Totalize(1,Rain_mm,0)
EndTable
'Main Program
BeginProg
Scan(10,Sec)
'CS700 Rain Gauge measurement Rain_mm:
PulseCount(Rain_mm,P_SW,2,0,0.254,0)
'Call Data Tables and Store Data
CallTable(CS700_mm)
NextScan
EndProg
5.1.1.3 CR10X Pulse Channel Example
Although this program is for the CR10(X), the CR500, CR510, CR23X, and
21X can use essentially the same program. The CR7 is programmed similarly
but has an additional parameter in the Pulse Count instruction that specifies the
slot that the pulse card is in.
;{CR10X}
;
;CR10X Program for CS700
;Rain (mm)
;
*Table 1 Program
01: 1
Execution
Interval
(seconds)
1: Pulse (P3)
1: 1
Reps
2: 1
Pulse
Channel
1
3: 2
Switch Closure, All Counts
4: 1
Loc [ Rain_mm ]
5: .254
Multiplier
6: 0
Offset
2: If time is (P92)
1: 0
Minutes (Seconds --) into a
2: 60
Interval (same units as above)
3: 10
Set Output Flag High (Flag 0)
13