3 arithmetic instructions – KEYENCE Visual KV Series User Manual
Page 72

KV-300 Series, KV-10/80
2.2 Instruction List
KV-300 Series,
3-48
2
Chapter 2 Instructions
2.2.3
Arithmetic Instructions
KV-10/16/24/40/80
KV-10/16/24/40/80
Instruction Symbol
Mnemonic Operand Operand value
KV-10/16
Operand value
KV-24/40/80
Exec.time
(
µ
s)
Bytes
Function
Page
DATA
MEMORY
WRITE
TRIMMER
SETTING
LOAD A
STORE A
COMPARE
ADD
SUBTRACT
MULTIPLY
DIVIDE
DW
TMIN
[FNC 50]
@TMIN
@[FNC 50]
LDA
[FNC 23]
@LDA
@[FNC 23]
STA
[FNC 42]
@STA
@[FNC 42]
CMP
[FNC 04]
@CMP
@[FNC 04]
ADD
[FNC 00]
@ADD
@[FNC 00]
SUB
[FNC 46]
@SUB
@[FNC 46]
MUL
[FNC 28]
@MUL
@[FNC 28]
DIV
[FNC 11]
@DIV
@[FNC 11]
#/$
constant,
DM No.
Trimmer
No.
R No.,
C/T No.,
DM/TM
No.,
#/$
constant,
#TMxx
R No.,
C/T No.,
DM/TM
No.,
#/$
constant,
#TMxx
DM/TM
No.,
#/$
constant,
#TMxx
DM/TM
No.,
#/$ No.,
#TMxx
#00000 to
#65535
$0000 to
$FFFF
DM0000 to
DM0999
0
0000 to 2915
T000 to T063
C000 to C063
CTH0 to CTH1
DM0000 to
DM0999
TM00 to TM31
#00000 to
#65535
$0000 to
$FFFF
#TM00 to
#TM29
0500 to 1915
2100 to 2915
T000 to T063
C000 to C063
DM0000 to
DM0999
TM00 to TM29
#TM00 to
#TM29
DM0000 to
DM0999
TM00 to TM31
#00000 to
#65535
$0000 to
$FFFF
#TM00 to
#TM29
DM0000 to
DM0999
TM00 to TM31
#00000 to
#65535
$0000 to
$FFFF
#TM00 to
#TM29
#0000 to
#65535
$0000 to
$FFFF
DM0000 to
DM1999
0 to 1
0000 to 6915
T000 to T119
C000 to C119
CTH0 to CTH1
DM0000 to
DM1999
TM00 to TM31
#00000 to
#65535
$0000 to
$FFFF
#TM00 to
#TM29
0500 to 1915
2100 to 6915
T000 to T119
C000 to C119
DM0000 to
DM1999
TM00 to TM29
#TM00 to
#TM29
DM0000 to
DM1999
TM00 to TM31
#00000 to
#65535
$0000 to
$FFFF
#TM00 to
#TM29
DM0000 to
DM1999
TM00 to TM31
#00000 to
#65535
$0000 to
$FFFF
#TM00 to
#TM29
3.6 to 6.0
13.0 to 15.0
25.0 to 29.0
10.0 to 46.0
22.0 to 60.0
9.0 to 99.0
21.0 to 113.0
14.0 to 68.0
26.0 to 82.0
13.0 to 65.0
25.0 to 79.0
15.0 to 68.0
27.0 to 82.0
17.0 to 71.0
29.0 to 85.0
22.0 to 79.0
34.0 to 93.0
5 (6)
1 (4)
1 (11)
3 (5)
3 (12)
3 (5)
3 (12)
3 (5)
3 (12)
3 (5)
3 (12)
3 (5)
3 (12)
3 (5)
3 (12)
3 (5)
3 (12)
Writes constant into
data memory.
Converts trimmer
rotation angle into 0
to 249 and inputs it
into internal register.
Inputs value specified
by operand into
internal register or
inputs current value
when T/C is specified
as operand.
Transfers content of
internal register to
location specified by
operand, or changes
preset value when T/
C is specified as
operand.
Compares content of
internal register and
value specified by
operand.
Adds content of
internal register and
value specified by
operand and inputs
result back to same
register.
Subtracts value
specified by operand
from content of
register and inputs
result back to same
register.
Multiplies content of
internal register by
value specified by
operand and inputs
result back to same
register.
Divides content of
internal register by
value specified by
operand and inputs
result back to same
register.
3-136
3-138
3-140
3-140
3-146
3-150
3-150
3-150
3-150
< DW >
DMmmmm
nnnn
< TMIN >
n
↑ TMIN >
n
< LDA >
nnnn
↑ LDA >
nnnn
< STA >
nnnn
↑ STA >
nnnn
< CMP >
nnnn
↑ CMP >
nnnn
< ADD >
nnnn
↑ ADD >
nnnn
< SUB >
nnnn
↑ SUB >
nnnn
< MUL >
nnnn
↑ MUL >
nnnn
< DIV >
nnnn
↑ DIV >
nnnn
KVNKA Chap 02_1&2&3P.p65
08.3.11, 11:53 AM
48