Campbell Scientific 52202 52202 Electrically Heated Rain and Snow Gage - Page 11

Control Port Example

Page 11 highlights

52202 Electrically Heated Rain and Snow Gage 5.1.3 CR10X Example Program ;{CR10X} *Table 1 Program 01: 1.0000 Execution Interval (seconds) 1: Pulse (P3) 1: 1 2: 1 3: 2 4: 3 5: 0.1 6: 0 Reps Pulse Channel 1 Switch Closure, All Counts Loc [ Rain_mm ] Multiplier Offset 2: If time is (P92) 1: 0 2: 60 3: 10 Minutes (Seconds --) into a Interval (same units as above) Set Output Flag High (Flag 0) 3: Set Active Storage Area (P80) 1: 1 Final Storage Area 1 2: 101 Array ID 4: Real Time (P77) 1: 1220 Year,Day,Hour/Minute (midnight = 2400) 5: Totalize (P72) 1: 1 Reps 2: 3 Loc [ Rain_mm ] *Table 2 Program 01: 0 Execution Interval (seconds) *Table 3 Subroutines End Program 5.2 Control Port Example The following example programs use a control port to read the output from the precipitation gage. The CR1000 example will also work with the CR800, CR850, and CR3000. The CR10X program will also work with the CR500, CR510, or CR23X. 7

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

52202 Electrically Heated Rain and Snow Gage
5.1.3
CR10X Example Program
;{CR10X}
*Table 1 Program
01: 1.0000
Execution Interval (seconds)
1: Pulse (P3)
1:
1
Reps
2:
1
Pulse Channel 1
3:
2
Switch Closure, All Counts
4:
3
Loc [ Rain_mm ]
5:
0.1
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)
3: Set Active Storage Area (P80)
1:
1
Final Storage Area 1
2:
101
Array ID
4: Real Time (P77)
1:
1220
Year,Day,Hour/Minute (midnight = 2400)
5: Totalize (P72)
1:
1
Reps
2:
3
Loc [ Rain_mm ]
*Table 2 Program
01: 0
Execution Interval (seconds)
*Table 3 Subroutines
End Program
5.2
Control Port Example
The following example programs use a control port to read the output from the
precipitation gage. The CR1000 example will also work with the CR800,
CR850, and CR3000.
The CR10X program will also work with the CR500,
CR510, or CR23X.
7