beautypg.com

2 application instructions – KEYENCE Visual KV Series User Manual

Page 60

background image

2.1 Instruction List

Visual KV Series

3-36

2

Chapter 2 Instructions

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

2.1.2

Application Instructions

Instruction

Symbol

Mnemonic

Operand Operand value

Function

Exec.time

(

µ

s)

Bytes

Page

WAIT ON

WAIT OFF

WAIT UP

EDGE

WAIT

DOWN

EDGE

CONNECT

PUSH

READ

POP

W-ON

W-OFF

W-UE

W-DE

CON

(FUN 06)

MPS

MRD

MPP

nnnn:

R, T, C

Nos.

mmmm:

R No.
R No.

17915

T000 to T249

C000 to C249

CTC0 to CTC3

mmmm:

1000 to 1915
3000 to 9915
1000 to 1915

10.4 to 12.6

13.6 to 18.5

13.6 to 18.5

6.8 to 5.3

3.2

6.8

10.5 to 13.0

5 (12)

5 (12)

5 (12)

1 (0)

1 (4)

1 (4)

1 (4)

R (output operand [mmmm])
when R, T, or C (input operand
[nnnn]) is ON.

Turns ON R (output operand
[mmmm]) at falling edge of R, T,
or C (input 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.

3-96

3-96

3-98

3-98

3-102

STEP

STEP END

STP

(FUN 45)

STE

(FUN 43)

R No.
nnnn:

0000 to

0500 to 9915

T000 to T249

C000 to C249

CTC0 to CTC3

11.2 to 13.4

2.5

5 (12)

3 (10)

1 (0)

Reads & clears input status
and arithmetic flag stored
with PUSH.

Is used with STEP to make
program step.

STAGE

JUMP

END

STAGE

STG

(FUN 44)

JMP

(FUN 21)

ENDS

(FUN 14)

R, T, C

Nos.

3000 to 9915
0000 to 0009

4.5 to 12.5

4.3 to 7.5

3 (10)

3 (8)

1 (4)

Turns ON

Turns ON R (output operand
[mmmm]) when R, T, or C (input
operand [nnnn]) is OFF.

Turns ON R (output operand
[mmmm]) at rising edge of R, T,
or C (input operand [nnnn]).

Executes instructions in STG
block when R (operand) is ON.

When input is ON, turns R of
current stage OFF and moves
to stage specified by operand.

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

Executes program between
STP & STE when R (oper-
and) is ON.

3-103

3-103

3-106

3-106

3-106

3-114

3-114

nnnn

ON

mmmm

nnnn

OFF

mmmm

nnnn

mmmm

nnnn

mmmm

nnnn

STG

nnnn

JMP

ENDS

STP

nnnn

STE

3-103

KVNKA Chap 02_1&2&3P.p65

08.3.11, 11:52 AM

36