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

2.1 Instruction List
Visual KV Series
3-38
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.
2.1.3
Arithmetic Instructions
Instruction
Symbol
Mnemonic
Operand
Operand value
Function
Exec.time
(
µ
s)
Bytes
Page
DATA
MEMORY
WRITE
TRIMMER
SETTING
LOAD A
STORE A
COMPARE
ADD
SUBTRACT
MULTIPLY
DW
TMIN
(FUN 50)
@TMIN
@(FUN 50)
LDA
(FUN 23)
@LDA
@(FUN 23)
STA
(FUN 42)
@STA
@(FUN 42)
CMP
(FUN 04)
@CMP
@(FUN 04)
ADD
(FUN00)
@ADD
@(FUN 00)
SUB
(FUN 46)
@SUB
@(FUN 46)
MUL
(FUN 28)
@MUL
@(FUN28)
nnnn:
#/$ constant
DMmmmm:
DM No.
Trimmer No.
R No.,
C/T No.,
DM No,
TM xx,
#/$ constant,
#TMxx
R No.,
C/T No.,
DM No.,
TM xx,
#TMxx
DM/TM No.
TMxx,
#/$ constant,
#TMxx
nnnn:
#0000 to
#65535
$0000 to
$FFFF
DMmmmm:
DM0000 to
DM1999
0 to 1
0000 to 17915
T000 to T249
C000 to C249
CTH0 to CTH1
DM0000 to
DM1999
TM00 to TM31
#00000 to
#65535
$0000 to $FFFF
#TM00 to
#TM29
0500 to 1915
2100 to 17915
T000 to T249
C000 to C249
CTH0 to
CTC3
DM0000 to
DM1999
TM00 to TM29
#TM00 to
#TM29
DM0000 to
DM1999
TM00 to TM31
#00000 to
#65535
$0000 to
$FFFF
#TM00 to
#TM29
8.0
8.9
20.9
6.4 to 14.0
18.4 to 26.0
6.6 to 28.5
18.0 to 40.5
10.8 to 35.6
22.8 to 47.6
9.4 to 34.2
21.4 to 46.2
10.8 to 35.6
22.8 to 47.6
14.4 to 38.1
26.4 to 50.1
5 (8)
1 (6)
1 (16)
3 (8)
3 (18)
3 (8)
3 (18)
3 (6)
3 (16)
3 (6)
3 (16)
3 (6)
3 (16)
3 (6)
3 (16)
Writes constant into data
memory.
Inputs value set by
access window’s digital
trimmer (0 to 65535) to
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.
3-136
3-138
3-140
3-140
3-150
3-150
nnnn
DMmmmm
DW
n
TMIN
n
TMIN
nnnn
LDA
nnnn
LDA
nnnn
STA
nnnn
STA
nnnn
CMP
nnnn
CMP
nnnn
ADD
nnnn
ADD
nnnn
SUB
nnnn
SUB
nnnn
MUL
nnnn
MUL
3-150
3-146
KVNKA Chap 02_1&2&3P.p65
08.3.11, 11:52 AM
38