Campbell CS225 Скачать руководство пользователя страница 17

CS225 Temperature String 

15 

'Main Program 
BeginProg 
 
  Scan (60,Sec,0,0) 
    PanelTemp (PTemp,250) 
    Battery (batt_volt) 
 
    'Read the current Temperature Value 
    For i=1 To NumTempSensors 
      SDI12Recorder (CS225Temp(i),CS225_SDI12_Port,ConvertNumToSDI12address(i),"R0!",1.0,0) 
    Next 
 
    CallTable Daily 
    CallTable TempSample 
 
  NextScan 
EndProg 

 

7.2.4.2  CR1000 Program for Measuring 15 Sensors Every 5 Minutes 

In this example a single CS225 is being measured on Control Port 1 of a 
CR1000.  The CS225 includes 15 sensors with SDI-12 addresses 1 through 15.  
Each temperature sensor is polled both on power up and daily with the “aR1!” 
command to determine metadata, which is stored in a daily data table. The 
minimum and maximum temperature of each sensor is polled (aR6! and aR7! 
respectively) every 5 minutes and stored to a data table on the same interval.  
Other common station data is measured every 60 seconds and stored to a 
separate daily data table. 

'CR1000 Series Datalogger 
'The following Sample program reads a CS225 string that has 15 temperature Sensors.  
'Individual temperatures, user minimum & maximum are recorded every 5 minutes, and Meta Data 
'is collected daily.  
 
'Declare Public Variables 
Public PTemp, batt_volt 
 
'Enter the number of temperature sensors that are in the string (will need to be adjusted to 
'fit specific application) 
Const  NumTempSensors=15 
'Calculate the number of Meta Data points based on the number of sensors 
Const  MetaData_pts=NumTempSensors*3 
 
'Uses the control port C1 on the CR1000 (valid port options are 1,3,5,7) 
Const  CS225_SDI12_Port=1 
 
Public CS225Temp(NumTempSensors) As Float 
Public CS225TempUserMax(NumTempSensors) As Float 
Public CS225TempUserMin(NumTempSensors) As Float 
Public CS225Meta(NumTempSensors,3) As Float 
 
Dim i As Long 
 
'Define Data Tables 
DataTable (Daily,1,-1) 
  DataInterval (0,1,Day,10) 
  Minimum (1,batt_volt,FP2,0,False) 
  Maximum (1,batt_volt,FP2,0,False) 
  Average (1,batt_volt,FP2,0) 
  Minimum (1,PTemp,FP2,0,False) 
  Maximum (1,PTemp,FP2,0,False) 
  Average (1,PTemp,FP2,0) 
EndTable 
 

Содержание CS225

Страница 1: ...INSTRUCTION MANUAL December 2013 Copyright 2013 Campbell Scientific Canada Corp CS225 Temperature String...

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

Страница 3: ...Siting 4 6 2 Mounting 5 7 Operation 5 7 1 Wiring 5 7 1 1 Long Cables 7 7 1 2 Power Conservation 7 7 2 Reading the CS225 8 7 2 1 SDI 12 Addressing 9 7 2 2 Slow Sequence Program Instructions 10 7 2 3 CS...

Страница 4: ...designed to be a rugged and reliable device for field use care should be taken when handling or moving it to avoid damage There are no user serviceable parts and any attempt to disassemble the device...

Страница 5: ...temperature profiling in boreholes soils water and frost permafrost monitoring The purpose of the SGB3 is to provide adequate surge protection for the CS225 Temperature String The case of the SGB3 is...

Страница 6: ...5 9 in 6 Installation 6 1 Siting The CS225 is meant to be installed in the required orientation within the medium that is to be monitored In order to make the most representative measurement it is imp...

Страница 7: ...supplied to the CS225 the internal electronics will continuously measure the temperature approximately once per second Every output obtained from the sensor is a running average of 10 consecutive 1 se...

Страница 8: ...ignal L2 Not Used L3 Black Power Ground G Clear Shield G TABLE 7 2 SGB3 Connection to Campbell Scientific Dataloggers Colour SGB3 Description CR200 X CR800 CR1000 CR3000 CR5000 CR510 CR500 CR10 X CR23...

Страница 9: ...there is still a point when the digital communications will break down resulting in either no response from the sensor or corrupted readings The original SDI 12 standard specifies the maximum total c...

Страница 10: ...f the sensor The R command provides a faster means of obtaining the readings for sensors that can provide continuous measurements This instruction usually takes less than 300 milliseconds to execute a...

Страница 11: ...Firmware Signature aAb Change Address command Valid addresses in sequence are 1 9 A Z a z no Address 0 Sending a broadcast message with the address change can correct units that have conflicting addre...

Страница 12: ...ruments included in the station For example if a CS225 consists of 17 or more temperature sensors the time required to poll all sensors and receive data back can be greater than 5 seconds based on the...

Страница 13: ...erage 1 batt_volt FP2 0 EndTable DataTable Hourly 1 1 DataInterval 0 60 Min 10 Minimum 1 PTemp FP2 0 False Maximum 1 PTemp FP2 0 False Average 1 PTemp FP2 0 EndTable DataTable One_Minute 1 1 DataInter...

Страница 14: ...points Table 7 5 Meta Data Details Name Value Range Description Serial Number 0 to 65534 The serial number that is unique to each sensor unit Location Number 1 to 255 Each temperature sensor within a...

Страница 15: ...mple MetaData_pts CS225Meta FP2 EndTable Define Subroutines ConvertNumToSDI12address Convert SDI 12 character address 0 9 A Z a z to number value 0 61 Function ConvertNumToSDI12address address As Long...

Страница 16: ...empSensors 15 Uses the control port C1 on the CR1000 valid port options are 1 3 5 7 Const CS225_SDI12_Port 1 Public CS225Temp NumTempSensors As Float Dim i As Long Define Data Tables DataTable Daily 1...

Страница 17: ...to a separate daily data table CR1000 Series Datalogger The following Sample program reads a CS225 string that has 15 temperature Sensors Individual temperatures user minimum maximum are recorded ever...

Страница 18: ...a non valid serial number is present Startup values should be zero A valid serial number will be greater than 1 If CS225Meta 1 1 1 OR IfTime 0 1440 Min Then For i 1 To NumTempSensors SDI12Recorder CS...

Страница 19: ...DI 12 command through the datalogger to the CS225 as described in the following sections 7 5 1 CR1000 CR800 series Dataloggers 1 Connect the CS225 to the datalogger using Control Port C1 or C3 as desc...

Страница 20: ...ddress press the enter key At the CR800 CR1000 prompt enter the command SDI 12 and press the enter key Enter the appropriate control port press the enter key and enter aAb where a is the current addre...

Страница 21: ...test purposes Symptom Sensor won t respond to command 1 Expected address not used or has been changed a In this case you may wish to confirm all addresses in use with the aI command in a trial error...

Страница 22: ...Campbell Scientific Canada Corp 14532 131 Avenue NW Edmonton AB T5L 4X4 780 454 2505 www campbellsci ca AUSTRALIA BRAZIL CANADA COSTA RICA FRANCE GERMANY SOUTH AFRICA SPAIN UNITED KINGDOM USA...

Отзывы: