
7.5 KV Mode Programming
KV-300 Series Only
KV-300
KV-10/80
Chapter 7 KV-L2 Serial Interface Module
1-256
7
Command and response
"Command" and "response" in communications between the KV-L2 and a personal
computer are defined as follows:
Command:
Message transmitted from a personal computer to the KV-L2
Response:
Response to the command transmitted from the KV-L2 to the personal computer
When a command is transmitted from the personal computer to the KV-L2, the KV-
L2 sends a response to the personal computer. When writing a program to be
controlled by the personal computer, be sure that the response from the KV-L2 is
confirmed before the next command is transmitted.
Command/response format
Command/response formats are as follows:
The personal computer transmits a command to the KV-L2 according to the com-
mand format. The KV-L2 recognizes CR as delimiter, and thus ignores the LF in the
CR LF command and identifies the subsequent characters as the command.
The KV-L2 returns a response to the command according to the response format.
When writing a program with a personal computer, verify that the response can be
handled according to the response format.
When the 1:n connection pattern is used, the personal computer communicates only
with the KV-L2 set to the specified station no. To communicate with a KV-L2 set to
another station no., terminate communications with the KV-L2 set to the specified
station no. and send a communication start command (CR_nn) in which the new
station no. is specified in "nn."
Communications commands and responses
Communications command/response list
Command format
Command
C
R
C
R
L
F
Command
or
Response
C
R
L
F
Response format
Function Command Response Remarks
Starts communi- CR_nn CC_nn nn = Station no. (00 to 09, 15)
cations Specify in decimal value
(not required for 1:1 connection)
Ends communi- CQ CF
cations
Changes mode Mn OK n=0: PROGRAM mode
of KV-300 CPU n=1: RUN mode
Error clear mode ER OK
Checks CPU error ?E dd dd: Error code (No error: 00)
Inquires model ?K K300
Checks current ?M 0 O: PROGRAM mode
mode 1 1: RUN mode
Reads counter RD_Cnnn f,ddddd,ddddd f=0, 1 0: contact OFF 1: contact
RD_CTHn (current value) ON ddddd=00000 to 65535
RD_CTCn (preset value) (in decimal) n/nnn=counter no.
KVHKA Chap 07_5to10.p65 08.3.11, 11:18 AM256
Kommentare zu diesen Handbüchern