KEYENCE Visual KV Series User Manual
Page 210

2.4 Instruction Details
3-186
2
Chapter 2 Instructions
Change in status of special utility relays (arithmetic flags) by arithmetic
instructions (1/3)
Instruction
Mnemonic
Operand
A < 0
A = 0
A > 0
Error
2009
2010
2011
2012
DATA
MEMORY
DW
$,# constant
—
—
—
—
WRITE
➮ 3-136
Relay No.
—
5
—
—
LOAD A
LDA
Timer/counter No.
—
5
—
—
➮ 3-140
[FUN23]
Data memory No.
—
5
—
—
$,# constant
—
5
—
—
# TM
—
5
—
H
Relay No.
—
—
—
—
STORE A
STA
Timer/counter No.
—
—
—
—
➮ 3-140
[FUN42]
Data memory No.
—
—
—
—
# TM
—
—
—
H
COMPARE
CMP
Data memory No.
1
2
3
—
➮ 3-146
[FUN04]
$,# constant
1
2
3
—
# TM
1
2
3
H
ADD
ADD
Data memory No.
4
5
—
—
➮ 3-150
[FUN00]
$,# constant
4
5
—
—
# TM
4
5
—
H
SUBTRACT
SUB
Data memory No.
6
5
7
—
➮ 3-150
[FUN46]
$,# constant
6
5
7
—
# TM
6
5
7
H
MULTIPLY
MUL
Data memory No.
I
8
—
—
➮ 3-150
[FUN28]
$,# constant
I
8
—
—
# TM
I
8
—
H
DIVIDE
DIV
Data memory No.
—
8
—
9
➮ 3-150
[FUN11]
$,# constant
—
8
—
9
# TM
—
8
—
H9
AND A
ANDA
Data memory No.
—
5
—
—
➮ 3-159
[FUN01]
$,# constant
—
5
—
—
# TM
—
5
—
H
—: No change in arithmetic flag
Refer to the description of each instruction for details of the operating conditions of the flag.
KVNKA Chap 02_4dP.p65
08.3.11, 0:04 PM
186