SR50A, SR50A-316SS, and SR50AH Sonic Ranging Sensors: Revision: 10/16
SR50A, SR50A-316SS, and SR50AH Sonic Ranging Sensors: Revision: 10/16
SR50A, SR50A-316SS,
and SR50AH
Sonic Ranging Sensors
Revision: 10/16
C o p y r i g h t © 2 0 0 7 - 2 0 1 6
C a m p b e l l S c i e n t i f i c , I n c .
Limited Warranty
“Products manufactured by CSI are warranted by CSI to be free from defects in
materials and workmanship under normal use and service for twelve months
from the date of shipment unless otherwise specified in the corresponding
product manual. (Product manuals are available for review online at
www.campbellsci.com.) Products not manufactured by CSI, but that are resold
by CSI, are warranted only to the limits extended by the original manufacturer.
Batteries, fine-wire thermocouples, desiccant, and other consumables have no
warranty. CSI’s obligation under this warranty is limited to repairing or
replacing (at CSI’s option) defective Products, which shall be the sole and
exclusive remedy under this warranty. The Customer assumes all costs of
removing, reinstalling, and shipping defective Products 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 Incoterms ® 2010. This warranty shall not apply to any
Products which have been subjected to modification, misuse, neglect, improper
service, accidents of nature, or shipping damage. This warranty is in lieu of all
other warranties, expressed or implied. The warranty for installation services
performed by CSI such as programming to customer specifications, electrical
connections to Products manufactured by CSI, and Product specific training, is
part of CSI's product warranty. CSI EXPRESSLY DISCLAIMS AND
EXCLUDES ANY IMPLIED WARRANTIES OF MERCHANTABILITY
OR FITNESS FOR A PARTICULAR PURPOSE. CSI hereby disclaims,
to the fullest extent allowed by applicable law, any and all warranties and
conditions with respect to the Products, whether express, implied or
statutory, other than those expressly provided herein.”
Assistance
Products may not be returned without prior authorization. The following
contact information is for US and international customers residing in countries
served by Campbell Scientific, Inc. directly. Affiliate companies handle repairs
for customers within their territories. Please visit www.campbellsci.com to
determine which Campbell Scientific company serves your country.
For all returns, the customer must fill out a “Statement of Product Cleanliness
and Decontamination” form and comply with the requirements specified in it.
The form is available from our website at www.campbellsci.com/repair. A
completed form must be either emailed to repair@campbellsci.com or faxed to
(435) 227-9106. Campbell Scientific is unable to process any returns until we
receive this form. If the form is not received within three days of product
receipt or is incomplete, the product will be returned to the customer at the
customer’s expense. Campbell Scientific reserves the right to refuse service on
products that were exposed to contaminants that may cause health or safety
concerns for our employees.
Safety
DANGER — MANY HAZARDS ARE ASSOCIATED WITH INSTALLING, USING, MAINTAINING, AND WORKING ON OR AROUND
TRIPODS, TOWERS, AND ANY ATTACHMENTS TO TRIPODS AND TOWERS SUCH AS SENSORS, CROSSARMS, ENCLOSURES,
ANTENNAS, ETC. FAILURE TO PROPERLY AND COMPLETELY ASSEMBLE, INSTALL, OPERATE, USE, AND MAINTAIN TRIPODS,
TOWERS, AND ATTACHMENTS, AND FAILURE TO HEED WARNINGS, INCREASES THE RISK OF DEATH, ACCIDENT, SERIOUS
INJURY, PROPERTY DAMAGE, AND PRODUCT FAILURE. TAKE ALL REASONABLE PRECAUTIONS TO AVOID THESE HAZARDS.
CHECK WITH YOUR ORGANIZATION'S SAFETY COORDINATOR (OR POLICY) FOR PROCEDURES AND REQUIRED PROTECTIVE
EQUIPMENT PRIOR TO PERFORMING ANY WORK.
Use tripods, towers, and attachments to tripods and towers only for purposes for which they are designed. Do not exceed design limits.
Be familiar and comply with all instructions provided in product manuals. Manuals are available at www.campbellsci.com or by
telephoning (435) 227-9000 (USA). You are responsible for conformance with governing codes and regulations, including safety
regulations, and the integrity and location of structures or land to which towers, tripods, and any attachments are attached. Installation
sites should be evaluated and approved by a qualified engineer. If questions or concerns arise regarding installation, use, or
maintenance of tripods, towers, attachments, or electrical connections, consult with a licensed and qualified engineer or electrician.
General
• Prior to performing site or installation work, obtain required approvals and permits. Comply
with all governing structure-height regulations, such as those of the FAA in the USA.
• Use only qualified personnel for installation, use, and maintenance of tripods and towers, and
any attachments to tripods and towers. The use of licensed and qualified contractors is highly
recommended.
• Read all applicable instructions carefully and understand procedures thoroughly before
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 climbing by other persons. Take
reasonable precautions to secure tripod and tower sites from trespassers.
• Use only manufacturer recommended parts, materials, and tools.
Utility and Electrical
• You can be killed or sustain serious bodily injury if the tripod, tower, or attachments you are
installing, constructing, using, or maintaining, or a tool, stake, or anchor, come in contact with
overhead or underground utility lines.
• Maintain a distance of at least one-and-one-half times structure height, 20 feet, or the distance
required by applicable law, whichever is greater, between overhead utility lines and the
structure (tripod, tower, attachments, or tools).
• Prior to performing site or installation work, inform all utility companies and have all
underground utilities marked.
• Comply with all electrical codes. Electrical equipment and related grounding devices should be
installed by a licensed and qualified electrician.
Elevated Work and Weather
• Exercise extreme caution when performing elevated work.
• Use appropriate equipment and safety practices.
• During installation and maintenance, keep tower and tripod sites clear of un-trained or non-
essential personnel. Take precautions to prevent elevated tools and objects from dropping.
• Do not perform any work in inclement weather, including wind, rain, snow, lightning, etc.
Maintenance
• Periodically (at least yearly) check for wear and damage, including corrosion, stress cracks,
frayed cables, loose cable clamps, cable tightness, etc. and take necessary corrective actions.
• Periodically (at least yearly) check electrical ground connections.
WHILE EVERY ATTEMPT IS MADE TO EMBODY THE HIGHEST DEGREE OF SAFETY IN ALL CAMPBELL SCIENTIFIC PRODUCTS,
THE CUSTOMER ASSUMES ALL RISK FROM ANY INJURY RESULTING FROM IMPROPER INSTALLATION, USE, OR
MAINTENANCE OF TRIPODS, TOWERS, OR ATTACHMENTS TO TRIPODS AND TOWERS SUCH AS SENSORS, CROSSARMS,
ENCLOSURES, ANTENNAS, ETC.
Table of Contents
PDF viewers: These page numbers refer to the printed version of this document. Use the
PDF reader bookmarks tab for links to specific sections.
1. Introduction ................................................................ 1
2. Precautions ................................................................ 1
4. QuickStart ................................................................... 2
5. Overview ..................................................................... 4
6. Specifications............................................................. 5
7. Installation .................................................................. 7
7.1 Sensor Mounting .................................................................................. 7
7.1.1 Beam Angle .................................................................................. 7
7.1.2 Mounting Height ........................................................................... 7
7.1.2.1 Reference Point .................................................................. 8
7.1.3 Mounting Options ......................................................................... 8
7.2 SDI-12 Wiring ................................................................................... 10
7.3 SDI-12 Programming ......................................................................... 10
7.3.1 SDI12Recorder() Instruction....................................................... 11
8. Operation .................................................................. 11
8.1 Quality Numbers ................................................................................ 12
8.2 Temperature Compensation ............................................................... 12
8.3 SDI-12 Measurements........................................................................ 13
8.3.1 SDI-12 Addresses ....................................................................... 13
8.3.2 SDI-12 Commands ..................................................................... 13
Appendices
A. Importing Short Cut Code Into CRBasic Editor ... A-1
i
Table of Contents
ii
Table of Contents
Figures
7-1. Beam Angle Clearance......................................................................... 7
7-2. Distance from Edge of Transducer Housing to Grill ........................... 8
7-3. SR50A Mounted to a Crossarm via the 19517 Mounting Kit .............. 9
7-4. Another Angle of the 19517 Mounting Kit .......................................... 9
7-5. SR50A Mounted to a 19484 Mounting Stem ....................................... 9
7-6. SR50A-316SS Mounted to a Crossarm with the 19484 and Nu-Rail
Fitting ............................................................................................. 10
9-1. Disconnect Cable from Sensor ........................................................... 15
9-2. Remove Six Screws from the Transducer Housing............................ 16
9-3. Remove Transducer Housing and Disconnect Wires ......................... 16
9-4. Location of Desiccant in Transducer Housing Assembly .................. 17
9-5. Remove and Replace Desiccant ......................................................... 17
9-6. Remove the Two Flat Phillips Screws to Expose the PCB ................ 18
C-1. Jumper Settings ................................................................................ C-1
D-1. RS-232 DB9 Connector Description ............................................... D-1
D-2. SR50A to MD485 Wiring ............................................................... D-3
D-3. Initial Terminal Window in Device Configuration Utility .............. D-5
D-4. SR50A Setup Menu ........................................................................ D-5
E-1. Tera Term New Connection ............................................................. E-1
E-2. Setup Selections ............................................................................... E-2
E-3. Terminal Configuration.................................................................... E-2
E-4. Windows Setup Changes ................................................................. E-3
E-5. Setting the Font Size ........................................................................ E-3
E-6. Configuring the Serial Port .............................................................. E-4
E-7. Testing the Configuration ................................................................ E-4
E-8. Configuring the Com Port to Send an Operating System................. E-6
E-9. Jumper Settings ................................................................................ E-6
F-1. SR50AH Heater Option ................................................................... F-2
F-2. Complete Transducer Assembly with Power Connection ................ F-4
Tables
7-1. Wire Color, Function, and Datalogger Connection ............................ 10
8-1. Quality Number Description .............................................................. 12
8-2. SDI-12 Commands ............................................................................. 13
B-1. Wiring for CR1000 and CR6 SDI-12 Example Programs ............... B-1
B-2. Wiring for CR1000 and CR6 RS-232 Example Programs ............... B-6
B-3. 14291 Field Power Cable Connections ............................................ B-9
B-4. 107 and SC110 Wiring for CR1000 RS-232 Example Program ...... B-9
B-5. SR50A (Configured for MD485) Wiring to MD485 (9-pin
connector plugged into MD485 RS-232 port) ............................ B-10
B-6. Wiring for CR6 RS-485 Program .................................................. B-13
B-7. Wiring for CR1000 and CR6 Heater Example Programs .............. B-16
D-1. SR50A RS-232 Interface Wiring .................................................... D-2
D-2. SR50A Datalogger COM Port Wiring ............................................ D-2
D-3. Connections for RS-485 Mode........................................................ D-3
D-4. Connections for CR6 RS-485 Mode ............................................... D-4
D-5. RS-232 and RS-485 Settings ........................................................... D-6
CRBasic Examples
B-1. CR1000 SDI-12 Program ................................................................. B-1
B-2. CR6 SDI-12 Program ....................................................................... B-3
B-3. CR1000 RS-232 Program ................................................................ B-6
iii
Table of Contents
iv
SR50A-Series Sonic Ranging Sensor
1. Introduction
The SR50A, SR50A-316SS, and SR50AH are sonic ranging sensors that
provide a non-contact method for determining snow or water depth. They
determine depth by emitting an ultrasonic pulse and then measuring the elapsed
time between the emission and return of the pulse. An air temperature
measurement is required to correct for variations of the speed of sound in air.
2. Precautions
• READ AND UNDERSTAND the Safety section at the front of this
manual.
• Never open the sensor while it is connected to power or any other device.
• Always disconnect the sensor using the connector or disconnect the cable
wires from their termination points.
• Never operate the sensor with the shield wire disconnected. The shield
wire plays an important role in noise emissions and susceptibility as well
as transient protection.
3. Initial Inspection
• Upon receipt of the sensor, inspect the packaging for any signs of shipping
damage and, if found, report the damage to the carrier in accordance with
policy. The contents of the package should also be inspected and a claim
filed if any shipping related damage is discovered.
1
SR50A-Series Sonic Ranging Sensors
4. QuickStart
Short Cut is an easy way to program your datalogger to measure the SR50A
and assign datalogger wiring terminals. Short Cut is available as a download on
www.campbellsci.com and the ResourceDVD. It is included in installations of
LoggerNet, PC200W, PC400, or RTDAQ.
2. Select Datalogger Model and Scan Interval (60 second or higher scan
interval is recommended). Click Next.
2
SR50A-Series Sonic Ranging Sensors
3. Under the Available Sensors and Devices list, select the Sensors |
Temperature folder. Select 107 Temperature Probe. Click to move
the selection to the Selected device window. Use the data default of degree
Celsius.
4. Under the Available Sensors and Devices list, select the Sensors |
Miscellaneous Sensors folder. Select SR50A Sonic Ranging Sensor
(SDI-12 Output). Click to move the selection to the Selected device
window. Data defaults to meters, which can be changed by clicking the
Unit of measure box and selecting cm, ft, or in. Enter the Distance to
base, which is the distance from the SR50A’s wire mesh face to the
ground. SDI-12 Address defaults to 0. Enter the correct SDI-12 Address
for the SR50A if it has been changed from the factory-set default value.
Click on the Air temperature (Deg C) reference box and select T107_C.
3
SR50A-Series Sonic Ranging Sensors
5. After selecting the sensors, click Wiring Diagram to see how the sensor is
to be wired to the datalogger. The wiring diagram can be printed now or
after more sensors are added.
6. Select any other sensors you have, then finish the remaining Short Cut
steps to complete the program. The remaining steps are outlined in Short
Cut Help, which is accessed by clicking on Help | Contents |
Programming Steps.
5. Overview
The SR50A-series sensors measure the distance from the sensor to a target.
They determine the distance to a target by sending out ultrasonic pulses
(50 kHz) and listening for the returning echoes that are reflected from the
target. The time from transmissions to return of the echo is the basis for
obtaining the distance measurement.
4
SR50A-Series Sonic Ranging Sensors
NOTE Sonic ranging sensors with integrated temperature sensors are also
available from Campbell Scientific; see the SR50AT, SR50AT-
316SS, and SR50ATH manual for more information.
SDI-12, RS-232, and RS-485 output options are available for measuring the
SR50A. The SR50A is factory configured as an SDI-12 sensor (address 0)
because Campbell dataloggers typically use the SDI-12 format. To use the
RS-232 or RS-485 format, three jumpers inside the SR50A need to be moved
(Section 9.1, Disassembly/Assembly Procedures (p. 15), and Appendix C,
Jumper Settings (p. C-1)). Refer to Appendix D, RS-232 and RS-485 Operation
(p. D-1), for more information.
6. Specifications
Features:
• Wide operating temperature range
• Compatible with Campbell Scientific CRBasic dataloggers:
CR200(X) series, CR300 series, CR6 series, CR800 series, CR1000,
CR3000, and CR5000
Quiescent Power
Consumption (no heater)
SDI-12 Mode: < 1.0 mA
RS-232/RS-485 Modes: < 1.25 mA (≤ 9600 bps),
< 2.0 mA (> 9600 bps)
Active Power
Consumption (no heater): 250 mA typical
5
SR50A-Series Sonic Ranging Sensors
IP Rating
Electrical Housing: IP67
Transducer: IP64
6
SR50A-Series Sonic Ranging Sensors
7. Installation
If you are programming your datalogger with Short Cut, skip Section 7.2,
SDI-12 Wiring (p. 10), and Section 7.3, SDI-12 Programming (p. 10). Short Cut
does this work for you. See Section 4, QuickStart (p. 2), for a Short Cut tutorial.
If not using SDI-12, refer to Appendix D, RS-232 and RS-485 Operation (p. D-1),
for wiring and programming information.
Determine the required clearance for the beam angle using the following
formula and FIGURE 7-1.
CONEheight = the distance to base (Section 7.1.2.1, Reference Point (p. 8))
7
SR50A-Series Sonic Ranging Sensors
height to mount the sensor will be 1.75 to 2.0 m (5.74 to 6.56 ft). Mounting the
sensor at a 4 m (13.1 ft) height can result in larger snow depth errors.
The 19484 mounting stem (FIGURE 7-5) attaches to the crossarm using the
17953 Nu-Rail fitting (FIGURE 7-6), CM220 right-angle mount, CM230
adjustable-angle mount, or CM230XL extended adjustable-angle mount. Use
the CM230 or CM230XL if the surface is at an angle.
8
SR50A-Series Sonic Ranging Sensors
9
SR50A-Series Sonic Ranging Sensors
To use more than one probe per datalogger, either connect the different sensors
to different terminals on the datalogger or change the SDI-12 addresses of the
sensors and wire them to the same terminal. Using the SDI-12 address reduces
the use of ports on the datalogger and allows sensors to be connected in a
daisy-chain that can minimize cable runs in some applications.
10
SR50A-Series Sonic Ranging Sensors
If your data acquisition requirements are simple, you can probably create and
maintain a datalogger program exclusively with Short Cut. If your data
acquisition needs are more complex, the files that Short Cut creates are a great
source for programming code to start a new program or add to an existing
custom program.
NOTE Short Cut cannot edit programs after they are imported and edited
in CRBasic Editor.
A Short Cut tutorial is available in Section 4, QuickStart (p. 2). If you wish to
import Short Cut code into CRBasic Editor to create or add to a customized
program, follow the procedure in Appendix A, Importing Short Cut Code Into
CRBasic Editor (p. A-1). Programming basics for CRBasic dataloggers are in the
following section. Complete program examples for select CRBasic dataloggers
can be found in Appendix B, Example Programs (p. B-1). Programming basics
and programming examples for Edlog dataloggers are provided at
www.campbellsci.com\old-manuals.
SDI12Recorder(Destination,OutString,Multiplier,Offset)
For the other CRBasic dataloggers, the SDI12Recorder() instruction has the
following syntax:
8. Operation
The SR50A performs multiple echo processing regardless of output formats. It
bases every measurement on several readings and applies an algorithm to
improve measurement reliability.
The distance to target readings that are obtained from the sensor are referenced
from the metal mesh on the face of the transducer. The SR50A projects an
ultrasonic beam that can pick up objects in its field of view that is 30° or less.
The closest object to the sensor will be detected if it is within this field of view.
Unwanted objects must be outside the field of view. If a target is in motion, the
SR50A may reject a reading if the target distance changes at a rate of 4
centimeters per second or more.
11
SR50A-Series Sonic Ranging Sensors
If the SR50A rejects a reading or does not detect a target, zero will be output
for distance to target or –999 for depth values.
T ° KELVIN
DISTANCE = READING SR50A
273.15
12
SR50A-Series Sonic Ranging Sensors
The SR50A is shipped from the factory with the address set to 0. The address
on the SR50A can be changed by sending an SDI-12 change address command.
The change address command can be issued from most SDI-12 recorders. For
some Campbell Scientific dataloggers, the SDI-12 transparent mode will need
to be entered to change the address.
To change the address of a sensor that has the default address of 0 to the
address of 1 the following command can be sent:
“0A1!”
Only one sensor of the same address should be connected when using the
change address command.
NOTE The SR50A needs to be powered for 1.5 s before it can receive an
SDI-12 command.
If the SR50A is unable to detect a proper echo for a measurement, the sensor
will return a zero value for the distance to target value.
SDI-12
Command Command Function/Description Values Returned
aM! Distance-Meters D
aM1! Distance-Meters, Quality Number D, Q
aM4! Snow Depth Meters, Quality Number, Temperature SD, Q, T
aM5! Distance-Inches D
aM6! Distance-Inches, Quality Number D, Q
13
SR50A-Series Sonic Ranging Sensors
SDI-12
Command Command Function/Description Values Returned
Output is the same as
aMC! Measurement Commands with Checksum
aM, aM1-aM9
aMCn! See aM and aM1- aM8
Checksum is added
Concurrent Measurement Command
aC! D
Distance-Meters
Concurrent Measurements Output is the
aCn!
Same as M1 through M8 Same as M1 through M8
Output is the same as
aCC! Concurrent Measurement Commands with Checksum. See
aM, aM1-aM8
aCCn! aM and aM1- aM8
Checksum is added
Dependent upon command
aD0! Send Data
Sent
S1,S2,V,WD
S1 = Firmware Signature
aV! Verification command
S2 = BootRom Signature
WD = Watch Dog Errors
013CAMPBELLSR50A 2.0SN
aI! Send Identification SN = Serial number
(5 digits)
?! Address Query a
aAb! Change Address command b is the new address
aXM;D.DDD! Set the distance to ground parameter in the SR50A. The
A
Extended distance must be in meters with no more than three
Address is returned
command decimal places.
aXI;DDD.DD! Set the distance to ground parameter in the SR50A. The
A
Extended distance must be in Inches with no more than two decimal
Address is returned
command places.
Provide the SR50A with a temperature value to perform on
aXT;CC.CC!
board temperature compensation. The temperature must be A
Extended
in degrees Celsius with a maximum of seven characters Address is returned
command
including sign and decimal.
Returns the distance to ground setting in the SR50A. The
aR0! DG
units returned are in meters
Returns the distance to ground setting in the SR50A. The
aR1! DG
units returned are in inches
Returns the temperature sent to the SR50A for internal
aR2! temperature compensation. This value remains the same T
unless power is cycled or a new temperature values is sent.
Where a = address of SDI-12 device.
Where n = numbers 1 to 9
14
SR50A-Series Sonic Ranging Sensors
15
SR50A-Series Sonic Ranging Sensors
16
SR50A-Series Sonic Ranging Sensors
17
SR50A-Series Sonic Ranging Sensors
FIGURE 9-6. Remove the Two Flat Phillips Screws to Expose the PCB
18
SR50A-Series Sonic Ranging Sensors
prone to the occasional erroneous reading from flying debris, drifting snow, or
mounting hardware just outside the beam angle.
The reason not to average values is that occasionally a number with a very high
error value is produced, skewing the average. The value should be ignored and
not averaged. Based on experience, the best technique to eliminate errors and
filter out high error readings is to take the median value. This technique also
helps to automatically filter out zero readings that can occasionally be
produced.
For example, for a given station, a reading is taken every 5 seconds for 1
minute and the median value is taken from the readings. All the programming
examples in this manual use this method for data filtering.
The best course of action would be to ignore the 5 lowest values and take the
6th value (0.33).
19
SR50A-Series Sonic Ranging Sensors
20
Appendix A. Importing Short Cut Code
Into CRBasic Editor
This tutorial shows the following:
• How to import a Short Cut program into a program editor for
additional refinement
• How to import a wiring diagram from Short Cut into the comments of
a custom program
Short Cut creates files, which can be imported into CRBasic Editor. Assuming
defaults were used when Short Cut was installed, these files reside in the
C:\campbellsci\SCWin folder:
• .DEF (wiring and memory usage information)
• .CR2 (CR200(X)-series datalogger code)
• .CR300 (CR300-series datalogger code)
• .CR6 (CR6-series datalogger code)
• .CR8 (CR800-series datalogger code)
• .CR1 (CR1000 datalogger code)
• .CR3 (CR3000 datalogger code)
• .CR5 (CR5000 datalogger code)
Use the following procedure to import Short Cut code and wiring diagram into
CRBasic Editor:
1. Create the Short Cut program following the procedure in Section 4,
QuickStart (p. 2). Finish the program and exit Short 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:\CampbellSci\SCWin folder. The file of
interest has the .CR2, .CR300, .CR6, .CR8, .CR1, .CR3, or .CR5
extension. Select the file and click Open.
4. Immediately save the file in a folder different from
C:\Campbellsci\SCWin, or save the file with a different file name.
NOTE Once the file is edited with CRBasic Editor, Short Cut can no
longer be used to edit the datalogger program. Change the name
of the program file or move it, or Short Cut may overwrite it next
time it is used.
5. The program can now be edited, saved, and sent to the datalogger.
6. Import wiring information to the program by opening the associated .DEF
file. Copy and paste the section beginning with heading “-Wiring for
CRXXX–” into the CRBasic program, usually at the head of the file. After
pasting, edit the information such that an apostrophe (') begins each line.
This character instructs the datalogger compiler to ignore the line when
compiling.
A-1
Appendix B. Example Programs
B.1 SDI-12 Example Programs
TABLE B-1. Wiring for CR1000 and CR6 SDI-12 Example Programs
'CR1000
'This program contains a number of features not found in Short Cut.
'
'The initial distance value from the SR50A head to the ground is
'measured by setting the flag SR50A_MID to TRUE. Set this flag after
'installing the SR50A in the field. Setting this flag will initiate
'a measurement cycle and the resulting value stored as the initial
'distance. The initial distance is used to calculate snow depth.
'The PreserveVariables instruction is used to store the initial
'distance in non-volatile memory. If power is lost at the site the
'initial distance value will be restored.'
'A control flag is used to initiate the SR50A measurement cycle. This
'allows for manual control in the field to check distances without
'waiting for the correct time interval to occur. It is also used by
'the datalogger to initiate an automated measurement cycle.
'
'Every measurement cycle is composed of 11 individual measurements
'that are spatially sorted to eliminate any low or high values.
'One measurement is made with each scan. This program has a 10
'second scan rate so it will take 100 seconds to do all 11 scans or
'1 minute and 40 seconds.
B-1
Appendix B. Example Programs
Public SR50A_Raw(2)
Alias SR50A_Raw(1) = DT : Units DT = meters 'Distance from the SR50A.
Alias SR50A_Raw(2) = RawQ : Units RawQ = unitless 'Quality number.
'Set this flag to measure and store the initial distance from the
'SR50A to the ground.
Public SR50A_MID As Boolean
DataTable (Hour,True,-1 )
DataInterval (0,60,Min,10)
Sample (1,AirTempC,FP2)
Sample (1,TCDT,IEEE4)
Sample (1,Q,FP2)
EndTable
PreserveVariables
'Main Program
BeginProg
'Main Scan
n = 1
Scan(10,Sec,1,0)
'Battery Voltage measurement 'BattV'
Battery(BattV)
B-2
Appendix B. Example Programs
'Set this flag to true to get the initial distance from the SR50A
'to the ground.
If SR50A_MID Then SR50ACtrl = True
'CR6
'This program contains a number of features not found in Short Cut.
'
'The initial distance value from the SR50A head to the ground is
'measured by setting the flag SR50A_MID to TRUE. Set this flag after
'installing the SR50A in the field. Setting this flag will initiate
'a measurement cycle and the resulting value stored as the initial
'distance. The initial distance is used to calculate snow depth.
'The PreserveVariables instruction is used to store the initial
'distance in non-volatile memory. If power is lost at the site the
'initial distance value will be restored.'
'A control flag is used to initiate the SR50A measurement cycle. This
'allows for manual control in the field to check distances without
'waiting for the correct time interval to occur. It is also used by
'the datalogger to initiate an automated measurement cycle.
'
'Every measurement cycle is composed of 11 individual measurements
'that are spatially sorted to eliminate any low or high values.
'One measurement is made with each scan. This program has a 10
'second scan rate so it will take 100 seconds to do all 11 scans or
'1 minute and 40 seconds.
B-3
Appendix B. Example Programs
Public SR50A_Raw(2)
Alias SR50A_Raw(1) = DT : Units DT = meters 'Distance from the SR50A.
Alias SR50A_Raw(2) = RawQ : Units RawQ = unitless 'Quality number.
'Set this flag to measure and store the initial distance from the
'SR50A to the ground.
Public SR50A_MID As Boolean
DataTable (Hour,True,-1 )
DataInterval (0,60,Min,10)
Sample (1,AirTempC,FP2)
Sample (1,TCDT,IEEE4)
Sample (1,Q,FP2)
EndTable
PreserveVariables
'Main Program
BeginProg
'Main Scan
n = 1
Scan(10,Sec,1,0)
'Battery Voltage measurement 'BattV'
Battery(BattV)
B-4
Appendix B. Example Programs
'Set this flag to true to get the initial distance from the SR50A
'to the ground.
If SR50A_MID Then SR50ACtrl = True
B-5
Appendix B. Example Programs
TABLE B-2. Wiring for CR1000 and CR6 RS-232 Example Programs
'A control flag is used to initiate the SR50A measurement cycle. This
'allows for manual control in the field to check distances without
'waiting for the correct time interval to occur. It is also used by
'the datalogger to initiate an automated measurement cycle.
'
'Every measurement cycle is composed of 11 individual measurements
'that are spatially sorted to eliminate any low or high values.
'One measurement is made with each scan. This program has a 10
'second scan rate so it will take 100 seconds to do all 11 scans or
'1 minute and 40 seconds.
'Declare Constants
'Default serial address of SR50A is 33. Polling command consists of
'a lower case 'p' followed by the address and a carriage return.
B-6
Appendix B. Example Programs
'Set this flag to measure and store the initial distance from the
'SR50A to the ground.
Public SR50A_MID As Boolean
DataTable (Hour,True,-1 )
DataInterval (0,60,Min,10)
Sample (1,AirTempC,FP2)
Sample (1,TCDT,IEEE4)
Sample (1,Q,FP2)
EndTable
PreserveVariables
B-7
Appendix B. Example Programs
'Main Program
BeginProg
'Open and configure C1 and C2 for RS232 communication.
'9600 BAUD is the default:
SerialOpen (Com1,9600,0,0,200)
n = 1
Scan (10,Sec,3,0)
Battery (BattV)
PanelTemp (PnlTmp_C,_60Hz)
'Make an air temperature measurement.
Therm107 (AirTempC,1,1,Vx1,0,_60Hz,1.0,0)
'Set this flag to true to get the initial distance from the SR50A
'to the ground.
If SR50A_MID Then SR50ACtrl = True
If SR50ACtrl Then
'Transmit serial command "p33<CR>"
SerialOut (Com1,POLL_A,"",0,0)
'Flush the serial buffer
SerialFlush (Com1)
'Recieve serial string from SR50A
SerialIn (SR50AData,Com1,200,CHR(13),50)
'Pars string into separate values.
SplitStr (ParseVals(),SR50AData,"",5,0)
'Calculate the temperature corrected distance.
SR50A(n,1) = ParseVals(2)*SQR((AirTempC+273.15)/273.15)
SR50A(n,2) = ParseVals(3)
n += 1
If n > 11 Then
n = 1
SR50ACtrl = False
SortSpa (Result_SR50A(1,1),11,SR50A(1,1),2)
TCDT = Result_SR50A(6,1)
Q = Result_SR50A(6,2)
If SR50A_MID Then
Inital_Dist = TCDT
SR50A_MID = False
EndIf
Snow_Depth = Inital_Dist - TCDT
EndIf
'Add up any errors across the day.
Call Diag
EndIf
B-8
Appendix B. Example Programs
CallTable Daily
'Clear diagnostic counters after Daily_Status table is stored.
If Daily.Output(1,1) Then
ROM_Cntr = 0
SR50A_WtchDg_Cntr = 0
EndIf
NextScan
EndProg
B-9
Appendix B. Example Programs
NOTE Wire tie back all unused SC110 wires so they don’t short against
any metal.
CRBasic Example B-4. CR1000 Programming Example Using an MD485 and SC110 9-pin
Male Connector
'A control flag is used to initiate the SR50A measurement cycle. This
'allows for manual control in the field to check distances without
'waiting for the correct time interval to occur. It is also used by
'the datalogger to initiate an automated measurement cycle.
'
'Every measurement cycle is composed of 11 individual measurements
'that are spatially sorted to eliminate any low or high values.
'One measurement is made with each scan. This program has a 10
'second scan rate so it will take 100 seconds to do all 11 scans or
'1 minute and 40 seconds.
'Declare Constants
B-10
Appendix B. Example Programs
'Set this flag to measure and store the initial distance from the
'SR50A to the ground.
Public SR50A_MID As Boolean
DataTable (Hour,True,-1 )
DataInterval (0,60,Min,10)
Sample (1,AirTempC,FP2)
Sample (1,TCDT,IEEE4)
Sample (1,Q,FP2)
EndTable
PreserveVariables
B-11
Appendix B. Example Programs
EndSelect
EndSub
'Main Program
BeginProg
'Open and configure RS232 port for RS232 communication.
'9600 BAUD is the default:
SerialOpen (Com1,9600,0,0,200)
n = 1
Scan (10,Sec,3,0)
Battery (BattV)
PanelTemp (PnlTmp_C,_60Hz)
'Make an air temperature measurement.
Therm107 (AirTempC,1,1,Vx1,0,_60Hz,1.0,0)
'Set this flag to true to get the initial distance from the SR50A
'to the ground.
If SR50A_MID Then SR50ACtrl = True
If SR50ACtrl Then
'Transmit serial command "p33<CR>"
SerialOut (Com1,POLL_A,"",0,0)
'Flush the serial buffer
SerialFlush (Com1)
'Recieve serial string from SR50A
SerialIn (SR50AData,Com1,200,CHR(13),50)
'Pars string into separate values.
SplitStr (ParseVals(),SR50AData,"",5,0)
'Calculate the temperature corrected distance.
SR50A(n,1) = ParseVals(2)*SQR((AirTempC+273.15)/273.15)
SR50A(n,2) = ParseVals(3)
n += 1
If n > 11 Then
n = 1
SR50ACtrl = False
SortSpa (Result_SR50A(1,1),11,SR50A(1,1),2)
TCDT = Result_SR50A(6,1)
Q = Result_SR50A(6,2)
If SR50A_MID Then
Inital_Dist = TCDT
SR50A_MID = False
EndIf
Snow_Depth = Inital_Dist - TCDT
EndIf
'Add up any errors across the day.
Call Diag
EndIf
B-12
Appendix B. Example Programs
'A control flag is used to initiate the SR50A measurement cycle. This
'allows for manual control in the field to check distances without
'waiting for the correct time interval to occur. It is also used by
'the datalogger to initiate an automated measurement cycle.
'
'Every measurement cycle is composed of 11 individual measurements
'that are spatially sorted to eliminate any low or high values.
'One measurement is made with each scan. This program has a 10
'second scan rate so it will take 100 seconds to do all 11 scans or
'1 minute and 40 seconds.
'Declare Constants
'Default serial address of SR50A is 33. Polling command consists of
'a lower case 'p' followed by the address and a carriage return.
Const POLL_A = "p33" & CHR(13)
B-13
Appendix B. Example Programs
'Set this flag to measure and store the initial distance from the
'SR50A to the ground.
Public SR50A_MID As Boolean
DataTable (Hour,True,-1 )
DataInterval (0,60,Min,10)
Sample (1,AirTempC,FP2)
Sample (1,TCDT,IEEE4)
Sample (1,Q,FP2)
EndTable
PreserveVariables
B-14
Appendix B. Example Programs
SR50A_WtchDg_Cntr += 1
ROM_Cntr += 1
Case 1
SR50A_WtchDg_Cntr += 1
Case 10
ROM_Cntr += 1
EndSelect
EndSub
'Main Program
BeginProg
'Open and configure C1 and C2 for RS485 communication.
'9600 BAUD is the default set at half-duplex:
SerialOpen (ComC1,9600,0,0,200,4)
n = 1
Scan (10,Sec,0,0)
Battery (BattV)
PanelTemp (PnlTmp_C,60)
'Make an air temperature measurement.
Therm107 (AirTempC,1,U1,U2,0,60,1.0,0)
'Set this flag to true to get the initial distance from the SR50A
'to the ground.
If SR50A_MID Then SR50ACtrl = True
If SR50ACtrl Then
'Transmit serial command "p33<CR>"
SerialOut (ComC1,POLL_A,"",0,0)
'Flush the serial buffer
SerialFlush (ComC1)
'Recieve serial string from SR50A
SerialIn (SR50AData,ComC1,200,CHR(13),50)
'Pars string into separate values.
SplitStr (ParseVals(),SR50AData,"",5,0)
'Calculate the temperature corrected distance.
SR50A(n,1) = ParseVals(2)*SQR((AirTempC+273.15)/273.15)
SR50A(n,2) = ParseVals(3)
n += 1
If n > 11 Then
n = 1
SR50ACtrl = False
SortSpa (Result_SR50A(1,1),11,SR50A(1,1),2)
TCDT = Result_SR50A(6,1)
Q = Result_SR50A(6,2)
If SR50A_MID Then
Inital_Dist = TCDT
SR50A_MID = False
EndIf
Snow_Depth = Inital_Dist - TCDT
EndIf
'Add up any errors across the day.
Call Diag
EndIf
B-15
Appendix B. Example Programs
EndIf
NextScan
EndProg
TABLE B-7. Wiring for CR1000 and CR6 Heater Example Programs
'CR1000
'This program contains a number of features not found in Short Cut.
'
'The initial distance value from the SR50A head to the ground is
'measured by setting the flag SR50A_MID to TRUE. Set this flag after
'installing the SR50A in the field. Setting this flag will initiate
'a measurement cycle and the resulting value stored as the initial
'distance. The initial distance is used to calculate snow depth.
'The PreserveVariables instruction is used to store the initial
'distance in non-volatile memory. If power is lost at the site the
'initial distance value will be restored.'
'A control flag is used to initiate the SR50A measurement cycle. This
B-16
Appendix B. Example Programs
Public SR50A_Raw(2)
Alias SR50A_Raw(1) = DT : Units DT = meters 'Distance from the SR50A.
Alias SR50A_Raw(2) = RawQ : Units RawQ = unitless 'Quality number.
'Set this flag to measure and store the initial distance from the
'SR50A to the ground.
Public SR50A_MID As Boolean
DataTable (Hour,True,-1 )
DataInterval (0,60,Min,10)
Sample (1,AirTempC,FP2)
Sample (1,TCDT,IEEE4)
Sample (1,Q,FP2)
EndTable
PreserveVariables
'Main Program
BeginProg
'Main Scan
B-17
Appendix B. Example Programs
n = 1
Scan(10,Sec,1,0)
'Battery Voltage measurement 'BattV'
Battery(BattV)
'Set this flag to true to get the initial distance from the SR50A
'to the ground.
If SR50A_MID Then SR50ACtrl = True
B-18
Appendix B. Example Programs
'CR6
'This program contains a number of features not found in Short Cut.
'
'The initial distance value from the SR50A head to the ground is
'measured by setting the flag SR50A_MID to TRUE. Set this flag after
'installing the SR50A in the field. Setting this flag will initiate
'a measurement cycle and the resulting value stored as the initial
'distance. The initial distance is used to calculate snow depth.
'The PreserveVariables instruction is used to store the initial
'distance in non-volatile memory. If power is lost at the site the
'initial distance value will be restored.'
'A control flag is used to initiate the SR50A measurement cycle. This
'allows for manual control in the field to check distances without
'waiting for the correct time interval to occur. It is also used by
'the datalogger to initiate an automated measurement cycle.
'
'Every measurement cycle is composed of 11 individual measurements
'that are spatially sorted to eliminate any low or high values.
'One measurement is made with each scan. This program has a 10
'second scan rate so it will take 100 seconds to do all 11 scans or
'1 minute and 40 seconds.
Public SR50A_Raw(2)
Alias SR50A_Raw(1) = DT : Units DT = meters 'Distance from the SR50A.
Alias SR50A_Raw(2) = RawQ : Units RawQ = unitless 'Quality number.
'Set this flag to measure and store the initial distance from the
'SR50A to the ground.
Public SR50A_MID As Boolean
B-19
Appendix B. Example Programs
Maximum (1,PnlTmp_C,FP2,False,False)
EndTable
DataTable (Hour,True,-1 )
DataInterval (0,60,Min,10)
Sample (1,AirTempC,FP2)
Sample (1,TCDT,IEEE4)
Sample (1,Q,FP2)
EndTable
PreserveVariables
'Main Program
BeginProg
'Main Scan
n = 1
Scan(10,Sec,1,0)
'Battery Voltage measurement 'BattV'
Battery(BattV)
'Set this flag to true to get the initial distance from the SR50A
'to the ground.
If SR50A_MID Then SR50ACtrl = True
B-20
Appendix B. Example Programs
CallTable Daily
CallTable Hour
NextScan
EndProg
B-21
Appendix B. Example Programs
B-22
Appendix C. Jumper Settings
FIGURE C-1 shows the jumper locations of the SR50A.
The other jumper located on the SR50A places the sensor in either the normal
operation mode or in the program update mode. The program mode is only
used for updating the internal firmware of the sensor. During operation, have
the jumper in the RUN position.
Refer to Appendix E.2, Sending New Firmware to a SR50A/T Sensor for details
about SR50A firmware updates.
C-1
Appendix D. RS-232 and RS-485
Operation
D.1 RS-232 Operation
The SR50A sensor comes from the factory with the internal jumpers set to
SDI-12 mode. To use the SR50A in the RS-232 mode of operation, the jumpers
need to be set as outlined in Appendix C, Jumper Settings (p. C-1). Complete
RS-232 CRBasic programs can be found in Appendix B.2, RS-232 Example
Programs (p. B-6).
Pin Assignment
1 DCD
2 RXD
3 TXD
4 DTR
5 GND
6 DSR
7 RTS
8 CTS
9 N/A
D-1
Appendix D. RS-232 and RS-485 Operation
SR50A Wire
Color Function Wiring Location
Red +12 Vdc Power Power Source (Datalogger: 12V)
System Ground and/or RS-232
Black Power Ground
Receiver Ground (Datalogger: G)
RS-232 Pin 2 [RXD] (9-pin RS-232 Interface
Green
(SR50A Output) Connector: pn 28840)
RS-232 Pin 3 [TXD] (9-pin RS-232 Interface
White
(SR50A Input) Connector: pn 28840)
Clear Shield G (datalogger)
Pin 5 [G] (9-pin RS-232 Interface
Jumper Wire
Connector: pn 28840)
SR50A Wire
Color Function CR1000 CR6
Red +12 Vdc Power 12V 12V
Black Power Ground G G
RS-232 RX (COM1– RX (COM1–
Green
(SR50A Output) COM4) COM2)
RS-232 TX (COM1– TX (COM1–
White
(SR50A Input) COM4) COM2)
Clear Shield G G
You can use Campbell Scientific’s MD485 interface to connect one or more
SR50A sensors in RS-485 mode to an RS-232 device. This can be useful for
D-2
Appendix D. RS-232 and RS-485 Operation
sensors that require lead lengths that exceed the limits of either RS-232 or
SDI-12 communications.
The SR50A can be connected directly the RS-485 port on the CR6 datalogger.
D-3
Appendix D. RS-232 and RS-485 Operation
NOTE The factory default baud rate is 9600 bps. Once the baud rate is
changed, the new baud rate must be used for further
communications to the SR50A. Ensure to keep track of the baud
rate setting on the SR50A. If the baud rate setting is unknown, try
using the default value of 9600 bps. If that does not work, start the
baud rate at 1200 bps and go through all the baud rate settings until
the correct one is found.
Select the following when using Device Configuration Utility (FIGURE D-3).
• Device Type: Unknown
• Choose the correct COM port.
• By default, the baud rate in the SR50A and Device Configuration
Utility is set to 9,600. Only change the baud rate if you know it has
been changed in the SR50A.
• Click on the Connect button in the lower left hand corner.
D-4
Appendix D. RS-232 and RS-485 Operation
To enter Setup mode, type “setup” in the terminal window and press the Enter
key. The word “setup” and all options in the setup menu are not case sensitive.
The SR50A should respond with the setup menu shown in FIGURE D-4.
D-5
Appendix D. RS-232 and RS-485 Operation
TABLE D-5 summarizes the settings that can be changed using the SR50A
RS-232 or RS-485 operating modes. Recommended changes are shown in
parenthesis.
The quiescent current draw for the SR50A in serial mode is normally 1.25 mA
for baud rates of 9600 or less. The current draw increases to 1.5 and 2.25 mA
for the baud rates of 19200 or 38400 bps, respectively.
D-6
Appendix D. RS-232 and RS-485 Operation
It may take up to 30 minutes using a speed of 1200 bps, 7 minutes using 9600
bps, or 3 minutes using 38400 bps.
D.4.2 Address
The factory default address is 33. For RS-232 applications, use the factory
default address. For RS-485 operation, multiple sensors can be polled
individually if different addresses are assigned.
• The data recorder or equipment simply needs to read the incoming serial
data from the SR50A.
D-7
Appendix D. RS-232 and RS-485 Operation
The frequency that the SR50A performs the measurement is set by adjusting
the Measurement Interval Units and the Measurement Interval Value
parameters.
• The main advantage of this operating mode is that the receiving device
will only have to wait 100 ms for the data instead of 1 second.
Do not use this option on the SR50A sensor unless the SR50A is sent valid
temperature reading via the Temperature Input command.
• Seconds
• Minutes
• Hours
Once a unit type is selected, the number of units for the interval is set by
changing the Measurement Interval Value parameter. A 60 s interval can be
set by setting the units to seconds and the Measurement Interval Value to 60.
Alternately, the Measurement Interval Unit could be set to minutes and the
Value could be set to 1. The Value setting can only range from 1 to 255.
D-8
Appendix D. RS-232 and RS-485 Operation
• Meters
• Centimeters
• Millimeters
• Feet
• Inches
“setup<CR>”
The information command consists of the upper or lower case letter “i”
followed by the SR50A address (default 33). The command must also
terminate with a carriage return character.
D-9
Appendix D. RS-232 and RS-485 Operation
The command consists of the upper or lower case letter “t” followed by the
SR50A address (default 33) a semicolon and the temperature value. The
command must also terminate with a carriage return character (Enter for
Hyperterminal).
<STX>aa;D.DDD;QQQ;TT.TT;VVVVV;CC<CR><LF><ETX>
aa
These two characters are the serial address of the sensor. The default is 33.
Note this is two ASCII characters of &h33 in hexidecimal or 51 in decimal.
D.DDD
This is the distance to target reading. The units depend on the Output Units
setting. The number of digits and decimal places also depend on the output unit
that is selected. The decimal digits are as follows:
Centimeters: DDD.DD
DDDD.DD possible for values past 999.99 cm
000.00 output for no valid reading
Millimeters: DDDD
-999 output for no valid reading
9999 Maximum value
Feet: DD.DDD
00.000 output for no valid reading
D-10
Appendix D. RS-232 and RS-485 Operation
Inches: DDD.DD
000.00 output for no valid reading
QQQ
This data value is the optional quality value output. The quality value is always
a three-digit integer and varies from 152 to 600, where 600 is the poorest
quality.
TT.TT
This setting must be set to Off. The SR50A will output a –999.00 if the
Temperature Output option is set to ON.
VVVVV
This is the diagnostic output value. Each digit represents a pass or a fail on a
diagnostic test.
XVVVV
If X is a 1, then the ROM Memory has passed the signature test.
VXVVV
If X is a 1, then no watchdog errors have occurred.
VVXXX
The three digits XXX are for factory use and should always read 111.
CC
This is a two-character checksum of the data packet. The checksum is the two’s
complement of the data packet sum including control characters.
<STX>33;1838;194;11011;2C<CR><LF><ETX>
SUM =
02+33+33+3B+31+38+33+38+3B+31+39+34+3B+31+31+30+31+31
+3B+0D+0A+03
=0x3D4
Use Last byte only (D4) and calculate two’s complement = 100 – D4 = 2C
<CR>
Carriage return character. 0x0d in hexadecimal or 13 in decimal
<LF>
Line feed character. 0x0a in hexadecimal or 10 in decimal
<ETX>
End of transmission character. 0x03 in hexadecimal or 3 in decimal
D-11
Appendix D. RS-232 and RS-485 Operation
<STX>aa;SSSSS;H.H;F.F;BBBBB;WWWWW<CR><LF><ETX>
aa
These two characters are the serial address of the sensor. The default is 33.
Note this is two ASCII characters of 0x33 in hexidecimal or 51 in decimal.
SSSSS
This is the serial number of the sensor.
H.H
This is the hardware version of the sensor.
F.F
This is the firmware version of the sensor.
BBBBB
This is the checksum of the boot code.
WWWWW
This is the checksum of the firmware.
CC
This is a two-character checksum of the data packet. The checksum is the two’s
complement of the data packet sum including control characters.
<CR>
Carriage return character. &h0D in hexadecimal or 13 in decimal
<LF>
Line feed character. &h0A in hexadecimal or 10 in decimal
<ETX>
End of transmission character. &h03 in hexadecimal or 3 in decimal
D-12
Appendix E. Tera Term QuickStart
Tera Term can be used to configure the RS-232 or RS-485 settings or to update
the sensor’s firmware. Tera Term is a powerful open-source terminal emulation
package. It can be accessed from the link below. Pull down and install the
latest version.
https://en.osdn.jp/projects/ttssh2/releases/
b. Click on the down arrow to the far right of Port and pick the COM
port you are using to communication with the SR50A/T.
NOTE
COM port 4 is used in the examples in this section. Your COM
port may be different.
E-1
Appendix E. Tera Term QuickStart
2. FIGURE E-2 shows the standard Tera Term working screen and the pull-
down menu for Setup. To see this screen, click on Setup at the top of the
screen.
3. Select Terminal from the drop-down menu list in Setup. The SR50A/T
does not echo characters sent to it. To see what you’re typing, Local Echo
needs to be switched on by checking the box next to Local Echo
(FIGURE E-3). Leave everything else at the default settings. Click on the
OK button to save the settings or the Cancel button to simply exit.
E-2
Appendix E. Tera Term QuickStart
4. Select Window from the drop-down menu list in Setup. Change the title
in the Window setup to SR50A 9600 Baud. The title is displayed at the
top of the terminal session screen.
5. By default, Tera Term uses a font size of 9. If a larger font size is desired,
select Font from the drop-down list in Setup. Under Size, select the
desired font size. FIGURE E-5 shows the selection of 12 for the font size.
Click on the OK button when finished.
E-3
Appendix E. Tera Term QuickStart
6. Select Serial port from the drop-down list in Setup. Change the port to
reflect what you will be using to work with the SR50A/T. Leave the other
settings at their default values. Click the OK button when finished
(FIGURE E-6).
7. All changes needed to work with the SR50A/T are complete. You are back
at the main screen with the cursor blinking in the upper left corner of the
window. To see if communication has been established with the SR40A/T,
type setup and press enter. The word setup should appear in the terminal
window and the SR50A/T setup window should appear as well (FIGURE
E-7).
E-4
Appendix E. Tera Term QuickStart
9. To load an existing setup, select Setup from the top of the screen. Select
Restore setup from the list and select the setup configuration that you
would like to load. Tera Term will not automatically connect to a COM
port and will remain disconnected until a COM port is selected. To do this,
select Serial port from the Startup drop-down menu. Verify the COM
port selection is correct and click on the OK button. This will activate the
port.
2. Select Window from the drop-down menu list in Setup and change the
title to SR50A/T Firmware Download. The title is displayed at the top of
the terminal session screen.
a. Click on the down arrow to the right of Baud rate and select 38400.
b. Click on the down arrow to the right of Flow control and select
XON/XOFF.
E-5
Appendix E. Tera Term QuickStart
To send a firmware update to the SR50A/T, the jumpers must be configured for
RS-232 operation and the jumper moved from RUN to PROG. See FIGURE
E-9 below.
E-6
Appendix E. Tera Term QuickStart
b. The transducer housing will separate from the main metal housing.
c. Ensure that the screws are kept and set aside. On older models, the
O-ring is removable. Remove the O-ring and set it aside as well.
e. Remove the two Phillips screws from the bottom of the disk assembly.
Notice that these are the only two countersunk holes in the disk
assembly. Set the two screws aside.
g. The circuit board will remain connected to the housing via the signal
wires.
h. Place the bottom disk/circuit assembly on the work bench with the
circuit board and DB-9 connector facing up. Ensure that no part of the
PCB is in contact with the metal lid or other conductive objects.
3. Move the jumper on the RUN/PROG header from the RUN position to the
PROG (program) position.
5. Connect the cable back to the SR50A/T. The cable should be providing the
SR50A/T with power.
6. When power is reestablished, you will see a green LED light up close by
the RUN/PROG jumper. The LED will be on continuously with no
flashing.
NOTE The SR50A/T will not accept any commands when in the program
mode.
E-7
Appendix E. Tera Term QuickStart
10. Find the new firmware file and click Open. See the figure below.
11. Tera Term immediately begins sending the file when Open is selected.
The following will happen at this point:
a. The green light on the SR50A/T will start flashing and continue to
flash for several minutes after the file has been sent.
b. You will see the following screen indicating that the transfer process
is occurring in Tera Term. Directly above the Send File window, you
will see the lines of code being sent to the SR50A/T. Do not click on
any of the buttons in the Send File window. The window will
automatically disappear after the file has been sent.
The green light on the SR50A/T will continue to flash for several
minutes after the file has been sent. When the new firmware is loaded
and operational, the green light will come on steady. If there are any
errors, the LED will flash indicating that an error occurred.
12. If the LED does flash, then repeat the process and attempt to send the
firmware again.
E-8
Appendix E. Tera Term QuickStart
13. After the reprogramming is successful, disconnect power from the sensor
and disconnect the serial cable from the DB-9 connector.
a. Line up the notch on the disk/circuit assembly with the V in the main
metal housing. Do not kink the wires going from the disk/circuit
assembly to the main metal assembly. Seat the disk/circuit assembly.
Put the two Phillips screws back in the countersunk holes. Do not over
tighten the screws. They should be snug.
d. Line up the notch on the transducer housing with the V on the main
metal housing. Seat the housing.
e. Put the six screws back into the bottom of the transducer and tighten
them down.
E-9
Appendix E. Tera Term QuickStart
E-10
Appendix F. SR50AH Heater Operation
The heater option on the SR50AH is intended for installations where rime ice
is problematic. The heater will help to prevent the ice from forming on the
transducer, which can impair proper operation of the sensor.
Always use the heater option wired to switched 12 Vdc source. For battery-
operated solar-powered sites, Campbell Scientific recommends that the
heater’s power be turned off when icing conditions are not occurring to reduce
power requirements. The heater power must be turned off when operating at
temperatures of 25 °C or more.
CRBasic programs that control the heater are provided in Appendix B.4,
Heater Program Examples (p. B-16).
Maximum Operating
Temperature: 25 °C; turn the heater power off at
temperatures above 25 °C. This prevents
damage to the sensor and reduces power
consumption.
F-1
Appendix F. SR50AH Heater Operation
NOTE The screws used on the SR50A have changed from the slotted type
to Phillips.
F-2
Appendix F. SR50AH Heater Operation
2. Separate the housing from the sensor body and disconnect the connector
from the transducer to the main sensor body.
3. To replace the desiccant, remove the desiccant holder plate with the
Phillips 4-40 screw. Cutting the tie strap will allow the old packets to be
removed for replacement. During reassembly, ensure that the desiccant
does not come in contact with the metal backing of the transducer. If only
the desiccant is being inspected or replaced, steps 4 and 5 are not required.
Steps 4 to 6 are required to replace the transducer only.
4. Your transducer kit comes with a replacement for the O-ring that seats
between the main sensor body and the plastic transducer housing. Ensure
that the new O-ring is used when reassembled.
F-3
Appendix F. SR50AH Heater Operation
5. Remove the three screws from the innermost hole pattern as shown.
6. Replace the transducer assembly and the second O-ring that seats under
the transducer assembly.
7. Reassemble the sensor in the reverse order. Please observe the orientation
of the parts, wiring, and desiccant.
F-4
Campbell Scientific Companies
Campbell Scientific Africa Pty. Ltd. Campbell Scientific Centro Caribe S.A.
PO Box 2450 300 N Cementerio, Edificio Breller
Somerset West 7129 Santo Domingo, Heredia 40305
SOUTH AFRICA COSTA RICA
www.campbellsci.co.za • cleroux@csafrica.co.za www.campbellsci.cc • info@campbellsci.cc
Please visit www.campbellsci.com to obtain contact information for your local US or international representative.