Kv -300 – KEYENCE Visual KV Series User Manual

Page 283

Advertising
background image

7.5 KV Mode Programming

KV-300 Series Only

KV

-300

KV-10/80

Chapter 7 KV-L2 Serial Interface Module

1-259

1

7

Reading analog timer
Reads trimmer setting of analog timer.
Command: RD_AT
Response: ddddd_ddddd_

[ddddd = 00000 to 00249 (in decimal)]

00000_00000
Setting of trimmer 1 (00000 to 00249)
Setting of trimmer 0 (00000 to 00249)

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

Changing current value of timer/counter
Changes current value of the specified timer/counter.
Command: WR_Cnnn_ddddd

Changes current value of a counter or an
up-down counter.

Command: WR_Tnnn_ddddd

Changes current value of a timer.

WR_CTHn_ddddd

Changes current value of a high-speed counter
CTH.
[nnn = counter/timer no. n = high-speed
counter no.]
[ddddd = 00000 to 65535 (in decimal)]

Response: OK

Changing preset value of timer/counter
Changes preset value of the specified timer/counter.
Command: WS_Cnnn_ddddd

Changes preset value of a counter or an
up-down counter.

WS_Tnnn_ddddd

Changes preset value of a timer

WS_CTCn_ddddd

Changes preset value of a high-speed counter
comparator CTC.
[nnn = counter/timer no.]
[n = high-speed counter comparator no.]
[ddddd = 00000 to 65535 (in decimal)]

Response: OK

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.

Reading relay contact
Reads contact ON/OFF status of the specified relay.
Command: RD_nnnnn

[nnnnn: relay no.]

Response: 0, 1

[0 = OFF, 1 = ON]

Forcing contact ON
Forces ON the contact of a specified relay, counter, or timer.
Command: ST_nnnnn

[nnnnn = relay no.]: Forces ON a contact of a relay.

ST_Cnnn

[nnn = counter no.]: Forces ON a contact of a counter.

ST_Tnnn

[nnn = timer no.]: Forces ON a contact of a timer.

Response: OK

Forcing contact OFF
Forces OFF the contact of a specified relay, counter, or timer.
Command: RS_nnnnn

[nnnnn = relay no.]: Forces OFF a contact of a relay
[nnn = counter no.]: Forces OFF a contact of a
counter.

RS_Tnnn

[nnn = timer no.]: Forces OFF a contact of a timer.

RS_CTCn

[n = high-speed counter comparator no.]: Forces OFF
a contact of a high-speed counter comparator.

Response:

OK

KVHKA Chap 07_5to10.p65

08.3.11, 11:18 AM

259

Advertising