Communications commands, Kv -300 – KEYENCE Visual KV Series User Manual
Page 281

7.5 KV Mode Programming
KV-300 Series Only
KV
-300
KV-10/80
Chapter 7 KV-L2 Serial Interface Module
1-257
1
7
Function
Command
Response
Remarks
Reads timer
RD_Tnnn
f,ddddd,ddddd
f=0, 1 0: contact OFF
(current value)
ddddd=00000 to 65535)
(preset value)
(in decimal nnnn=timer no.
Reads analog
RD_AT
ddddd_ddddd_
ddddd=00000 to 00249
timer
00000_00000
(in decimal)
(Trimmer 0)
Reads values of trimmers 0 and
(Trimmer 1)
1.
Changes current
WR_Cnnn_
OK
n/nnn: counter/timer no.
value of timer/
ddddd
ddddd=00000 to 65535
counter
WR_CTHn_
(in decimal)
ddddd
WR_Tnnn_
ddddd
Changes preset
WS_Cnnn_
OK
n/nnn: counter/timer no.
value of timer/
ddddd
ddddd=00000 to 65535
counter
WS_CTCn_
(in decimal)
ddddd
WS_Tnnn_
ddddd
Reads relay
RD_nnnnn
0
0: contact OFF
contact
1
1: contact ON
Forces contact ON
ST_nnnnn
OK
nnnnn=relay no.
ST_Cnnn
nnn=counter /timer no.
ST_Tnnn
Forced contact OFF
RS_nnnnn
OK
nnnnn=relay no.
RS_Cnnn
nnn=counter /timer no.
RS_CTCn
n=high-speed counter comparator
RS_Tnnn
no.
Reads DM
RD_DMnnnn
ddddd
ddddd=00000 to 65535
(in decimal)
nnnn=DM no.
Writes into DM
WR_DMnnnn_
OK
ddddd=00000 to 65535
ddddd
(in decimal)
nnnn=DM no.
Reads TM
RD_TMnn
ddddd
ddddd=00000 to 65535
(in decimal)
nn=TM no.
Writes into TM
WR_TMnn_
OK
ddddd=00000 to 65535
ddddd
(in decimal)
nn=TM no.
An underscore (_) in the command represents a space.
TM30 and TM31 are read-only memories; values cannot be written to them.
Note: The "WS" command changes the content of the program stored in the PLC's
EEPROM. Contact Keyence if you need to change it frequently.
Communications commands
This section describes the commands used for communications between the KV-L2
and a personal computer, and the responses from the KV-L2 in normal operation.
KVHKA Chap 07_5to10.p65
08.3.11, 11:18 AM
257