EasyManua.ls Logo

Mitsubishi MELSEC QCPU - BCD 8-Digit Addition and Subtraction Operations (DB+, DB+P, DB-, DB-P)

Mitsubishi MELSEC QCPU
285 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 - 32 6 - 32
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.2.6 BCD 8-digit addition and subtraction operations (DB+, DB+P, DB-, DB-P)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
S
D
[Instruction Symbol] [Execution Condition]
indicates the signs DB+ or DB-
Command
Command
P
S D
DB+
DB -
DB+P
DB - P
S D
[Set Data]
Set Data Meaning Data Type
S
Addition or subtraction data, or head number of device storing addition or
subtraction data
D
Data to be added to or subtracted from, or head number of device storing
such data
BCD 8-digit
[Functions]
DB
+
(1) Adds the BCD 8-digit data designated by
D
and the BCD 8-digit data designated by
S
, and
stores the result of the addition at the device designated by
D
.
+
0032345690871068
(Upper 4 digits)
(Lower 4 digits)
01 194524
+1+1 +1
Digits higher than those which were
designated will be read as 0.
D SD S D D
(Upper 4 digits)
(Lower 4 digits)
(Upper 4 digits)
(Lower 4 digits)
(2) The values for
S
and
D
can be between 0 to 99999999 (BCD 8-digit data).
(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.
+ 10 65432199 000000 00 654321
DB-
(1) Subtracts the BCD 8-digit data designated by
D
and the BCD 8-digit data designated by
S
,
and stores the result of the subtraction at the device designated by
D
.
0032345690871068
(Upper 4 digits)(Lower 4 digits)
9 547612
+1+1 +1
Digits higher than those which were
designated will be read as 0.
D SD S D D
0
(Upper 4 digits)(Lower 4 digits) (Upper 4 digits)(Lower 4 digits)
-
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals