Technical data

TECHNICAL REFERENCE MANUAL
8.3.6 Set digital output levels (sNn)
Sets the distance levels at which the digital outputs are switched ON and OFF with a hysteresis.
Two different situations are possible:
ON level > OFF level
The ON level of the hysteresis is larger than the OFF level. With an
increasing distance, the digital output is switched on (open drain
output is closed) when the distance exceeds the ON level. With a
decreasing distance, the digital output is switched off (open drain
output is open) when the distance falls below the OFF level.
ON level < OFF level
The ON level of the hysteresis is smaller than the OFF level. With a
decreasing distance, the digital output is switched on (open drain
output is closed) when the distance falls below the ON level. With
an increasing distance, the digital output is switched off (open
drain output is open) when the distance exceeds the OFF level.
Command input:
sNn+xxxxxxxx+yyyyyyyy<trm>
N:
Module number (0..9)
n: Digital output port (1 or 2)
xxxxxxxx: Distance ON level in 1/10 mm for switching digital output ON
yyyyyyyy: Distance OFF level in 1/10 mm for switching digital output OFF
Return data:
Successful:
gNn?<trm>
Error: gN@Ezzz
zzz:
Error code
Distance Laser Sensor Page 24/40
DO
Distance
Off On
0
closed
open
DO
Distance
OffOn
0
closed
open