EasyManuals Logo

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #205 background imageLoading...
Page #205 background image
203
DB+, DB+P, DB-, DB-P
1
2
3
4
6
7
8
6.2 Arithmetic Operation Instructions
6.2.6 DB+, DB+P, DB-, DB-P
When three data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))
: Data to be added to/subtracted from or head number of the devices where the data to be added to/subtracted from is stored (BCD 8 digits)
:
Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored (BCD 8 digits)
:
Head number of the devices where the addition/subtraction operation result is stored (BCD 8 digits)
Function
DB+
(1) Adds the BCD 8-digit data designated by and the BCD 8-digit data designated by , and stores the result of the
addition at the device designated by .
(2) 0 to 99999999 (BCD 8 digits) can be assigned to , and .
(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 the BCD 8-digit data designated by , and stores the result of the
subtraction at the device designated by .
(2) 0 to 99999999 (BCD 8 digits) can be assigned to , and .
(3) The following will result if an underflow is generated by the subtraction operation:
The carry flag in this case does not go ON.
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
––
–– ––
S1 S1
S2 S2
D D
S1 S1
S2 S2
D D
Command
Command
P
S1 S2
D
S1 S2
D
DB+, DB-
DB+P, DB-P
DB+/DBindicates an instruction symbol of .
S1
S2
D
S1
S2
D
S1
S2
D
+
10234
5
67
(Upper 4 digits) (Lower 4 digits)
6
5
789123
(Upper 4 digits) (Lower 4 digits)
8
5
023690
(Upper 4 digits) (Lower 4 digits)
+1+1 +1
Digits exceeding the designated number
of digits are assumed to be 0.
S1 S1 S2
D D
S2
S1
S2
D
1065432199 000000 00654321
S1
S2
D
10 234567
(Upper 4 digits) (Lower 4 digits)
65789123
(Upper 4 digits) (Lower 4 digits)
546
(Upper 4 digits) (Lower 4 digits)
+1+1 +1
Digits exceeding the designated
number of digits are assumed to be 0.
S1 S1 S2
D D
S2
555 55
S1
S2
D
21 34567921345678 99 999999

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals