KEYENCE Visual KV Series User Manual

Page 207

Advertising
background image

2.4 Instruction Details

1

2

3-183

Chapter 2 Instructions

Example

Coding

Operands

Key operation

Arithmetic flag

2009, 2010, 2011 No change

2012

Turns ON when the high- and low-order 8-bit value is not within
the range of "$30" to "$39" and "$41" to "$46", respectively,
before the RASC instruction is executed (In this case, the RASC
instruction will not be executed.). Turns OFF at other times.

ASC: ASCII Convert

@ASC: ASCII Convert

RASC:

Reverse ASCII Convert

@RASC:

Reverse ASCII Convert

Converts contents of lower order byte
of internal register into 2-digit ASCII
code.

Converts 2-digit ASCII into byte data
representing 2-digit hex number.

@

#,$

FUN

FUN

ORL

3

ORL

3

@

#,$

FUN

FUN

RES

0

ANL

2

ANL

2

ANL

2

RES

0

ANL

2

ASC

ASC

RASC

RASC

ASC

RASC

0000

0001

DM0000

LDA

DM0001

STA

DM0010

LDA

DM0011

STA

Line No.

Instruction

Operand

0000

LD

0000

0001

LDA

DM0000

0002

CON

0003

@ASC

0004

CON

0005

@STA

DM0001

0006

LD

0001

0007

LDA

DM0010

0008

CON

0009

@RASC

0010

CON

0011

@STA

DM0011

ORL

3

@

#,$

FUN

FUN

@

#,$

FUN

FUN

RES

0

ANL

2

ANL

2

ENT

R-SRCH

ENT

R-SRCH

ENT

R-SRCH

ENT

R-SRCH

ASC / @ASC / RASC / @RASC

:

:

:

:

KVNKA Chap 02_4dP.p65

08.3.11, 0:04 PM

183

Advertising