03-09-05 43
write data to the Flash memory. During that time, the sensor is blind and deaf to
the outside world and cannot perform its normal measurement duties. Because the
reason for having parameter-changing serial commands is to be able to change the
sensor's behaviour on the fly, that kind of delay is unacceptable.
To sum up, the following rules apply:
1 Parameters that are changed by serial commands will keep their new values
for as long as the sensor is powered up. If the sensor is shut down and then
powered up again, the parameter will revert to the latest value that was saved
from the interactive setup menu.
2 When a parameter is changed by a serial command, the new value will apply
immediately.
3 Parameters that are changed by means of the interactive setup menu will be
remembered permanently.
4 Values that are changed in the setup menu will apply as soon as the user has
pressed one of the function keys that cause parameter values to be saved.
Distance Value:
Command:
$Dnnnnn>
(msm unit = LSBs)
Reply:
Dnnnn>
Drrr.rrr>
(msm unit = millimeters)
Drr.rrrrr>
(msm unit = inches)
This command causes the SLS sensor to transmit a number of distance values.
The number of values is determined by the parameter nnnnn. The maximum
value that can be used is 65535. A parameter value of 0 causes the SLS sensor to
transmit distance values continuously until it receives another batch command.
The reply to this command differs with the measurement unit that is used. The
actual number of fractional digits (in the case of millimeters or inches) depends on
the probe’s scale factor. The numbers shown here represent the maximum.
NOTE: If the measurement is invalid, the sensor will normally report a distance
value of 0 (0.0 if the measurement unit is mm or inches). But if a calibration has
been made, using the $C> serial command, the output associated with invalid
measurements will be nonzero (the actual value will depend on what the sensor
was reading at the time of calibration).
Measurement Validity (%)
Command:
$Vnnnnn>
Reply:
Vnnn>
The parameter nnnnn works the same as for the ”Distance Value” command.
Laser Intensity (percent of maximum)
Command:
$Innnnn>
Reply:
Innn>
The parameter nnnnn works the same as for the ”Distance Value” command.
Sensor Temperature (°C)
Command:
$Tnnnnn>