beautypg.com

Outline of the command format – KEYENCE LK-G Series User Manual

Page 135

background image

5-5

5

LK-G-M-NO5-E

5 RS-232C

Outline of the command format

The LK-G Series controls the incoming command that has been received and sends back
the response command to the external device.
Use [CR] to delimit the data in incoming/response command format.

To create the control program, confirm the response command from the LK-G Series
before sending the next command.

Both upper-case and lower-case characters can be used in the commands.
The presence or absence of the brackets [ ] in the command format depends on a condi-
tion.

Incoming command format

Response command format

Error response command format

Note

Reference

Incoming command

Response command

Incoming command format

CR

Response command format

CR

Main command

,

,

,

Identifier

1

Identifier

2

Identifier

3

[

]

[

]

]

[

The main command or identifier that has been received is added as a header.

,

,

,

[

]

[

]

]

[

E

,

CR

,

R

Error code

00 : Command error
01 : Status error
20 : Command length error
21 : Parameter count error

22 : Invalid parameter error
88 : Timeout error
99 : Other errors

Main command