4 two 21x program examples for pulse train output, 1 pulse train programming example 1, White green clear black red – Campbell Scientific SR50-L CSC Ultrasonic Distance Sensor User Manual

Page 18

Advertising
background image

SR50 Sonic Ranging Sensor

12

3.4 Two 21X Program Examples for Pulse Train Output

1

2

3

A

4

5

6

B

7

8

9

C

*

0

#

D

I.D.

DATA

21X MICROLOGGER

H L

1

H L

2

H L

3

H L

4

H L

5

H L

6

H L

7

H L

8

1 2

3 4

1 2

1 2

4 5

+12

3

6

1 2

3 4

EXCITATION

CAO

CONTROL

PULSE INPUTS

SERIAL I O

MADE IN USA

S N

10800

6145, 6146, 6147

White

Green

Clear

Black

Red

FIGURE 4. SR50 Wiring for 21X Pulse Example

The programming examples assume that the sensor is mounted 2 meters above the
ground and the desired output is snow depth in meters. In these examples a 21X
micrologger is used to read the SR50 with the pulse train option. The number of
pulses are counted on Pulse channel 1.

3.4.1 Pulse Train Programming Example 1

Example 1 will measure every execution interval.

* Table 1 Program
01: 10.0

Execution

Interval

(seconds)

The Execution Interval must be long enough to count all pulses
generated by the SR50.

The number of pulses is dependent on the SR50 jumper setting and distance to
target.

NOTE

Advertising