Writing – KEYENCE DL-RS1A User Manual
Page 11
9
Commands and Responses
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
*1
The data length is different depending on the data being read. (Up to 10 characters)
*2
SK-1000: ±**.*** (reading range is -99.999 to +99.999)
*3
Data length: 2 characters
On the SK-1000 Series, the judgment output (HI/LO/GO output) and the alarm output ON/OFF
are displayed with 2-digit number (ASCII characters). Convert the 2-digit number (ASCII
characters) read to a binary number and check the ON/OF status of each bit to check the
judgment output status.
•
When the read data is "05":
"05" is converted to the binary number "0101".
When N.O.
Bit
Judgment output
When N.O.
When N.C.
0
0: HI judgment output OFF,
1: HI judgment output ON
0: HI judgment output ON,
1: HI judgment output OFF
1
0: LO judgment output OFF,
1: LO judgment output ON
0: LO judgment output ON,
1: LO judgment output OFF
2
0: GO judgment output OFF,
1: GO judgment output ON
0: GO judgment output ON,
1: GO judgment output OFF
3
0: Alarm output ON,
1: Alarm output OFF
0: Alarm output ON,
1: Alarm output OFF
2 ms min.
Input signal
ON
OFF
SG
RD
SD
SG
SG
DRQ
D
R
CR LF
Data of the sensor
amplifier with ID:00*
2
,
,
,
,
Data of the sensor
amplifier with ID:01*
2
…
Data of the sensor
amplifier with the last ID No.*
2
,
,
Sensor amplifier with ID:00
Sensor amplifier with ID:01
Sensor amplifier with the last ID No.
Control
output*
3
Control
output*
3
Control
output*
3
E
R
CR LF
,
D
R
,
Error No.
Reference
Bit 3: Alarm output ON
Bit 0: HI judgment output ON
Bit 2: GO judgment output ON
Bit 1: LO judgment output OFF
Commands and Responses
Writing
External devices such as PLC's use the following communication commands to write data to
DL-RS1A.
Attempting to write data with "read-only" attribute results in a communication error and an
error response (error number: 22).
Write to the specified sensor amplifier (SW command)
Command
Response
Error response
Write to all sensor amplifiers (AW command)
Command
Response
Error response
Point
S
W
CR LF
ID No.
Data No.
,
,
Setting data*
,
S
W
CR LF
ID No.
Data No.
,
,
E
R
CR LF
,
S
W
,
Error No.
A
W
CR LF
Data No.
,
Setting data*
,
A
W
CR LF
Data No.
,
E
R
CR LF
,
A
W
,
Error No.