KEYENCE Visual KV Series User Manual

Page 335

Advertising
background image

7.2 Serial Communication

3-311

1

7

Chapter 7 Serial Communication

7.2.4

Setting Communication Commands and Responses to
Commands

This section describes the command settings and responses when a command is
properly processed.
"_" represents a space.
Refer to "7.2.5 Other Response Codes" (p. 3-315) for responses under abnormal
conditions.

Communications start command
Transmit a communications start command to start communication with the KV.
Other commands can be transmitted after the proper response is sent back from the
KV.

Note: Other commands cannot be used unless a [CR] (communications start)
command is transmitted first.

Starts communications between the KV and a personal computer.

Command: CR
Response: CC

Communications end command
Ends communications between the KV and a personal computer.

Command: CQ
Response: CF

Mode change command
Selects the mode between PROGRAM and RUN.

Command: Mn

[n=0; PROGRAM mode, n=1; RUN mode]

Response: OK

Error clear command
Clears error messages on KV.

Command: ER
Response: OK

Checking KV PLC error
Checks errors or faults in the KV. The description of the error is indicated with the
error code.

➮ "7.2.6 Error Code List" (p. 3-316).

Command: ?E
Response: dd

Error code (2- or 3-digit number)

Checking current mode
The KV responds with 0 or 1 indicating a current mode.

Command: ?M
Response: f

0: PROGRAM mode 1: RUN mode

KVNKA Chap 07.p65

08.3.11, 0:11 PM

311

Advertising