beautypg.com

2 format of commands/responses – KEYENCE Visual KV Series User Manual

Page 333

background image

7.2 Serial Communication

3-309

1

7

Chapter 7 Serial Communication

Command/response format
"Command" and "response" in communications between the KV and a personal
computer are defined as follows:

Command: Message transmitted from personal computer to KV

Response: Answer to the command (message from KV to personal computer)

When a personal computer transmits a command to the KV Series basic unit, the KV
sends back a response to the personal computer.
When creating a program to control the KV using a personal computer, create it so
that the response is checked before the next command is transmitted.

7.2.2

Format of Commands/Responses

The formats of commands and responses are as follows:

Command format

Use the following format to transmit commands from the personal computer to the
KV. [CR] is a delimiter. The KV ignores [LF] and recognizes the next character after
[LF] as the next command.

Response format

The KV sends back a response to the received command in the following format.
When creating a program using a personal computer, create it so that the personal
computer can process the response in this format.

Command

Response

Or

C

R

C

R

L

F

Command

C

R

L

F

KVNKA Chap 07.p65

08.3.11, 0:11 PM

309