SR50A Sonic Ranging Sensor
- 46 -
1: 2.5 F
2: 00 n, Exponent of 10
3: 2 Z Loc [ DisToGnd ]
;Subtract the Distance to the snow surface from the Distance to Ground
;to obtain snow depth
3: Z=X-Y (P35)
1: 2 X Loc [ DisToGnd ]
2: 3 Y Loc [ SR50ATDIS ]
3: 6 Z Loc [ SnowDepth ]
;Hourly Data Output
4: If time is (P92)
1: 0 Minutes (Seconds --) into a
2: 60 Interval (same units as above)
3: 10 Set Output Flag High (Flag 0)
5: Set Active Storage Area (P80)
1: 1 Final Storage Area 1
2: 60 Array ID
6: Real Time (P77)
1: 1220 Year,Day,Hour/Minute (midnight = 2400)
7: Sample (P70)
1: 1 Reps
2: 6 Loc [ SnowDepth ]
;Store the Signal quality value
8: Sample (P70)
1: 1 Reps
2: 4 Loc [ Sig_Qual ]
;Store the Temperature reading from the SR50AT
9: Sample (P70)
1: 1 Reps
2: 5 Loc [ SR50AT_T ]
*Table 2 Program
02: 0.0000 Execution Interval (seconds)
*Table 3 Subroutines
End Program
10.3 Programming Example 3
SR50A SDI-
12 “M1!” CR1000 Datalogger
'CR1000 Series Datalogger