beautypg.com

Writing – KEYENCE DL-RS1A/FD-MH User Manual

Page 11

background image

9

Commands and Responses

Read output states and data from all sensor amplifiers (MS command)

Command

Response

Error response

* The data length is different depending on the model.

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

* The data length is different depending on the model.

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.

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

* The data length is different depending on the data being written.

Write to all sensor amplifiers (AW command)

Command

Response

Error response

* The data length is different depending on the data being written.

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.