KEYENCE Visual KV Series User Manual

Page 204

Advertising
background image

2.4 Instruction Details

3-180

2

Chapter 2 Instructions

Example

Coding

Operands

Key operation

Arithmetic flag

2009, 2010, 2011 No change
2012

Turns ON when the contents of the internal register are greater
than "$270F (#09999)" before TBCD operation, or when the
contents of the internal register are not BCD data before the
TBIN operation (In these cases, the TBCD or TBIN instruction
will not be executed.). Turns OFF at other times.

TBCD: Transfer BCD

@TBCD: Transfer BCD

TBIN: Transfer BIN

@TBIN: Transfer BIN

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

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

@

#,$

FUN

FUN

@

#,$

FUN

FUN

L D

7

LDB

4

LDB

4

AND

8

L D

7

LDB

4

LDB

4

AND

8

TBCD

TBCD

TBIN

TBIN

TBCD

TBIN

0000

0001

DM0000

LDA

DM0001

STA

DM0010

LDA

DM0011

STA

Line No.

Instruction

Operand

0000

LD

0000

0001

LDA

DM0000

0002

CON

0003

@TBCD

0004

CON

0005

@STA

DM0001

0006

LD

0001

0007

LDA

DM0010

0008

CON

0009

@TBIN

0010

CON

0011

@STA

DM0011

@

#,$

FUN

FUN

@

#,$

FUN

FUN

L D

7

LDB

4

LDB

4

AND

8

ENT

R-SRCH

ENT

R-SRCH

ENT

R-SRCH

ENT

R-SRCH

:

:

:

:

TBCD / @TBCD / TBIN / @TBIN

KVNKA Chap 02_4dP.p65

08.3.11, 0:04 PM

180

Advertising