Outline of command formats – KEYENCE LS-7000 User Manual
Page 148

7-6
Chapter 7 RS-232C
7
Outline of Command Formats
When LS-7000 Series receives a command from the external device, the LS-7000 Series
will respond to the received command and return a response to the external device. The
following section provides information on respective command formats.
Note:
When you write a control program, check that the program will enable the
external device to send the next command after the external device confirms
the response from the LS-7000 Series.
■ Connection to a PC/PLC Link Unit
■ Connection to KV-10/80 series
LS
Command
Response
Command format
cr
Response format
cr
STX
Command format
STX
Response format
LS
Command
Response
ETX
ETX
The Cr character is appended to the com-
mands and responses.
The STX+ETX characters are used to insert
a delimiter each to the command and
response formats.
■ Outline of Command Formats
The following typical examples of command formats are explained below.
• Command format
• Response format
• Error response format
Command Format
Main command
,
,
,
Identifier 1
Identifier 2
Identifier 3
[
] [
]
]
[
Response Format
The received main command or identifier will be
added as the header.
,
,
,
[
] [
]
]
[
Error Response Format
Main command
E R ,
,
Error number
00: Command error
01: Command error due to operational problem
06: Delimiter error at the time of PLC selection
20: Data length error
21: Error in the number of data items
22: Data value overrange
88: Time-out error
99: Others