Technical data
TECHNICAL REFERENCE MANUAL
8.3 Configuration commands
8.3.1 Set communication parameter (sNbr)
Sets the communication parameters for the serial interface.
)
The new parameters are immediately saved to the Flash Memory and activated after the power
ON.
Bold = default parameters (first use or after reset)
Command input:
sNbr+y<trm>
N:
Module number (0..9)
y: Defines the new settings
% Baud rate Data bit Parity % Baud Rate Data bit Parity
0 1200 8 N 5 4800 7 E
1 9600 8 N 6 9600 7 E
2 19200 8
N
7 19200 7 E
3 1200 7 E 8 38400 8 N
4 2400 7 E 9 38400 7 E
Return data
Successful:
gN?<trm>
Error: gN@Ezzz<trm>
zzz:
Error code
8.3.2 Set automatic mode (sNA)
This command activates the automatic mode of the DLS-A(H). It triggers continuous measurement of the
distance and sets the analog and digital outputs according to the measured distance values. 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 automatic mode is active until the 'sNc' command is issued.
)
The operation mode is stored in the DLS-A(H) and activated immediately. This mode is also
activated after next power ON.
)
Internally “tracking with buffering” is started (command sNf). Therefore the last measurement
can also be read out from the module with the command
sNq.
Command input:
sNA+xxxxxxxx<trm>
N:
Module number (0..9)
xxxxxxxx: Sampling time in 10 ms (if 0 -> max possible rate)
Return data
Successful:
gNA?<trm>
Error: gN@Ezzz<trm>
zzz:
Error code
Distance Laser Sensor Page 22/40