Technical data
TECHNICAL REFERENCE MANUAL
8.2.6 Tracking with buffering – Start (sNf)
Triggers continuous measurement of the distance with internal buffering in the module (buffer for one
measurement). The rate of measurements is defined with the sampling time. If the sampling time is set to zero,
the measurements are executed as fast as possible. The last measurement can be read out from the module
with the command
sNq. The measurements are continued until the 'sNc' command is issued.
Command input:
sNf+xxxxxxxx<trm>
N:
Module number (0..9)
xxxxxxxx: Samplling time in 10 ms (if 0 -> max possible rate)
Return data
Successful:
gNf?<trm>
Error: gN@Ezzz<trm>
zzz:
Error code
8.2.7 Tracking with buffering - Read out (sNq)
After starting “tracking with buffering” with the command sNf, the last measurement can be read out from
the module with the command
sNq.
Command input:
sNq<trm>
N:
Module number (0..9)
Return data
Successful:
gNq+xxxxxxxx+c<trm>
xxxxxxxx:
Distance in 1/10 mm
c: 0 = no new measurement since last sNq command
1 = new measurement since last
sNq command, not overwritten
2 = new measurement since last
sNq command, overwritten
Error:
gN@Ezzz+c<trm>
zzz:
Error code
c: see above
Distance Laser Sensor Page 21/40