Campbell Scientific SR50A SR50A Distance Sensor - Page 19
Serial Commands
View all Campbell Scientific SR50A manuals
Add to My Manuals
Save this manual to your list of manuals |
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