6. BASIC INSTRUCTIONS
6
−
25
MELSEC-A
6.2.6 BCD 8-digit addition, subtraction
(DB+, DB+P, DB-, DB-P)
Available Device
Bit device
Word (16-bit) device
Constant
Pointer
Level
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
In
d
e
x
M9012 (M9010, M9011)
(S)
O O O O O O O O O O O O O O O O
(D)
O O O O O O O O O O O O O
(S1)
O O O O O O O O O O O O O O O O
(S2)
O O O O O O O O O O O O O O O O
(D1)
O O O O O O O O O O O O O
K1
to
K8
O
O
Function DB+
(1) Performs the addition of BCD data specified at (D) and the BCD data specified
at (S), and stores the addition result into the device specified at (D).
(2) Performs the addition of BCD data specified at (S1) and the BCD data specified
at (S2), and stores the addition result into the device specified at (D1).
Applicable
CPU
All CPUs
(S)
(D)
(S)
(D)
P
Addition/subtraction commands
(S)
Addend/subtrahend or
head device number stor-
ing addend/subtrahend
(D)
Head device number
storing augend/minuend
(S1)
Augend/minuend or head
device number storing au-
gend/minuend
(S2)
Addend/subtrahend or
head device number stor-
ing addend/subtrahend
(D1)
Head device number
which will store the opera-
tion result
Setting data
DB+, DB-
Indicates the instruction symbol.
Addition/subtraction commands
(S1)
(D1)
(S1)
(D1)
P
(S2)
(S2)
Digits higher than the specified digit are regarded as 0.
Digits higher than the specified digit are regarded as 0.
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......