background image

Appendix C.  SDI-12 Sensor Support 

C-3

n

 = the number of values to be returned when one or more subsequent 

D!

 

commands are issued 

C.2.4  Address Query Command (?!)

Command 

?!

 

requests the address of the connected sensor. The sensor replies 

to the query with the address, 

a

. This command should only be used with one 

sensor on the SDI-12 bus at a time. 

C.2.5  Change Address Command (aAb!)

Multiple SDI-12 sensors can connect to a single SDI-12 terminal on a data 

logger. Each device on a single terminal must have a unique address. 

A sensor address is changed with command 

aAb!

, where 

is the current 

address and 

is the new address. For example, to change an address from 

to 

2

, the command is 

0A2!

. The sensor responds with the new address 

b

, which in 

this case is 2. 

Only one sensor should be connected to a particular terminal at a 

time when changing addresses. 

C.2.6  Start Measurement Commands (aM!)

A measurement is initiated with the 

M!

 command. The response to each 

command has the form 

atttn<CR><LF>

, where  

a

 = sensor address 

ttt 

= time, in seconds, until measurement data is available. When the data is 

ready, the sensor notifies the data logger, and the data logger begins issuing 

D

 

commands. 

n

 = the number of values returned when one or more subsequent 

D

 commands 

are issued. For the 

aM!

 command, n is an integer from 0 to 9.  

When the 

aM!

 is issued, the data logger pauses its operation and waits until 

either it receives the data from the sensor or the time, 

ttt

, expires. Depending 

on the scan interval of the data logger program and the response time of the 

sensor, this may cause skipped scans to occur. In this case make sure your scan 

interval is longer than the longest measurement time 

(ttt)

.  

TABLE C-2.  Example aM! Sequence 

0M! 

The data logger makes a request to sensor 0 to start 

a measurement. 

00352<CR><LF> 

Sensor 0 immediately indicates that it will return 

two values within the next 35 seconds. 

0<CR><LF> 

Within 35 seconds, sensor 0 indicates that it has 

completed the measurement by sending a service 

request to the data logger. 

NOTE 

Содержание CS230

Страница 1: ...CS230 CS231 Temperature Profilers Revision 1 19 Copyright 2016 2019 Campbell Scientific...

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

Страница 3: ...under guarantee or not Please state the faults as clearly as possible and if the product is out of the guarantee period it should be accompanied by a purchase order Quotations for repairs can be give...

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

Страница 5: ...digital cell phones and aerials may also not be applicable according to your locality Some brackets shields and enclosure options including wiring are not sold as standard items in the European marke...

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

Страница 7: ...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 cl...

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

Страница 9: ...uction 8 7 4 2 Slow Sequence Program Instructions 8 8 Operation 8 8 1 Sensor Measurements 8 8 1 1 SDI 12 Addressing 9 8 1 2 Metadata 11 8 2 Long Cables 11 8 3 Power Conservation 11 9 Maintenance Calib...

Страница 10: ...3 Line Surge Protector Mounting and Wiring D 1 Figures 7 1 CS231 installation example with three external sensors and five internal sensors 6 7 2 Internal sensor label 6 D 1 SGB3 3 line surge protecto...

Страница 11: ...r its resistance to temperature extremes moisture and UV degradation However this jacket will support combustion in air It is rated as slow burning when tested according to U L 94 H B and will pass FM...

Страница 12: ...sor in the Sensors Temperature folder Double click CS230 CS231 SDI 12 Temperature Profiler Type the correct Starting SDI 12 Address for the first external probe or the top temperature point in the rig...

Страница 13: ...ta logger check the output of the sensor in data display in LoggerNet PC400 RTDAQ or PC200W to make sure it is making reasonable measurements 5 Overview The CS231 offers the same precise temperature p...

Страница 14: ...Specifications Features Accurate and stable measurements Each sensor is individually addressed and referenced to its depth Low power consumption Digital SDI 12 output Compatible with the following da...

Страница 15: ...ent it is important that consistent contact be made between the temperature profiler and the medium The location of the temperature profiler should be representative of the intended application Typica...

Страница 16: ...and five internal sensors FIGURE 7 1 is an example configuration with three external sensors and five internal sensors Each profiler is custom built to the user s specific requirements FIGURE 7 2 sho...

Страница 17: ...the CS230 serial number is less than 1162 TABLE 7 1 Wire Colour Function and Data Logger Connections Wire Colour Function Data Logger Connection Terminal Red Power 12V Green SDI 12 Signal C or U1 term...

