beautypg.com

KEYENCE Visual KV Series User Manual

Page 61

background image

Visual KV Series

3-37

1

2

Chapter 2 Instructions

2.1 Instruction List

Number of bytes represents the memory capacity required for each instruction.

Number in ( ) represents the memory capacity required for object code of each
instruction.

All operand values are shown in normal notation. The corresponding relay
numbers in X-Y-M notation are shown below:

Normal notation

X-Y-M notation

0000 to 0415

X000 to X04F

0500 to 0915

Y050 to Y09F

1000 to 6915

M1000 to M6915

7000 to 17915

X700 to X174F or Y750 to Y179F

Instruction

Symbol

Mnemonic

Operand

Operand value

Function

Exec.time

(

µ

s)

Bytes

Page

INTERVAL

TIMER

16-BIT

COUNTER

16-BIT

COUNTER

COMPARA-

TOR

16-BIT

COUNTER

16-BIT

COUNTER

COMPARA-

TOR

SUBROUTINE

CALL

ITVL

CTH

CTC

CALL

(FUN 03)

SBN

(FUN 38)

RET

(FUN 33)

DMnnnn:
DM No.
mmmm: R
No.

Count input
R

n:

Comparator

No.

ddddd:

# preset

value

n:

Comparator

No.

ddddd:

# preset

value

Subroutine

No.

DMnnnn:

DM0000 to

DM1985

mmmm:

1000 to 1912
3000 to 9912

0004
2100
2101
2102

n: 0,1

ddddd: #00001

to #65535

0005
0500
2200
2201
2202

20.0 to 80.0

14.4

2.3 to 3.5

5.4 to 6.5

4.3

5 (10)

4 (6)

2 (6)

4 (6)

2 (6)

2 (8)

Measures pulse-to-pulse
interval & pulse width in
specified mode.

16-bit (0 to 65535) up-
down counter for clock
pulses with input response
frequency of 30 kHz.

Hardware-based comparator
between preset & current
values of high-speed counter
(CTH0). This comparator is
turned ON when these
values are equal.

Executes subroutine
specified by operand.

Represents beginning of
subroutine specified by
operand.

Represents end of
subroutine.

3-117

3-204

3-204

3-204

REPEAT

START

REPEAT END

16-KEY INPUT

FOR

(FUN 16)

NEXT

(FUN 29)

HKEY

(FUN 17)

# constant,

DM No.

TMxx

nnnn:

Input R

mmmm:

Output R

#00000 to

#65535

DM0000 to

DM1999

TM00 to TM29

nnnn:

0000 to 415

mmmm:

0500 to 915

12.0 to

18.0

0.5

22.1 to

180.0

3 (20)

1 (4)

5 (10)

Executes program
between FOR & NEXT
for number of times
specified by operand.

Represents end of
repetition.

Reads 16-key data by
time-sharing and outputs
these data into special
utility Rs 2900 to 2915.

3-125

3-125

SUBROUTINE

ENTRY

SUBROUTINE

RETURN

CTH

CTC

Count input
R

Subroutine

No.

n: 2,3

ddddd: #00001

to #65535

00 to 99

00 to 99

14.4

2.3 to 3.5

2 (4)

1 (4)

16-bit (0 to 65535) up-
down counter for clock
pulses with input
response frequency of 30
kHz.

Hardware-based comparator
between preset & current
values of high-speed counter
(CTH1). This comparator is
turned ON when these
values are equal.

3-204

3-122

3-122

3-131

ITVL

PLS

DMnnnn
PAUSE

mmmm
RES

CTH0

nnnn

CTCn

#ddddd

CTH1

nnnn

CTCn

#ddddd

CALL

nn

SBN
nn

RET

FOR

nnnn

HKEY

nnnn

mmmm

NEXT

3-122

KVNKA Chap 02_1&2&3P.p65

08.3.11, 11:52 AM

37