Kv -300 – KEYENCE Visual KV Series User Manual
Page 284

7.5 KV Mode Programming
KV-300 Series Only
KV
-300
KV-10/80
Chapter 7 KV-L2 Serial Interface Module
1-260
7
Reading DM
Reads content of the specified data memory address.
Command: RD_DMnnnn
[nnnn = data memory no.]
Response: ddddd
[ddddd = 00000 to 65535 (in decimal)]
■ Writing into DM
Writes values into the specified data memory address.
Command: WR_DMnnnn_
[nnnn = data memory no.]
ddddd
[ddddd = 00000 to 65535 (in decimal)]
Response: OK
■ Reading TM
Reads content of the specified temporary memory address.
Command: RD_TMnn
[nn = 00 to 31 (temporary memory no.)]
Response: ddddd
[ddddd = 00000 to 65535 (in decimal)]
■ Writing into TM
Writes values into the specified temporary memory address.
Command: WR_TMnn_ddddd
[nn=00 to 29 (temporary memory no.)]
[ddddd = 00000 to 65535 (in decimal)]
Response: OK
An underscore (_) in the command represents a space.
Other response codes
The KV-L2 returns a response corresponding to the command transmitted by the
computer. If the command from the computer is an unspecified one, or if an error
occurs in the KV-300 CPU, the KV-L2 issues an appropriate response code for the
status.
The following table summarizes the description, cause, and remedy for a response
code.
■ Response
Code
Description Cause
Remedy
E0
Relay no.
error
• Undefined relay, counter,
timer, DM, CTH, or CTC
number was specified.
• Counter, timer, CTH or CTC
number not used in a pro-
gram was specified.
• Undefined or inconnect
command was transmitted.
• Specify a number that is
defined in the KV-300 CPU
being used.
• Check the program, and
specify a number used in
the program.
• Transmit the connect
command.
E1
Command
error
• Undefined or incorrect
command was transmitted.
• Command other than "CR"
was transmitted before the
communications path was
established.
• Transmit the correct com-
mand.
• Transmit "CR" to initiate
communications, then
transmit the command.
KVHKA Chap 07_5to10.p65
08.3.11, 11:18 AM
260