Bcd 8-Digit Addition And Subtraction Operations (Db+(P),Db-(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

DB+(P),DB-(P)
6.2.6
BCD 8-digit addition and subtraction operations
(DB+(P),DB-(P))
DB+(P),DB-(P)
When two data are set ((
DB+, DB-
DB+P. DB-P
Setting
Data
S
D
Function
DB+
(1) Adds the BCD 8-digit data designated by
stores the result of the addition at the device designated by
(2) 0 to 99999999 (BCD 8 digits) can be assigned to
(3) If the result of the addition operation exceeds 99999999, the upper bits will be ignored.
The carry flag in this case does not go ON.
DB-
(1) Subtracts the BCD 8-digit data designated by
and stores the result of the subtraction at the device designated by
6-38
+1,
)+(
D
D
S
Command
Command
: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored
S
(BCD 8 digits)
: Head number of the devices where the data to be added to/subtracted from is stored (BCD 8 digits)
D
Internal Devices
R, ZR
Bit
Word
D
D
S
(Upper 4 digits)(Lower 4 digits)
(Upper 4 digits)(Lower 4 digits)
0
9
8 7 1 0 6 8
0
0
9
9
0 0 0 0 0 0
0
1
D
+1
D
S
(Upper 4 digits) (Lower 4 digits)
(Upper 4 digits) (Lower 4 digits)
8 7 1 0 6 8
0
9
0
0
High
Basic
performance
+1,
) (
+1,
), (
+1,
S
D
D
D
indicates an instruction symbol of
P
J
\
U
\G
Bit
Word
and the BCD 8-digit data designated by
D
.
D
S
D
(Upper 4 digits)(Lower 4 digits)
3 2 3 4 5 6
1
0
1 9 4 5 2 4
Digits exceeding the designated number
of digits are assumed to be 0.
and
.
S
D
6 5 4 3 2 1
0
0
6 5 4 3 2 1
and the BCD 8-digit data designated by
D
+1
S
D
+1
(Upper 4 digits) (Lower 4 digits)
3 2 3 4 5 6
9 5 4 7 6 1 2
0
Digits exceeding the designated number
of digits are assumed to be 0.
Process
Redundant Universal
LCPU
)-(
+1,
) (
+1,
D
S
S
D
D
DB+/DB-
.
S
D
S
D
Constants
Zn
Other
K, H
––
––
––
, and
S
D
.
D
D
))
,
S

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents