Kv -300, Read dm value (rd), Read i/o relay/internal utility relay (rj) – KEYENCE Visual KV Series User Manual

Page 303

Advertising
background image

7.6 Display Interface Mode Programming

KV-300 Series Only

KV

-300

KV-10/80

Chapter 7 KV-L2 Serial Interface Module

1-279

1

7

Read status of counter/timer/high-speed counter comparator (RG)

This command reads the ON/OFF status of the counter/timer/high-speed counter
comparator starting from the specified no. within the specified range.

Command format

Response format (When the command is executed normally, the response

includes the end code "00".)

Note 1: The values of the counter/timer and high-speed counter comparator CTC
cannot be read with a same single command at once. Read the counter/timer and
CTC values individually.

Note 2: The station no. is indicated in decimal; the end code, in hexadecimal.

Read DM value (RD)

This command reads values of the data memory addresses starting from the
specified DM address within the specified range.

Command format

Response format (When the command is executed normally, the response

includes the end code "00".)

Read I/O relay/internal utility relay (RJ)

Reads values of the I/O relays/internal utility relays starting from the specified relay
ch. within the specified range.

Read start No.

Data to read

0001 to 0249

Timer/counter

0250

High-speed counter comparator CTC0

0251

High-speed counter comparator CTC1

0252

High-speed counter comparator CTC2

0253

High-speed counter comparator CTC3

0001 to 0250/
0001 to 0004
(in decimal)

Station no.

nn

@

RG

FCS

C

R

End code

nn

ON/

OFF

ON/

OFF

Header code

Terminator

Data of read start no. +1
(ON: 1 OFF: 0)

Data of read start no.
(ON: 1 OFF: 0)

@

RD

FCS

C

R

Station no.

nn

End code

nn

Data
nnnn

Data

nnnn

Header code

Terminator

Data of read start DM
no.+1 (in hexadecimal)

Data of read start DM
no. (in hexadecimal)

Station no.

nn

@

RG

FCS

C

R

Read start

no.

nnnn

Number of

counters/timers/

comparators to

read nnnn

Header

code

00 to 15

(in decimal)

Terminator

0000 to 0249/
0250 to 0253
(in decimal)

@

RD

FCS

C

R

Station no.

nn

Read start

DM no.

nnnn

Number of DMs

addresses to

read

nnnn

Header

code

00 to 15

(in decimal)

Terminator

0001 to 10000
(in decimal)

0000 to 9999
(in decimal)

KVHKA Chap 07_5to10.p65

08.3.11, 11:18 AM

279

Advertising