KEYENCE Visual KV Series User Manual
Page 337

7.2 Serial Communication
3-313
1
7
Chapter 7 Serial Communication
■ Reading DM
Reads the contents of the specified data memory.
Command: RD_DMnnnn
Data memory No.
Response: ddddd
Data in the specified data memory. (00000 to
65535: in decimal)
■ Reading TM
Reads the contents of the specified temporary data memory.
Command: RD_TMnn
Temporary data memory No. (00 to 31)
Response: ddddd
Data in the specified temporary data memory.
(00000 to 65535: in decimal)
■ Writing current value of counter
Changes the current value of the specified counter or up-down counter.
Command: WR_Cnn_ddddd
New current value (00000 to 65535: in decimal)
Counter No.
Response: OK
■ Writing current value of timer
Changes the current value of the specified timer.
Command: WR_Tnnn_ddddd
New current value (00000 to 65535: in decimal)
Timer No.
Response: OK
■ Writing current value of high-speed counter CTH
Changes the current value of the specified high-speed counter CTH.
Command: WR_CTHn_ddddd
New current value (00000 to 65535: in decimal)
High-speed counter No.
Response: OK
■ Writing preset value of counter
Changes the preset value of the specified counter or up-down counter.
Command: WS_Cnnn_ddddd
New preset value (00000 to 65535: in decimal)
Counter No.
Response: OK
Note: Executing this command changes the program in the KV. The program in EEPROM is
automatically updated the next time the KV is turned ON.
■ Writing preset value of timer
Changes the preset value of the specified timer.
Command: WS_Tnnn_ddddd
New preset value (00000 to 65535: in decimal)
Timer No.
Response: OK
Note:
Visual KV Series:
Executing this command changes the program in the KV. The
program in EEPROM is automatically updated the next time the KV
is turned ON.
KV-300, 10/80 Series:
The "WS" command changes the content of the program
stored in the PLC’s EEPROM.
➮ Contact Keyence if you need to change it frequently.
KVNKA Chap 07.p65
08.3.11, 0:11 PM
313