beautypg.com

KEYENCE Visual KV Series User Manual

Page 70

background image

KV-300 Series, KV-10/80

2.2 Instruction List

KV-300 Series,

3-46

2

Chapter 2 Instructions

KV-300

KV-300

Instruction

Symbol

Mnemonic Operand

Operand value

Exec.time

(

µ

s)

Bytes

Function

Page

WAIT ON

nnnn

ON

mmmm

nnnn

OFF

mmmm

nnnn

mmmm

nnnn

mmmm

nnnn

STG

nnnn

JMP

ENDS

STP

nnnn

STE

ITVL

PLS

PAUSE
RES

nnnn

mmmm

DM

nnnn

CTH0

WAIT OFF

WAIT UP

EDGE

WAIT DOWN

EDGE

CONNECT

PUSH

READ

POP

STAGE

JUMP

END

STAGE

STEP

STEP END

INTERVAL

TIMER

16-BIT

COUNTER

W-ON

W-OFF

W-UE

W-DE

CON

[FNC 06]

MPS

MRD

MPP

STG

[FNC 44]

JMP

[FNC 21]

ENDS

[FNC 14]

STP

[FNC 45]

STE

[FNC 43]

ITVL

CTH

nnnn:

R,T, or

C No.

R No.

R, T,

C Nos.

DM & R No.

Clock

source Rs

nnnn:

0000 to 0009

0500 to 17915

T000 to T249

C000 to C249

CTC0 to CTC3

mmmm:

1000 to 1915
3000 to 6915

(*)7000 to 9915

1000 to 1915
3000 to 6915

(*)7000 to 9915

0000 to 0009
0500 to 6915

(*)7000 to 9915

T000 to T249

C000 to C249

CTC0 to CTC3

DMnnnn:

DM0000 to DM9985

mmmm:

1000 to 1912
3000 to 6912

(*)7000 to 9912

0004
2100
2101
2102

5.00 to 6.10

5.00 to 6.10

6.10 to 7.50

6.10 to 7.50

1.30

2.70

1.40

5.60 to 6.50

3.80 to 6.00

1.30

13.80 to

17.30

3.85

5 (9)

5 (9)

5 (10)

5 (10)

1 (0)

1 (9)

1 (18)

1 (9)

3 (10)

3 (7)

1 (0)

3 (9)

1 (0)

5 (11)

4 (7)

Turns ON R (2nd operand
[mmmm]) when R, T, or C (1st
operand [nnnn]) turns ON.

When R, T, or C (1st operand
[nnnn]) turns OFF, R (2nd
operand [mmmm]) turns ON.
R (2nd operand [mmmm])
turns ON at rising edge of R,
T, or C (1st operand [nnnn]).

R (2nd operand [mmmm])
turns ON at falling edge of R,
T, or C (1st operand [nnnn]).

Represents series connection
of output instruction together
with another instruction.

Stores input status and
arithmetic flag.

Reads input status and
arithmetic flag stored with
PUSH.

Reads & clears input status
and arithmetic flag stored
with PUSH.
Executes instructions
between STG & JMP when R
(operand) is ON.

Turns current stage OFF and
next stage ON when input is
ON.

Turns current stage OFF
when input is ON.

Executes program between
STP & STE when R
(operand) is ON.

Is used with STEP to make
program step.

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

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

3-96

3-96

3-98

3-98

3-102

3-103

3-103

3-103

3-106

3-106

3-106

3-114

3-114

3-117

3-204

KV-10/16/24/40/80

Instruction

Symbol

Mnemonic

Operand

Operand value

KV-10/16

Operand value

KV-24/40/80

Exec.time

(

µ

s)

Bytes

Function

Page

REPEAT

START

REPEAT

END

16-KEY

INPUT

FOR

[FNC 16]

NEXT

[FNC 29]

HKEY

[FNC 17]

# constant,

DM No.

I/O R

nnnn

FOR

NEXT

nnnn

mmmm

HKEY

#00000 to

#65535

DM0000 to

DM0999

TM00 to TM29

nnnn:0000 to 0009

10000 to 10415

:

17000 to 17415

mmmm:10500 to 10915

:

17500 to 17915

#00000 to

#65535

DM0000 to

DM1999

TM00 to TM29

5.0 to 20.0

1.7 to 2.3

71 to 370

3 (15)

1 (3)

5 (7)

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

3-131

KVNKA Chap 02_1&2&3P.p65

08.3.11, 11:53 AM

46