Campbell Scientific 107 107-L Temperature Probe - Page 24

Appendix B., Example Programs

Page 24 highlights

Appendix B. Example Programs ;{CR10X} ;Program measures one 107 temperature probe once a second ;and stores the average temperature every 60 minutes. ;Wiring Diagram ;107 Probe ; ; Wire ; Color Function ; ----- -------- ; Black Voltage-excitation input ; Red Analog-voltage output ; Purple Bridge-resistor ground ; Clear Shield CR10X -----E1 SE1 AG G *Table 1 Program 01: 1.0000 Execution Interval (seconds) 1: Temp (107) (P11) 1: 1 Reps 2: 1 SE Channel 3: 21 Excite all reps w/E1, 60Hz, 10ms delay 4: 1 Loc [ T107_C ] 5: 1.0 Multiplier 6: 0.0 Offset 3: 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) 4: Set Active Storage Area (P80) 1: 1 Final Storage Area 1 2: 101 Array ID 5: Real Time (P77) 1: 1220 Year,Day,Hour/Minute (midnight = 2400) 6: Average (P71) 1: 1 Reps 2: 1 Loc [ T107_C ] B-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
  • 25
  • 26
  • 27
  • 28

Appendix B.
Example Programs
;{CR10X}
;Program measures one 107 temperature probe once a second
;and stores the average temperature every 60 minutes.
;Wiring Diagram
;==============
;107 Probe
;
;
Wire
;
Color
Function
CR10X
;
-----
--------
------
;
Black
Voltage-excitation input
E1
;
Red
Analog-voltage output
SE1
;
Purple
Bridge-resistor ground
AG
;
Clear
Shield
G
*Table 1 Program
01: 1.0000
Execution Interval (seconds)
1:
Temp (107) (P11)
1: 1
Reps
2: 1
SE Channel
3: 21
Excite all reps w/E1, 60Hz, 10ms delay
4: 1
Loc [ T107_C
]
5: 1.0
Multiplier
6: 0.0
Offset
3:
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)
4:
Set Active Storage Area (P80)
1: 1
Final Storage Area 1
2: 101
Array ID
5:
Real Time (P77)
1: 1220
Year,Day,Hour/Minute (midnight = 2400)
6:
Average (P71)
1: 1
Reps
2: 1
Loc [ T107_C
]
B-2