T
ECHNICAL
R
EFERENCE
M
ANUAL
8.4 Digital Input
The following commands configure the terminal DO1. This port can also be used as digital input. For safety reasons, always use a resistor to
protect the connection terminal.
8.4.1 Configure digital input (s
N
DI1)
The digital output 1 of the DLS-C can also be used as digital input. Its state can be read or trigger a configurable action. Use the following
command to configure the behavior of the digital input.
On active digital input, the digital output function of DO1 is deactivated
Set Command
Get Command
Command
s
N
DI1+
xxxxxxxx
<trm>
s
N
DI1<trm>
Return successful
g
N
DI1?<trm>
s
N
DI1+
xxxxxxxx
<trm>
Return Error
g
N
@E
zzz
<trm>
g
N
@E
zzz
<trm>
Parameters
N
Module number (0..9)
xxxxxxxx
0:
Digital input inactive (DO1 active)
1:
activate the digital input to read out its state with the command
8.4.2 Read digital input (sNRI)
.
2:
Trigger Distance measurement (sNg)
3:
Start/Stop Single sensor Tracking (sNh)
4:
Start/Stop Tracking with buffering (sNf)
zzz
Error code
Configuration parameters need to be saved (See 8.3.8 Save configuration parameters (sNs) on page 28)
8.4.2 Read digital input (s
N
RI)
Displays the state of the digital input, if the input is not inactive. (Necessary configuration of the digital input: s
N
DI1+1)
Command
Command
s
N
RI<trm>
Return successful
g
N
RI+x<trm>
Return Error
g
N
@Ezzz<trm>
Parameters
N
Module number (0..9)
x
0: Input Off (Signal Low)
1: Input On (Signal High)
zzz
Error code
Distance Laser Sensor
Page 30/41
DO/DI 1
V+
7,8
9
1k
DLS-C(H)
FLS-C(H)
Содержание DLS-C 15
Страница 2: ......