2 sdi-12 cr10(x) program example, Cr10, Clear white black red green – Campbell Scientific SR50-L CSC Ultrasonic Distance Sensor User Manual
Page 12

SR50 Sonic Ranging Sensor
6
values that are arranged in order from closest to the furthest. If no targets were
detected, the SR50 outputs three zeroes.
The "10" command requests the sensor to perform a self check. This will
verify the CPU operation and generate a ROM signature value to verify the
software version that is in the sensor.
SR50’s with software version 1.1 have Concurrent Measurement capability.
With this ability, the datalogger can initiate measurements with several SDI-12
devices without having to wait for each individual sensor to complete its
sequence before proceeding to the next program instruction. This can speed up
the datalogger program if that is a concern. For Campbell datalogger users, see
the datalogger manual Section 9 105 SDI-12 RECORDER instruction
description. At present, the CR10X, CR510, and CR23X with recent OS have
this ability.
More detailed instructions and a programming example is located in
APPENDIX A.
CAMPBELL
SCIENTIFIC
INC.
CR10
MADE IN USA
WIRING PANEL NO.
EARTH
DIFF
SE
AG H L AG H
L AG H
L AG
G
G
E3 AG
4
5
6
7
8
9
10
11
12
G G G G
12V 12V
SWITCHED
12V
G 12V
POWER
IN
SERIAL I/O
SE
DIFF
AG H L AG H
L AG H
L AG
G
G
E1 E2
1
2
3
1
2
3
4
5
6
G 5V 5V P1 P2
C8 C7 C6 C5 C4 C3 C2 C1
CONTROL
12V
SWITCHED
Clear
White
Black
Red
Green
FIGURE 2. SR50 Wiring for CR10(X) SDI-12 Example
3.2 SDI-12 CR10(X) Program Example
In this example, the SR50 is mounted 2 meters above the ground. Snow depth
and a quality of measurement number is the desired output. This program
uses Instruction 105 (refer to the CR10(X) manual for details on the SDI-12
Recorder Instruction) to obtain a distance measurement from the SR50. The
SR50’s address is 0. It is assumed that a Campbell Scientific 107 Temperature