SR50A Distance Sensor
Page 4
... Transducer Housing and Disconnect Wires 21 10. Remove the 2 Flat Phillips Screws to a Crossarm via the 19517 Mounting Kit 18 5. Datalogger Program Examples 26 10.1 SR50A Examples 26 10.1.1 CR1000 Example (SDI-12 "M1 26 10.1.2 CR1000 Example (RS-232 Mode 27 10.1.3 CR10X Example (SDI-12 "M1 28 10....2 SR50AT Examples 30 10.2.1 CR1000 Example (SDI-12 "M4 30 10.2.2 CR1000 Example (RS-232 Mode 32 10.2.3 CR10X Example (SDI-12 "M3 33 11. Mounted ...
... Transducer Housing and Disconnect Wires 21 10. Remove the 2 Flat Phillips Screws to a Crossarm via the 19517 Mounting Kit 18 5. Datalogger Program Examples 26 10.1 SR50A Examples 26 10.1.1 CR1000 Example (SDI-12 "M1 26 10.1.2 CR1000 Example (RS-232 Mode 27 10.1.3 CR10X Example (SDI-12 "M1 28 10....2 SR50AT Examples 30 10.2.1 CR1000 Example (SDI-12 "M4 30 10.2.2 CR1000 Example (RS-232 Mode 32 10.2.3 CR10X Example (SDI-12 "M3 33 11. Mounted ...
SR50A Distance Sensor
Page 11
...This can return valid temperature corrected readings. See aM and aM1- The major difference between the various measurement commands are entered as M1 - If the SR50A is unable to detect a proper echo for a measurement, the sensor will return a zero value for the distance to Ground value in either meters or... the Same as options in RS-232 or RS-485 modes. aM4! aC! SR50A Sonic Ranging Sensor SDI-12 Command aM! aM8 ! aCC! The user has the option to output the distance to target in the SR50AT sensor. In order to include the measurement quality numbers. aI! M8 Output is ...
...This can return valid temperature corrected readings. See aM and aM1- The major difference between the various measurement commands are entered as M1 - If the SR50A is unable to detect a proper echo for a measurement, the sensor will return a zero value for the distance to Ground value in either meters or... the Same as options in RS-232 or RS-485 modes. aM4! aC! SR50A Sonic Ranging Sensor SDI-12 Command aM! aM8 ! aCC! The user has the option to output the distance to target in the SR50AT sensor. In order to include the measurement quality numbers. aI! M8 Output is ...
SR50A Distance Sensor
Page 12
... = address of 7 characters including sign and decimal. A Address is sent. Color Function Black Power Ground Red +12VDC Power Green RS-232 (SR50A Output) White RS-232 (SR50A Input) Clear Shield Connection System Ground and/or RS-232 Receiver Ground (Pin 5 of a computer (DTE) DB-9 connector) Power Source Recorder...RS-232 mode. Where n = numbers 1 to SDI-12 mode. aR1! The temperature must be set to 9 NOTE 1: (SR50AT version only) 3.4 RS-232 Operation The SR50A sensor comes from the factory with a maximum of SDI-12 device. A Address is returned Set the distance to perform on board ...
... = address of 7 characters including sign and decimal. A Address is sent. Color Function Black Power Ground Red +12VDC Power Green RS-232 (SR50A Output) White RS-232 (SR50A Input) Clear Shield Connection System Ground and/or RS-232 Receiver Ground (Pin 5 of a computer (DTE) DB-9 connector) Power Source Recorder...RS-232 mode. Where n = numbers 1 to SDI-12 mode. aR1! The temperature must be set to 9 NOTE 1: (SR50AT version only) 3.4 RS-232 Operation The SR50A sensor comes from the factory with a maximum of SDI-12 device. A Address is returned Set the distance to perform on board ...
SR50A Distance Sensor
Page 16
... a speed of 1200 BAUD, 7 minutes using 9600 BAUD, or 3 minutes using 38400 BAUD. 3.6.2 Address The factory Default Address is received, the SR50A will remain idle until a measurement command is sent (p33) where 33 is conducive to a multidrop RS-485 system where individual sensors do not transmit... Quality Output Temperature Output Diagnostics Output Options On Off On Off On Off Default Value Off Off Output valid only for the SR50AT (available on the SR50A. Higher BAUD rates may improve communication reliability or allow for most applications. Lower BAUD rates (1200 or 4800) may be ...
... a speed of 1200 BAUD, 7 minutes using 9600 BAUD, or 3 minutes using 38400 BAUD. 3.6.2 Address The factory Default Address is received, the SR50A will remain idle until a measurement command is sent (p33) where 33 is conducive to a multidrop RS-485 system where individual sensors do not transmit... Quality Output Temperature Output Diagnostics Output Options On Off On Off On Off Default Value Off Off Output valid only for the SR50AT (available on the SR50A. Higher BAUD rates may improve communication reliability or allow for most applications. Lower BAUD rates (1200 or 4800) may be ...
SR50A Distance Sensor
Page 17
...the snow surface should not be sent until they are selected. If the exact value cannot be obtained it . the SR50AT is available on the SR50A sensor unless the SR50A is sent valid temperature readings via the Temperature Input command (see Section 3.6.10). 3.6.5 Distance to Ground A valid ...to read the incoming serial data from the SR50A. 3.6.3.3 Auto Measure Polled Output Mode In this operating mode is too small, the SR50A will not be below the ground surface. 11 The SR50AT will only have to wait 100ms for temperature; SR50A Sonic Ranging Sensor 3.6.3.2 Auto Measure Auto ...
...the snow surface should not be sent until they are selected. If the exact value cannot be obtained it . the SR50AT is available on the SR50A sensor unless the SR50A is sent valid temperature readings via the Temperature Input command (see Section 3.6.10). 3.6.5 Distance to Ground A valid ...to read the incoming serial data from the SR50A. 3.6.3.3 Auto Measure Polled Output Mode In this operating mode is too small, the SR50A will not be below the ground surface. 11 The SR50AT will only have to wait 100ms for temperature; SR50A Sonic Ranging Sensor 3.6.3.2 Auto Measure Auto ...
SR50A Distance Sensor
Page 18
...type is selected the number of units for the SR50AT version of the following values: Meters Centimeters Millimeters Feet Inches 3.6.9 Quality Output The SR50A quality numbers can be set by the Measurement Interval Units. 3.6.8 Output Unit The SR50A always outputs the distance to 60. The Measurement ...Interval Value can be set to ON or OFF. 3.6.11 Diagnostics Output The SR50A diagnostics numbers can range from 1 to 255. SR50A Sonic Ranging Sensor 3.6.6 Measurement Interval Units This setting is only applicable if either the Auto Measure Polled Output...
...type is selected the number of units for the SR50AT version of the following values: Meters Centimeters Millimeters Feet Inches 3.6.9 Quality Output The SR50A quality numbers can be set by the Measurement Interval Units. 3.6.8 Output Unit The SR50A always outputs the distance to 60. The Measurement ...Interval Value can be set to ON or OFF. 3.6.11 Diagnostics Output The SR50A diagnostics numbers can range from 1 to 255. SR50A Sonic Ranging Sensor 3.6.6 Measurement Interval Units This setting is only applicable if either the Auto Measure Polled Output...
SR50A Distance Sensor
Page 20
This value is the distance to ON. D.DDD This is optionally output by the SR50AT sensor. The quality value is always a 3 digit integer and varies from 152 to ON. Only the SR50AT sensor will output a -999.00 if the Temperature Output option is two ASCII characters of the sensor.... Output Units setting. Note this is set to 600, where 600 is the diagnostic output value. The units depend on a diagnostic test. The SR50A will output a valid temperature. XVVVV If X is the optional quality value output. The decimal digits are the serial address of &h33 in Hexidecimal...
This value is the distance to ON. D.DDD This is optionally output by the SR50AT sensor. The quality value is always a 3 digit integer and varies from 152 to ON. Only the SR50AT sensor will output a -999.00 if the Temperature Output option is two ASCII characters of the sensor.... Output Units setting. Note this is set to 600, where 600 is the diagnostic output value. The units depend on a diagnostic test. The SR50A will output a valid temperature. XVVVV If X is the optional quality value output. The decimal digits are the serial address of &h33 in Hexidecimal...
SR50A Distance Sensor
Page 32
to receive Distance 'and Signal quality from the SR50AT SDI12Recorder (SR50(),1,0,"M1!",1,0) 'Measure the 107 temperature sensor: Therm107 (Air_Temp,1,1,Vx1,0,250,1.0,0) 'Use Air_Temp to calculate corrected distance: Temp_Corr_Distance=Raw_Dist...DataInterval (0,60,Min,10) Sample (1,Snow_Depth,FP2) EndTable 'Main Program: BeginProg Scan (60,Sec,0,0) 'Measure the SR50A: 'Use SDI12 command "M1!" SR50A Sonic Ranging Sensor 10. The programming of the SR50A to the SR50A, 'which outputs a raw distance value and a signal quality. 'Declare Public Variables: Public SR50(2) Alias SR50(1)=Raw_Dist...
to receive Distance 'and Signal quality from the SR50AT SDI12Recorder (SR50(),1,0,"M1!",1,0) 'Measure the 107 temperature sensor: Therm107 (Air_Temp,1,1,Vx1,0,250,1.0,0) 'Use Air_Temp to calculate corrected distance: Temp_Corr_Distance=Raw_Dist...DataInterval (0,60,Min,10) Sample (1,Snow_Depth,FP2) EndTable 'Main Program: BeginProg Scan (60,Sec,0,0) 'Measure the SR50A: 'Use SDI12 command "M1!" SR50A Sonic Ranging Sensor 10. The programming of the SR50A to the SR50A, 'which outputs a raw distance value and a signal quality. 'Declare Public Variables: Public SR50(2) Alias SR50(1)=Raw_Dist...
SR50A Distance Sensor
Page 36
...batt_volt,FP2,0,False) Sample (1,PTemp,FP2) Sample (1,SR50A_SnowDepth_Meters,IEEE4) Sample (1,SR50A_QualityVal,FP2) Sample (1,SR50A_AirTempC,IEEE4) EndTable 30 SR50A Sonic Ranging Sensor 10.2 SR50AT Examples 10.2.1 CR1000 Example (SDI-12 "M4!") 'CR1000 Series Datalogger 'The following sample program obtains the Snow depth output... 'directly from the SR50AT to the 'Ground must be output unless a temperature value 'is passed from the datalogger to the SR50A via the extended SDI-12 command 'Declare Public Variables Public PTemp, batt_volt...
...batt_volt,FP2,0,False) Sample (1,PTemp,FP2) Sample (1,SR50A_SnowDepth_Meters,IEEE4) Sample (1,SR50A_QualityVal,FP2) Sample (1,SR50A_AirTempC,IEEE4) EndTable 30 SR50A Sonic Ranging Sensor 10.2 SR50AT Examples 10.2.1 CR1000 Example (SDI-12 "M4!") 'CR1000 Series Datalogger 'The following sample program obtains the Snow depth output... 'directly from the SR50AT to the 'Ground must be output unless a temperature value 'is passed from the datalogger to the SR50A via the extended SDI-12 command 'Declare Public Variables Public PTemp, batt_volt...
SR50A Distance Sensor
Page 37
...in doubt it is better to use more than a smaller value. SR50A Sonic Ranging Sensor 'Main Program BeginProg Scan (60,Sec,0,0) PanelTemp (PTemp,250) Battery (Batt_volt) 'Once installed enter the actual distance from the SR50AT to the Ground with 'quality and temperature SDI12Recorder (SR50AReturnValues,1,0,"M4!",1.0,0) '... snow depth values 'If a new value for the new value If ExtendedCMDResult = 1.0 then 'Reset the value so that value to the SR50AT. where M.MMM is present confirm the value was sent correctly 'Never use a slightly larger value 'than 3 deciaml places of precision for...
...in doubt it is better to use more than a smaller value. SR50A Sonic Ranging Sensor 'Main Program BeginProg Scan (60,Sec,0,0) PanelTemp (PTemp,250) Battery (Batt_volt) 'Once installed enter the actual distance from the SR50AT to the Ground with 'quality and temperature SDI12Recorder (SR50AReturnValues,1,0,"M4!",1.0,0) '... snow depth values 'If a new value for the new value If ExtendedCMDResult = 1.0 then 'Reset the value so that value to the SR50AT. where M.MMM is present confirm the value was sent correctly 'Never use a slightly larger value 'than 3 deciaml places of precision for...
SR50A Distance Sensor
Page 38
SR50A Sonic Ranging Sensor 10.2.2 CR1000 Example (RS-232 Mode) 'CR1000 Series Datalogger 'In this example, the SR50AT is mounted 2.5 meters above the ground. 'The SR50AT is used in RS-232 mode (internal jumpers are set). 'The CR1000 sends a serial string to the SR50AT,...Dist_To_Snow Alias ParseVals(3)=SignalQuality Alias ParseVals(4)=SR50AT_Temp Alias ParseVals(5)=Diagnostics Alias ParseVals(6)=Chcksum Public Snow_Depth 'Declare the initial distance of the SR50AT from the ground in meters: Const Initial_Distance=2.5 'Define Data Tables DataTable (Table1,True,-1) DataInterval (0,60,Min,10) ...
SR50A Sonic Ranging Sensor 10.2.2 CR1000 Example (RS-232 Mode) 'CR1000 Series Datalogger 'In this example, the SR50AT is mounted 2.5 meters above the ground. 'The SR50AT is used in RS-232 mode (internal jumpers are set). 'The CR1000 sends a serial string to the SR50AT,...Dist_To_Snow Alias ParseVals(3)=SignalQuality Alias ParseVals(4)=SR50AT_Temp Alias ParseVals(5)=Diagnostics Alias ParseVals(6)=Chcksum Public Snow_Depth 'Declare the initial distance of the SR50AT from the ground in meters: Const Initial_Distance=2.5 'Define Data Tables DataTable (Table1,True,-1) DataInterval (0,60,Min,10) ...
SR50A Distance Sensor
Page 39
... --) into a 2: 60 Interval (same units as 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 ...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) 1: 2.5 F 2: 00 n, Exponent of 10 3: 2 Z Loc [ DisToGnd ] ;Subtract the Distance to the snow surface...
... --) into a 2: 60 Interval (same units as 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 ...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) 1: 2.5 F 2: 00 n, Exponent of 10 3: 2 Z Loc [ DisToGnd ] ;Subtract the Distance to the snow surface...
SR50A Distance Sensor
Page 40
... the sensor is connected to power or any other device. SR50A Sonic Ranging Sensor 6: Real Time (P77)^30811 1: 1220 Year,Day,Hour/Minute (midnight = 2400) 7: Sample (P70)^20443 1: 1 Reps 2: 6 Loc [ SnowDepth ] ;Store ...quality value 8: Sample (P70)^23223 1: 1 Reps 2: 4 Loc [ Sig_Qual ] ;Store the Temperature reading from their termination points. 34 Always disconnect the SR50A via the connector or disconnect the cable wires from the SR50AT 9: Sample (P70)^1224 1: 1 Reps 2: 5 Loc [ SR50AT_T ] *Table 2 Program 02: 0.0000 Execution Interval (seconds) *Table 3 Subroutines ...
... the sensor is connected to power or any other device. SR50A Sonic Ranging Sensor 6: Real Time (P77)^30811 1: 1220 Year,Day,Hour/Minute (midnight = 2400) 7: Sample (P70)^20443 1: 1 Reps 2: 6 Loc [ SnowDepth ] ;Store ...quality value 8: Sample (P70)^23223 1: 1 Reps 2: 4 Loc [ Sig_Qual ] ;Store the Temperature reading from their termination points. 34 Always disconnect the SR50A via the connector or disconnect the cable wires from the SR50AT 9: Sample (P70)^1224 1: 1 Reps 2: 5 Loc [ SR50AT_T ] *Table 2 Program 02: 0.0000 Execution Interval (seconds) *Table 3 Subroutines ...