T
ECHNICAL
R
EFERENCE
M
ANUAL
Distance Laser Sensor
Page 31/43
these commands carefully and only if you really understand what they do.
8.5.1 Get/Set user distance offset (sNuof)
The user can set an individual overall offset correction for all distance measurement commands in this
'Special User Command' section. The standard distances measurement commands are not involved
Set Command
Get Command
Command
s
N
uof+
xxxxxxxx
<trm>
s
N
uof<trm>
Return Successful
g
N
of?<trm>
g
N
uof+
xxxxxxxx
<trm>
Return Error
g
N
@E
zzz
g
N
@Ezzz
Parameter
N
Module ID
xxxxxxxx
Offset in 1/10 mm; + positive / - negative
zzz
Error code
8.5.2 User Configured Distance measurement (sNug)
Triggers simple distance measurement, similar to the command
8.2.2 Distance measurement (sNg) on page
21
. This command returns the distance corrected with the user offset (and user gain) as set with the
command
8.5.1 Set/Get user distance offset (sNuof).
Each new command cancels an active measurement.
This command takes the user distance offset into account
Command
Command
s
N
ug<trm>
Return Successful
gN
ug+xxxxxxxx<trm>
Return Error
g
N
@E
zzz
<trm>
Parameter
N
Module number (0..9)
xxxxxxxx
Distance in 0.1mm
zzz
Error code
8.5.3 User configured single sensor tracking (sNuh)
Triggers continuous measurement of the distance and outputs the result immediately to the serial interface.
The measured distance is corrected with the user offset (and user gain) as set with the command
8.5.1
Set/Get user distance offset (sNuof).
Since the MRL-2(H) returns the result directly after completing a
measurement, never use this command if more than one device is connected to the serial line. The
measurements are continued until the stop/clear command (
s
N
c
) is issued. Each measurement updates the
status LED's and the digital outputs.