beautypg.com

KEYENCE Visual KV Series User Manual

Page 338

background image

7.2 Serial Communication

3-314

7

Chapter 7 Serial Communication

Writing preset value of high-speed counter comparator CTC
Changes the preset value of the specified high-speed counter comparator CTC.

Command: WS_CTCn_ddddd

New preset value (00000 to 65535: in decimal)
High-speed counter comparator No.

Response: OK

Writing into DM
Writes data into the specified data memory.

Command: WR_DMnnnn_ddddd

New current value (00000 to 65535: in decimal)
Data memory No.

Response: OK

Writing into TM
Writes data into the specified temporary data memory. TM30 and TM31 are read-
only memories, so values cannot be written to them.

Command: WR_TMnn_ddddd

New current value (00000 to 65535: in decimal)
Temporary data memory No. (00 to 29)

Response: OK

Forcing relay ON
Forces the contact of the specified relay to ON.

Command: ST_nnnnn

Relay No.

Response: OK

Forcing counter contact ON
Forces the contact of the specified counter to ON.

Command: ST_Cnnn

Counter No.

Response: OK

Forcing timer contact ON
Forces the contact of the specified timer to ON.

Command: ST_Tnnn

Timer No.

Response: OK

Forcing relay OFF
Forces the contact of the specified relay to OFF.

Command: RS_nnnnn

Relay No.

Response: OK

Forcing counter contact OFF
Forces the contact of the specified counter to OFF.

Command: RS_Cnnn

Counter No.

Response: OK

Forcing timer contact OFF
Forces the contact of the specified timer to OFF.

Command: RS_Tnnn

Timer No.

Response: OK

KVNKA Chap 07.p65

08.3.11, 0:11 PM

314