Reading – KEYENCE DL-RS1A/IG User Manual
Page 11
9
Commands and Responses
Reading
External devices such as PLC's use the following communication commands to read data from
DL-RS1A.
Read from the specified sensor amplifier (SR command)
Command
Response
Error response
* The data length is different depending on the data being read. (Up to 10 characters)
Read all data from all sensor amplifiers (M0 command)
Command
Response
Error response
S
R
CR LF
ID No.
Data No.
,
,
S
R
Data*
ID No.
Data No.
,
,
,
CR LF
E
R
,
S
R
Error No.
,
CR LF
M
0
CR LF
M
0
CR LF
Data of the sensor
amplifier with ID:00
,
Data of the sensor
amplifier with ID:01
……
,
Data of the sensor amplifier
with the last ID No.
,
,
E
R
CR LF
,
M
0
,
Error No.
Commands and Responses
Read output states and data from all sensor amplifiers (MS command)
Command
Response
Error response
Read with external input to the DRQ terminal (DRQ read)
You can send an input signal (by short-circuiting DRQ (terminal number 6) and SG (terminal number
1, 4, or 5)) from an external device such as a PLC instead of sending a command.
Response
Error response
M
S
CR LF
M
S
Control
output
Control
output
Control
output
CR LF
Data of the sensor
amplifier with ID:00
,
,
,
,
Data of the sensor
amplifier with ID:01
…
Data of the sensor
amplifier with the last ID No.
,
,
Sensor amplifier with ID:00
Sensor amplifier with ID:01
Sensor amplifier with the last ID No.
E
R
CR LF
,
M
S
,
Error No.
2 ms min.
Input signal
ON
OFF
SG
RD
SD
SG
SG
DRQ
D
R
Control
output
Control
output
Control
output
CR LF
Data of the sensor
amplifier with ID:00
,
,
,
,
Data of the sensor
amplifier with ID:01
…
Data of the sensor
amplifier with the last ID No.
,
,
Sensor amplifier with ID:00
Sensor amplifier with ID:01
Sensor amplifier with the last ID No.
E
R
CR LF
,
D
R
,
Error No.