Страница 18: ...tonTimeout are optional parameters refer to CRBasic Help for more information 7 4 2 Slow Sequence Program Instructions Use the slow sequence program instructions when the CS230 CS231 measurements will...

Страница 19: ...floating point C aR6 Read and reset user resettable min temperature Min temperature floating point C This value constitutes the minimum of all 1 second measurements taken since the previous aR6 comma...

Страница 20: ...tiple sensors the same SDI 12 address will prevent the sensors from communicating Use the aA command where a is the affected address to reset the affected sensors to their factory configured address v...

Страница 21: ...een the temperature profiler and data logger digitally there are no offset errors incurred with increasing cable length as seen with analogue sensors However with long enough cable lengths the digital...

Страница 22: ...non switched for test purposes Symptom Sensor won t respond to command 1 Expected address not used or has been changed a Confirm all addresses in use with the aI command to determine the individual ad...

Страница 23: ...Cut program following the procedure in Section 4 QuickStart p 1 Finish the program On the Advanced tab click the CRBasic Editor button The program opens in CRBasic with the name noname CR_ Provide a n...

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

Страница 25: ...in the probe will need to be adjusted to fit specific application Const NumTempSensors 15 Uses the control terminal C1 on the CR1000X Const SDI12_Port C1 Public TempC NumTempSensors As Float Dim i As...

Страница 26: ...terval Other common station data is measured every 5 seconds and stored to a daily and hourly data tables CRBasic Example B 2 CR1000X Program Using Slow Sequence to Read CS230 CS231 with 20 Sensors CR...

Страница 27: ...tion ConvertSDI12addr EndSub Main Program BeginProg Scan 5 Sec 0 0 PanelTemp PTemp 250 Battery batt_volt CallTable Daily CallTable Hourly NextScan Poll CS230 CS231 in Slow Sequence every minute SlowSe...

Страница 28: ...ables DataTable MetaData 1 1 DataInterval 0 1 Day 10 Sample MetaData_pts Meta FP2 EndTable Define Subroutines ConvertSDI12addr Convert SDI 12 character address 0 9 A Z and a z to number value 0 61 Fun...

Страница 29: ...minimum and maximum are recorded every 5 minutes and Metadata is collected daily Declare Public Variables Public PTemp batt_volt Enter the number of temperature sensors that are in the probe will need...

Страница 30: ...order Meta i 1 SDI12_Port ConvertSDI12addr i R1 1 0 0 Next EndIf Read the current Temperature Min and Max Values Every 5 minutes and Reset the Value If TimeIntoInterval 0 5 Min Then For i 1 To NumTemp...

Страница 31: ...s C 2 SDI 12 Command Basics SDI 12 commands have three components Sensor address a a single character and the first character of the command Use the default address of zero 0 unless multiple sensors a...

Страница 32: ...ber or other sensor specific information may also be included aI allccccccccmmmmmmvvvxxx xx CR LF a Sensor SDI 12 address ll SDI 12 version number indicates compatibility cccccccc 8 character vendor i...

Страница 33: ...ated with the M command The response to each command has the form atttn CR LF where a sensor address ttt time in seconds until measurement data is available When the data is ready the sensor notifies...

Страница 34: ...rs of data in response to a D command that follows an M command Command aD0 aD1 aD9 Response a values CR LF or a values CRC CR LF where a the sensor address values values returned with a polarity sign...

Страница 35: ...ect All Caps Mode 6 Press Enter until the data logger responds with the CR1000 prompt 7 Type SDI12 and press Enter 8 At the Select SDI12 Port prompt type the number corresponding to the control termin...

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

Страница 37: ...Vac L1 L2 L3 with respect to G terminals Maximum Current 2 A per terminal 4 A total requires both ground terminals for return current Maximum Rated Surge 1200 A 8 20 us D 2 SGB3 3 Line Surge Protector...

Страница 38: ...logger using the 2 ft cable shipped with the CS230 2 U terminals are automatically configured by the measurement instruction If multiple SDI 12 sensors are connected to a data logger Campbell Scienti...

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

Страница 40: ...Asia Location Bangkok Thailand Email info campbellsci asia Website www campbellsci asia China Location Beijing P R China Email info campbellsci com cn Website www campbellsci com cn Spain Location Ba...

Отзывы: