KEYENCE DL-RS1A/IG User Manual

Page 10

Advertising
background image

8

Commands and Responses

Response

When DL-RS1A successfully receives a command from the external device, it automatically returns a
response based on ASCII codes.
For information on the parameters used in the response, refer to "Parameters of Commands and
Responses" (page 10).

Sample response structure

(1) Contains the same communication command as the received command.
(2) Contains the same ID number as the received command.
(3) Contains the same data number as the received command.
(4) Contains the data that DL-RS1A retrieved from the specified sensor amplifier. Contains maximum

of 10 bytes according to the specified data number (3).

(5) Contains CR + LF as the response delimiter.

When the command format "SR,01,134CRLF" is sent to the IG Series (ID number: 01) in
operation and the response indicating that the setting is "Peak hold" is received:

DL-RS1A sends the response to the external device.

S

(1)

(2)

(3)

(4)

(5)

R

ID No.

Data No.

,

,

CR LF

Data

,

Example

S

(53H) (52H)

(2CH) (31H) (33H) (34H)

(2CH)(3CH) (31H)

R

0 1

1 3 4

,

,

(2CH) (31H) (0DH) (0AH)

1 CR LF

,

Response format :

Peak hold

S

(53H)

,

(2CH)

R

(52H)

0

(30H)

1

(31H)

1

(31H)

,

(2CH)

3

(33H)

1

(31H)

LF

(0AH)

CR

(0DH)

ASCII character conversion:

5352

H

Value to store in
data memory
(hexadecimal)

2C30

H

362C

H

3130

H

320D

H

0A00

H

bit
15

bit

0

4

(34H)

312C

H

,

(2CH)

Commands and Responses

Error response

If DL-RS1A could not receive a command from the external device or if the received command
included an error, it automatically returns an "error response" based on ASCII codes.
For information on the parameters used in the error response, refer to page 10.

Sample error response structure

(1) Contains "ER".
(2) Contains the same communication command as the received command.
(3) Contains a two-digit error number (ASCII characters) indicating the error type.

For information on the error numbers, refer to "Error numbers" (page 16).

(4) Contains CR + LF as the error response delimiter.

An error response indicating an "ID number error" as a response to the command
"SR,01,134CRLF":

DL-RS1A sends the error response to the external device.

E

(1)

(2)

(3)

R

,

,

Error No.

S

R

(4)

CR LF

Example

E

(45H) (52H)

(2CH)

(2CH) (53H) (52H)

R

S R

(36H) (35H)

6 5

,

,

Error response :

ID No. error

E

(45H)

,

(2CH)

R

(52H)

S

(53H)

R

(52H)

6

(36H)

,

(2CH)

5

(35H)

CR

(0DH)

LF

(0AH)

ASCII character conversion :

4552

H

Value to store
in data memory

2C53

H

522C

H

3635

H

0D0A

H

bit
15

bit

0

(0DH) (0AH)

CR LF

Advertising