Campbell Scientific TE525MM TE525, TE525WS, and TE525MM Texas Electronics Rain - Page 22

A.2 CR10X Control Port Example

Page 22 highlights

Appendix A. Edlog Program Examples A.2 CR10X Control Port Example This example measures a TE525 rain gage in millimeters. A different multiplier would be entered (TABLE 7-3) for other units. ;{CR10X} ; *Table 1 Program 01: 1 Execution Interval (seconds) 1: Pulse (P3) 1: 1 2: 8 3: 2 4: 1 5: .254 6: 0 Reps Control Port 8 (switch closure only) Switch Closure, All Counts Loc [ Rain_mm ] Multiplier Offset ;Black wire connect to C8 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 2: 1 Reps Loc [ Rain_mm ] *Table 2 Program 02: 0.0000 *Table 3 Subroutines Execution Interval (seconds) End Program 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. A-2

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24

Appendix A.
Edlog Program Examples
A-2
A.2 CR10X Control Port Example
This example measures a TE525 rain gage in millimeters.
A different
multiplier would be entered (TABLE 7-3) for other units.
;{CR10X}
;
*Table 1 Program
01: 1
Execution Interval (seconds)
1:
Pulse (P3)
1:
1
Reps
2:
8
Control Port 8 (switch closure only)
;Black wire connect to C8
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)
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:
1
Loc [ Rain_mm
]
*Table 2 Program
02: 0.0000
Execution Interval (seconds)
*Table 3 Subroutines
End Program
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.