background image

CS225 Temperature String 

16 

DataTable (MetaData,1,-1) 
  DataInterval (0,1,Day,10) 
  Sample (MetaData_pts,CS225Meta(),FP2) 
EndTable 
 
DataTable (TempSample,1,-1) 
  DataInterval (0,5,Min,10) 
  Sample (NumTempSensors,CS225TempUserMin(),IEEE4) 
  Sample (NumTempSensors,CS225TempUserMax(),IEEE4) 
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) As String * 1 
  Select Case address 
  Case 0 To 9  'ASCII Code 48->57 = 0->9 
    Return(CHR(a 48)) 
  Case 10 To 35'ASCII Code 65->90 = A->Z = 10->35 
    Return(CHR(a 55)) 
  Case 36 To 61'ASCII Code 97->122 = a->z = 36->61 
    Return(CHR(a 61)) 
  EndSelect 
  Return("") 
EndFunction 'ConvertNumToSDI12address() 
'EndSub 
 
'Main Program 
BeginProg 
 
  Scan (60,Sec,0,0) 
    PanelTemp (PTemp,250) 
    Battery (batt_volt) 
 
    'Read the Meta Data from the sensor daily 
    'Also read if 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(CS225Meta(i,1),CS225_SDI12_Port,ConvertNumToSDI12address(i),"R1!",1.0,0) 
      Next 
    EndIf 
 
    'Read the current Temperature Min & Max Values Every 5 minutes and Reset the Value 
    If TimeIntoInterval(0,5,Min) Then 
 
    For i=1 To NumTempSensors 
      
'To Read and Reset the User Min Values use SDI-12  R6! or M6! Command.  This command is 
preferred over the minimum instruction as it constitutes the minimum of all 1 second 
measurements taken since the previous aR6! Command. 
      SDI12Recorder 
(CS225TempUserMin(i),CS225_SDI12_Port,ConvertNumToSDI12address(i),"R6!",1.0,0) 
 
      'To Read and Reset the User Max Values use SDI-12  R7! or M7! Command. This command is 
preferred over the maximum instruction as it constitutes the maximum of all 1 second 
measurements taken since the previous aR6! Command. 
      SDI12Recorder 
(CS225TempUserMax(i),CS225_SDI12_Port,ConvertNumToSDI12address(i),"R7!",1.0,0) 
 
    Next 
  EndIf 

Содержание 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...

Отзывы: