background image

Appendix B.  Example Programs 

B.1.3  CR6 Program 

'CR6 Series 
 
'Declare Variables and Units 
Public BattV 
Public PTemp_C 
Public Rain_mm 
 
Units BattV=Volts 
Units PTemp_C=Deg C 
Units Rain_mm=mm 
 
'Define Data Tables 
DataTable(Table1,True,-1) 
  DataInterval(0,60,Min,10) 
  Totalize(1,Rain_mm,FP2,False) 
EndTable 
 
DataTable(Table2,True,-1) 
  DataInterval(0,1440,Min,10) 
  Minimum(1,BattV,FP2,False,False) 
EndTable 
 
'Main Program 
BeginProg 
  'Main Scan 
  Scan(5,Sec,1,0) 
    'Default Datalogger Battery Voltage measurement 'BattV' 
    Battery(BattV) 
    'Default Wiring Panel Temperature measurement 'PTemp_C' 
    PanelTemp(PTemp_C,60) 
 
    '52202 Rain Gauge measurement 'Rain_mm' 
    PulseCount(Rain_mm,1,U1,1,0,0.1,0) 
 
    'Call Data Tables and Store Data 
    CallTable Table1 
    CallTable Table2 
  NextScan 
EndProg 

 

B-3 

Содержание 52202

Страница 1: ...INSTRUCTION MANUAL 52202 Electrically Heated Rain and Snow Gage Revision 4 15 C o p y r i g h t 2 0 1 0 2 0 1 5 C a m p b e l l S c i e n t i f i c I n c...

Страница 2: ......

Страница 3: ...ucts to CSI CSI will return such Products by surface carrier prepaid within the continental United States of America To all other locations CSI will return such Products best way CIP port of entry per...

Страница 4: ...g container Campbell Scientific s shipping address is CAMPBELL SCIENTIFIC INC RMA _____ 815 West 1800 North Logan Utah 84321 1784 For all returns the customer must fill out a Statement of Product Clea...

Страница 5: ...ore beginning work Wear a hardhat and eye protection and take other appropriate safety precautions while working on or around tripods and towers Do not climb tripods or towers at any time and prohibit...

Страница 6: ......

Страница 7: ...tions 5 7 Installation 5 7 1 Siting 6 7 2 Mounting 6 7 3 Wiring 8 7 3 1 Heater Wiring 8 7 3 2 Wiring to the Datalogger 8 7 4 Datalogger Programming 9 8 Troubleshooting and Maintenance 9 8 1 Maintenanc...

Страница 8: ...le of Contents Figures 7 1 52202 Precipitation Gage 6 7 2 The CM220 mounted to a crossarm 7 7 3 The CM216 atop a stainless steel tripod 7 Tables 7 1 Wiring for Pulse Channel Input 8 7 2 Multipliers 9...

Страница 9: ...his manual WARNING Disconnect heater power before attempting to service or repair this equipment Failure to do so may result in personal injury or death due to electrocution Debris filters funnel and...

Страница 10: ...ng Short Cut to program the 52202 1 Install Short Cut by clicking on the install file icon Get the install file from either www campbellsci com the ResourceDVD or find it in installations of LoggerNet...

Страница 11: ...OK for most applications Click Next 5 Under the Available Sensors and Devices list select the Sensors Meteorological Precipitation folder Select 52202 Rain Gauge Click to move the selection to the Sel...

Страница 12: ...iagram in step 6 check the output of the sensor in the datalogger support software data display to make sure it is making reasonable measurements 5 Overview The 52202 funnels precipitation into a buck...

Страница 13: ...r 16 cm 6 3 in Catchment Area 31 in2 200 cm2 Temperature Range 20 to 50 C heated Humidity Range 0 to 100 Power 18 W 24 Vac Contact Rating 24 Vac dc 400 mA maximum Heater Thermostat Set Point 10 C 3 C...

Страница 14: ...laced away from objects that obstruct the wind The distance should be two to four times the height of the obstruction 7 2 Mounting The 52202 precipitation gage uses a clamp to fasten onto the 3659 12...

Страница 15: ...vely the 3659 pipe can be attached to the top of our stainless steel tripods via the CM216 Sensor Mounting Kit The CM216 extends 4 inches above the mast of a stainless steel CM110 CM115 or CM120 tripo...

Страница 16: ...with the 52202 by following the instructions supplied with the plug This gage requires an adequately grounded reliable source of 24 Vac power 7 3 2 Wiring to the Datalogger When Short Cut software is...

Страница 17: ...gram follow the procedure in Appendix A Importing Short Cut Code Into a Program Editor p A 1 Programming basics for CRBasic dataloggers are provided in the following sections Complete program examples...

Страница 18: ...ter connected to the rain gage terminals 2 If the count shows an error of more than 2 adjust the calibrating screws to correct the error Raise the screws if the count is low lower the screws if the co...

Страница 19: ...Cut Make note of the file name used when saving the Short Cut program 2 Open CRBasic Editor 3 Click File Open Assuming the default paths were used when Short Cut was installed navigate to C CampbellS...

Страница 20: ...Appendix A Importing Short Cut Code Into a Program Editor mark begins each line This character instructs the datalogger compiler to ignore the line when compiling the datalogger code A 2...

Страница 21: ...mming is similar to the CR1000 except it has an additional parameter in the PulseCount instruction to specify the pulse module s slot B 1 1 CR1000 Program CR1000 RM_Young Tipping Blk P1 Wht ground Cab...

Страница 22: ...C power supply Declare Variables and Units Public Rain_mm Units Rain_mm mm Define Data Tables DataTable Rain True 1 DataInterval 0 60 Min Totalize 1 Rain_mm 0 EndTable Main Program BeginProg Scan 1 Se...

Страница 23: ...in_mm FP2 False EndTable DataTable Table2 True 1 DataInterval 0 1440 Min 10 Minimum 1 BattV FP2 False False EndTable Main Program BeginProg Main Scan Scan 5 Sec 1 0 Default Datalogger Battery Voltage...

Страница 24: ...ts Units RM_Young inch DataTable OneMin True 1 DataInterval 0 1 Min 10 Totalize 1 RM_Young FP2 False EndTable Define Data Tables DataTable OneDay True 1 DataInterval 0 1440 Min 10 Minimum 1 BattV FP2...

Страница 25: ......

Страница 26: ...m br Campbell Scientific Canada Corp CSC 14532 131 Avenue NW Edmonton AB T5L 4X4 CANADA www campbellsci ca dataloggers campbellsci ca Campbell Scientific Centro Caribe S A CSCC 300 N Cementerio Edific...

Отзывы: