10 command list, 1 list of commands and responses, Kv -300 – KEYENCE Visual KV Series User Manual

Page 332

Advertising
background image

7.10 Command List

KV-300 Series Only

KV

-300

KV-10/80

Chapter 7 KV-L2 Serial Interface Module

1-308

7

7.10 Command List

7.10.1 List of Commands and Responses

Function

Command

Response

Remarks

Starts communications CR_nn

CC_nn

nn = Station no. (00 to 09, 15)
Specify in decimal value
(not required for 1:1 connection)

Ends communications

CQ

CF

Changes mode of

Mn

OK

n=0: PROGRAM mode

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 mode

?M

0

O: PROGRAM mode

1

1: RUN mode

Reads counter

RD_Cnnn

f,ddddd,ddddd

f=0, 1

RD_CTHn

(current value) (preset value) 0: contact OFF

RD_CTCn

1: contact ON
ddddd=00000 to 65535 (in decimal)
n/nnn=counter no.

Reads timer

RD_Tnnn

f,ddddd,ddddd

f=0, 1

(current value) (preset value) 0: contact OFF

1: contact ON
ddddd=00000 to 65535 (in decimal)
nnnn=timer no.

Reads analog timer

RD_AT

ddddd_ddddd_00000_00000 ddddd=00000 to 00249 (in decimal)
(Trimmer 0) (Trimmer 1)

Reads values of trimmers 0 and 1.

Changes current value* WR_Cnnn_ddddd

OK

n/nnn: counter/timer no.

of timer/counter

WR_CTHn_ddddd

ddddd=00000 to 65535 (in decimal)

WR_Tnnn_ddddd

Changes preset value

WS_Cnnn_ddddd

OK

n/nnn: counter/timer no.

of timer/counter

WS_CTCn_ddddd

ddddd=00000 to 65535 (in decimal)

WS_Tnnn_ddddd

Reads relay contact

RD_nnnnn

0

0: contact OFF

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 no.

RS_Tnnn

Reads DM

RD_DMnnnn

ddddd

ddddd=00000 to 65535 (in decimal)

Writes into DM

WR_DMnnnn_ddddd OK

ddddd=00000 to 65535 (in decimal)

nnnn=DM no.

Reads TM

RD_TMnn

ddddd

ddddd=00000 to 65535 (in decimal)
nn=TM no.

Writes into TM

WR_TMnn_ddddd

OK

ddddd=00000 to 65535 (in decimal)

nn=TM no.

List of commands and responses used for serial communications in KV mode

Note 1: An underscore (_) in the command represents a space.

Note 2: M30 and TM31 are read-only memories; values cannot be written to them.

* The "WS" command changes the content of the program stored in the PLC's EEPROM. Contact if you
need to change it frequently.

KVHKA Chap 07_5to10.p65

08.3.11, 11:18 AM

308

Advertising