
SR50A Sonic Ranging Sensor
- 45 -
10: Set Active Storage Area (P80)
1: 1 Final Storage Area 1
2: 60 Array ID
11: Real Time (P77)
1: 1220 Year,Day,Hour/Minute (midnight = 2400)
12: Sample (P70)
1: 1 Reps
2: 8 Loc [ SnowDepth ]
;The SR50A signal quality value can optionally be stored as well
13: Sample (P70)
1: 1 Reps
2: 4 Loc [ Sig_Qual ]
*Table 2 Program
02: 0.0000 Execution Interval (seconds)
*Table 3 Subroutines
End Program
10.2 Programming Example 2
SR50AT SDI-
12 “M3!” CR10X Datalogger
;{CR10X}
;
;In this example, the SR50AT is mounted 2.5 meters above the ground.
;
;The CR10X sends an SDI-12 command to the SR50AT, which outputs the
;temperature compensated distance value (Meters),
;the signal quality value and the temperature.
;
;Three input locations are used to store incoming data.
*Table 1 Program
01: 60 Execution Interval (seconds)
;Use SDI-12 command "M3!" to receive Distance, Signal Quality and Temperature
1: SDI-12 Recorder (P105)
1: 0 SDI-12 Address
2: 3 Start Measurement (aM3!)
3: 1 Port ;Use Ports 5-8 for CR23X
4: 3 Loc [ SR50ATDIS ]
5: 1.0 Multiplier
6: 0.0 Offset
;Set the initial distance from the SR50A to the ground in meters:
2: Z=F x 10^n (P30)