Campbell Scientific SR50A SR50A Distance Sensor - Page 19

Serial Commands

Page 19 highlights

SR50A Sonic Ranging Sensor 3.7 Serial Commands 3.7.1 Setup Command The setup command places the SR50A in the serial setup mode. This command should only be sent to customize a sensor's settings. Upper and lower case letters are accepted and a carriage return character must also terminate the string (Enter key for Hyperterminal). "setup" 3.7.2 Poll Command The poll command is used to obtain the sensor's output values. The poll command consists of the upper or lower case letter "p" followed by the SR50A address (default 33). The command must also terminate with a carriage return character (Enter for hyperterminal). "pAA" - where AA is a two character address and set from the factory to 33 "p33" - Poll command with factory address of 33 3.7.3 Information Command The information command is used to query information from the sensor that is not associated with the sensor's output. For detailed information on the output refer to Section 9. The information command consists of the upper or lower case letter "i" followed by the SR50A address (default 33). The command must also terminate with a carriage return character (Enter for Hyperterminal). "iAA" - where AA is a two character address and set from the factory to 33 "i33" - information command with factory address of 33 3.7.4 Temperature Input command The temperature input command is used to send the SR50A version of the sensor a temperature value that is to be used for temperature compensation. The value sent must be in degrees Celsius and should not exceed 8 characters. The command consists of the upper or lower case letter "t" followed by the SR50A address (default 33) a semicolon and the temperature value. The command must also terminate with a carriage return character (Enter for Hyperterminal). "tAA;-5.5" - where AA is a two character address and set from the factory to 33 and -5.5 is the temperature in degrees C "t33;tt.ttt" - Temperature command with factory address of 33 and a temperature value in Celsius. 13

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42

SR50A Sonic Ranging Sensor
3.7
Serial Commands
3.7.1
Setup Command
The setup command places the SR50A in the serial setup mode.
This
command should only be sent to customize a sensor’s settings.
Upper and
lower case letters are accepted and a carriage return character must also
terminate the string (Enter key for Hyperterminal).
“setup<CR>”
3.7.2
Poll Command
The poll command is used to obtain the sensor’s output values.
The poll
command consists of the upper or lower case letter “p” followed by the SR50A
address (default 33).
The command must also terminate with a carriage return
character (Enter for hyperterminal).
“pAA<CR>” – where AA is a two character address and set from the
factory to 33
“p33<CR>” – Poll command with factory address of 33
3.7.3
Information Command
The information command is used to query information from the sensor that is
not associated with the sensor’s output.
For detailed information on the output
refer to Section 9.
The information command consists of the upper or lower case letter “i”
followed by the SR50A address (default 33).
The command must also
terminate with a carriage return character (Enter for Hyperterminal).
“iAA<CR>” – where AA is a two character address and set from the
factory to 33
“i33<CR>” – information command with factory address of 33
3.7.4
Temperature Input command
The temperature input command is used to send the SR50A version of the
sensor a temperature value that is to be used for temperature compensation.
The value sent must be in degrees Celsius and should not exceed 8 characters.
The command consists of the upper or lower case letter “t” followed by the
SR50A address (default 33) a semicolon and the temperature value.
The
command must also terminate with a carriage return character (Enter for
Hyperterminal).
“tAA;-5.5<CR>” – where AA is a two character address and set from the
factory to 33 and –5.5 is the temperature in degrees C
“t33;tt.ttt<CR>” – Temperature command with factory address of 33 and
a temperature value in Celsius.
13