KEYENCE Visual KV Series User Manual

Page 336

Advertising
background image

7.2 Serial Communication

3-312

7

Chapter 7 Serial Communication

Reading counter
Reads the contact ON/OFF status, or the current and preset values of the specified
counter/up-down counter.

Command: RD_Cnnn

Counter No.

Response: f,ddddd,ddddd

[Preset value of the counter (00000 to 65535: in
decimal)]
[Current value of the counter (00000 to 65535: in
decimal)]
0: Contact is OFF., 1: Contact is ON.

Reading high-speed counter CTH
Reads the contact ON/OFF status, or the current and preset values of the specified
high-speed counter CTH.

Command: RD_CTHn

High-speed counter No. (0 or 1)

Response: f,ddddd,ddddd

Preset value of CTH (00000 to 65535: in decimal)
Current value of CTH (00000 to 65535: in decimal)
0: Contact is OFF., 1: Contact is ON.

Reading high-speed counter comparator CTC
Reads the contact ON/OFF status, or the current and preset values of the specified
high-speed counter comparator CTC.

Command: RD_CTCn

High-speed counter comparator No.

Response: f,ddddd,ddddd

Preset value of CTC (00000 to 65535: in decimal)
Current value of CTC (00000 to 65535: in decimal)
0: Contact is OFF., 1: Contact is ON.

Reading timer
Reads the contact ON/OFF status, or the current and preset values of the specified
timer.

Command: RD_Tnnn

Timer No.

Response: f,ddddd,ddddd

Preset value of timer (00000 to 65535: in decimal)
Current value of timer (00000 to 65535: in decimal)
0: Contact is OFF., 1: Contact is ON.

Reading digital trimmer
Reads the preset values of the digital trimmers.

Command: RD_AT
Response: ddddd_ddddd_00000_00000

Value of trimmer 1 (00000 to 65535: in decimal)
Value of trimmer 0 (00000 to 65535: in decimal)

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

Command: RD_nnnn

Relay No.

Response: f

0: Contact is OFF., 1: Contact is ON.

KVNKA Chap 07.p65

08.3.11, 0:11 PM

312

Advertising