Datalogger programming, 1 cr10x programming – Campbell Scientific 380, 385, 380M, 385M Met One Rain Gages User Manual
Page 14

Met One Rain Gage Models 380 and 385
5. Datalogger Programming
5.1 CR10X Programming
This section is for users who write their own programs. A datalogger program
to measure this sensor can be created using Campbell Scientific’s Short Cut
Program Builder software. You do not need to read this section to use Short
Cut.
The Model 385 rain gage is measured using the Pulse Count instruction
configured for a switch closure. In all dataloggers, a multiplier of 0.01
converts the output to inches and a multiplier of 0.254 converts the output to
millimeters.
The following example program uses a pulse channel to read the output from
the rain gage and will work with CR500, CR510, CR10(X), 21X or CR23X.
The CR7 is similar but has an additional parameter in the Pulse Count
instruction to specify the slot that the Pulse Card is in.
Input Location Labels:
1. Rain (in)
*Table 1 Program
01: 10
Sec.
Execution
Interval
1: Pulse (P3)
1: 1
Rep
2: 1
Pulse
Input
Channel
3: 2
Switch
Closure
4: 1
Loc
[:Rain
(in)]
5: 0.01
Mult
6: 0
Offset
2: If time is (P92)
1: 0
minutes
into
a
2: 60
minute
interval
3: 10
Set high Flag 0
3: Real Time (P77)
1: 110
Day,Hour-Minute
4: Totalize (P72)
1: 1
Repetitions
2: 1
Starting
Input
Location
5: End Table 1
Output Instruction 72, Totalize, is used in the output section of the program to
output the total rainfall over the output interval. This section should be
executed every scan and not placed in a subroutine or conditional statement.
10