beautypg.com

Campbell Scientific SR50-L CSC Ultrasonic Distance Sensor User Manual

Page 20

background image

SR50 Sonic Ranging Sensor

14

8: Z=SQRT(X) (P39)
1: 24

X Loc [ ATempComp ]

2: 24

Z Loc [ ATempComp ]


9: Z=X*Y (P36)
1: 21

X Loc [ Dis2Surf ]

2: 24

Y Loc [ ATempComp ]

3: 21

Z Loc [ Dis2Surf ]


Add distance-to-ground to distance-to-snow (which is negative) to calculate
snow depth.

In the following instruction, Parameter 2 is a constant. You enter the distance-
to-ground at your site.

10: Z=X+F (P34)
1: 21

X Loc [ Dis2Surf ]

2: 2.00

F

3: 10

Z Loc [ SnowDepth ]


An hourly output example, yours may vary.

11: If time is (P92)
1: 0

Minutes

into

a

2: 60

Minute

Interval

3: 10

Set Output Flag High


12: Real Time (P77)
1: 0220

Day,Hour/Minute (prev day at midnight, 2400 at midnight)


13: Sample (P70)
1: 1

Reps

2: 10

Loc [ SnowDepth ]


* Table 2 Program
02: 0.0

Execution

Interval

(seconds)


* Table 3 Subroutines

End Program

-Input Locations-
10 SnowDepth
21 Dis2Surf
22 T_Kelvin
23 273_15
24 ATempComp