TECHNICAL REFERENCE MANUAL
9.3.7 Set/Get 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.
Set command Get command
Command
sNn+xxxxxxxx+yyyyyyyy<trm> sNn<trm>
Return successful
gNn?<trm> gNn+xxxxxxxx+yyyyyyyy<trm>
Return error
gN@Ezzz<trm> gN@Ezzz<trm>
Parameters
N Device ID
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
zzz Error code
Configuration parameters need to be saved (See 9.3.13 Save configuration parameters (sNs) on page 40)
Distance Laser Sensor Page 37/53