Campbell Scientific CR23X Micrologger User Manual
Page 120

SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-10
PROGRAM
*
Table 1 Program
01:
10
Execution Interval (seconds)
;User must toggle Flag 1 to start measurements.
;
01:
If Flag/Port (P91)
1:
21
Do if Flag 1 is Low
2:
0
Go to end of Program Table
;Loop 1, Output every 10 seconds for 10 minutes.
;
02:
Beginning of Loop (P87)
1:
1
Delay
2:
60
Loop Count
03:
Do (P86)
1:
1
Call Subroutine 1
04:
End (P95)
;Loop 2, Output every 30 seconds for 20 minutes.
;
05:
Beginning of Loop (P87)
1:
3
Delay
2:
40
Loop Count
06:
Do (P86)
1:
1
Call Subroutine 1
07:
End (P95)
;Loop 3, Output every 1 minute for 70 minutes.
;
08:
Beginning of Loop (P87)
1:
6
Delay
2:
70
Loop Count
09:
Do (P86)
1:
1
Call Subroutine 1
10:
End (P95)
;Loop 4, Output every 2 minutes for 200 minutes.
;
11:
Beginning of Loop (P87)
1:
12
Delay
2:
100
Loop Count
12:
Do (P86)
1:
1
Call Subroutine 1
13:
End (P95)
;Loop 5, Output every 5 minutes for 700 minutes.
;
14:
Beginning of Loop (P87)
1:
30
Delay
2:
140
Loop Count
15:
Do (P86)
1:
1
Call Subroutine 1
16:
End (P95)
;Loop 6, Output every 10 minutes until stopped
by user.
;
17:
Beginning of Loop (P87)
1:
60
Delay
2:
0
Loop Count
18:
Do (P86)
1:
1
Call Subroutine 1
19:
If Flag/Port (P91)
1:
21
Do if Flag 1 is Low
2:
31
Exit Loop if True
20:
End (P95)
*
Table 3 Subroutines
01:
Beginning of Subroutine (P85)
1:
1
Subroutine 1
02:
Full Bridge (P6)
1:
1
Reps
2:
21
±10 mV Slow 60 Hz Rejection
Range
3:
1
DIFF Channel
4:
1
Excite all reps w/Exchan 1
5: 1500
mV Excitation
6:
1
Loc [ Level_Ft ]
7:
.46199 Mult
8:
102
Offset
03:
Do (P86)
1:
10
Set Output Flag High
04:
Real Time (P77)
1: 0111
Day,Hour/Minute,Seconds
05:
Sample (P70)
1:
1
Reps
2:
1
Loc [ Level_Ft ]
06:
End (P95)
INPUT LOCATIONS
1 Level_Ft