KEYENCE Visual KV Series User Manual

Page 64

Advertising
background image

2.1 Instruction List

Visual KV Series

3-40

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 (OUTPUT)

Converts content of
internal register (4-digit
BCD) into 16-bit binary
data.

Converts content of
internal register (16-bit
binary) into 4-digit BCD
data.

DEMULTI-

PLEXER

TRANSFER

BCD

TRANSFER

BIN

ASCII

CONVERT

REVERSE

ASCII

CONVERT

SQUARE

ROOT

DMX

(FUN 12)

@DMX

@(FUN 12)

TBCD

(FUN 47)

@TBCD

@(FUN 47)

TBIN

(FUN 48)

@TBIN

@(FUN 48)

ASC

(FUN 02)

@ASC

@(FUN 02)

RASC

(FUN 32)

@RASC

@(FUN 32)

ROOT

(FUN 36)

@ROOT

@(FUN 36)

22.6

34.6

5.6

17.6

9.6

21.6

9.7

21.7

9.3

21.3

95.7

1 (4)

1 (4)

1 (14)

1 (4)

1 (14)

1 (14)

1 (4)

1 (14)

1 (4)

1 (14)

1 (4)

1 (14)

Converts position of
highest order bit with 1 in
internal register into 4-bit
data.

Converts content of lower
order 8 bytes of internal
register into 2-digit ASCII
code.

Converts 2-digit ASCII
code of internal register
into 2-digit numerical
value.

Takes square root of 32-
bit data (TM00: higher
order byte, internal
register: lower order byte)
and inputs result back to
same register.

3-176

3-180

3-180

3-183

3-183

Instruction

Symbol

Mnemonic

Operand

Operand

value

Function

Exec.time

(

µ

s)

Bytes

Page

COMPLE-

MENT

INCREMENT

MEMORY

DECRE-

MENT

MEMORY

MULTI-

PLEXER

COM

(FUN 05)

@COM

@(FUN 05)

INC

(FNC 19)

@INC

@(FUN 19)

DEC

(FNC 07)

@DEC

@(FUN 07)

MPX

(FUN 27)

@MPX

@(FUN 27)

DM/TM No.

DM/TM No.

DM0000 to

DM1999

TM00 to

TM29

5.6

17.6

9.8

21.8

10.4

22.4

10.1

22.1

1 (4)

1 (14)

3 (6)

3 (16)

3 (6)

3 (16)

1 (6)

1 (16)

Inverts content of each bit
in internal register.

Adds 1 to content of data
memory specified by
operand.

Subtracts 1 from content
of data memory specified
by operand.

Converts 4-bit data
(specified by operand) of
internal register into 16-bit
data.

3-171

3-172

3-172

# constant

DM0000 to

DM1999

TM00 to

TM29

#0 to #3

COM

COM

nnnn

INC

nnnn

INC

nnnn

DEC

nnnn

DEC

#n

MPX

#n

MPX

DMX

DMX

TBCD

TBCD

TBIN

TBIN

ASC

ASC

RASC

RASC

ROOT

ROOT

3-185

3-176

107.7

KVNKA Chap 02_1&2&3P.p65

08.3.11, 11:53 AM

40

Advertising