; NOTE: the following CSI logger program annotations may contain errors.
; From an experimental perl module, Campbell::Program, by fnkci@uaf.edu
; output generated on host shand at Sat Aug 22 20:50:21 2015 local time


MODE 13
13:00  1
01:}
MODE 14

MODE 1
SCAN RATE 60
1:P30     ; Z=F*10^exp
1:3036    ;     fixed value 3036
2:0       ;     times 1 (10^0)
3:1       ;     store 3036 in location 1

2:P10     ; BATT VOLT
1:28      ;     store in location 28

3:P17     ; INTERNAL TEMP
1:27      ;     store in location 27

4:P19     ; SIGNATURE
1:26      ;     store in location 26

5:P3      ; PULSE
1:1       ;     1 repetition
2:1       ;     from pulse counter P1
3:2       ;     as switch closure
4:5       ;     store result in location 5
5:.0133   ;     with multiplier * 0.0133
6:.447    ;     and with offset + 0.447

6:P92     ; IF TIME
1:0       ;     is 0 minutes into
2:30      ;     30 minute interval
3:30      ;     then DO...

7:P89     ;     IF X < = > F
1:28      ;         if X from location 28
2:4       ;         is <
3:12.1    ;         fixed value 12.1
4:21      ;         set flag F1 low

8:P89     ;     IF X < = > F
1:28      ;         if X from location 28
2:3       ;         is >=
3:12      ;         fixed value 12
4:46      ;         set port C6 high

9:P95     ; END IF-DO

10:P92    ; IF TIME
1:720     ;     is 720 minutes into
2:1440    ;     1440 minute interval
3:46      ;     set port C6 high

11:P92    ; IF TIME
1:750     ;     is 750 minutes into
2:1440    ;     1440 minute interval
3:46      ;     set port C6 high

12:P92    ; IF TIME
1:15      ;     is 15 minutes into
2:30      ;     30 minute interval
3:30      ;     then DO...

13:P91    ;     IF FLAG/PORT
1:21      ;         if flag F1 is low
2:56      ;         set port C6 low

14:P95    ; END IF-DO

15:P92    ; IF TIME
1:0       ;     is 0 minutes into
2:60      ;     60 minute interval
3:10      ;     set output flag F0 high, output array id 115

16:P70    ; SAMPLE
1:1       ;     1 repetition
2:1       ;     value from location 1

17:P77    ; REAL TIME
1:1220    ;     year + day(midnight=prev.day) + hour-minute(midnight=2400)

18:P71    ; AVERAGE
1:2       ;     2 repetitions
2:27      ;     value from location 27

19:P71    ; AVERAGE
1:1       ;     1 repetition
2:5       ;     value from location 5

20:P73    ; MAXIMUM
1:1       ;     1 repetition
2:0       ;     output value only
3:5       ;     value from location 5

21:P0     ; NOP

MODE 2
SCAN RATE 0

MODE 3
1:P0      ; NOP

MODE 10
1:584
2:64
3:0
4:60592
5:3200

MODE 12
1:0
1:0
1:0

MODE 13
13:8
8:0

MODE 13
13:9
9:0

MODE 13
13:10
10:0

MODE 13
13:13
13:0

MODE 11
1:49866
2:65295
3:256
4:0
5:0
6:1
7:14
8:3.3004
9:0
10:0
11:0

;; CAUTION: experimental output tags follow:
;;
;; output array:
;;     1. id_115
;;     2. sample-Loc1
;;     3. year
;;     4. day
;;     5. hhmm
;;     6. average-Loc27.panel_temperature_C
;;     7. average-Loc28.logger_battery_voltage
;;     8. average-Loc5.P1
;;     9. maximum-Loc5.P1