Mitsubishi MELSEC-Q/L Programming Manual page 205

Table of Contents

Advertisement

When three data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))
DB+, DB-
DB+P, DB-P
: 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)
S1
: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored (BCD 8 digits)
S2
: Head number of the devices where the addition/subtraction operation result is stored (BCD 8 digits)
D
Setting
Internal Devices
Data
Bit
Word
S1
S2
D
Function
DB+
(1) Adds the BCD 8-digit data designated by
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
subtraction at the device designated by
(2) 0 to 99999999 (BCD 8 digits) can be assigned to
(3) The following will result if an underflow is generated by the subtraction operation:
The carry flag in this case does not go ON.
S1
S1
S2
S2
D
Command
Command
J
\
R, ZR
Bit
and the BCD 8-digit data designated by
S1
.
D
S1
S1
S2
+1
+1
(Upper 4 digits) (Lower 4 digits)
(Upper 4 digits) (Lower 4 digits)
5
6
7 8 9 1 2 3
+
0
1
Digits exceeding the designated number
of digits are assumed to be 0.
,
S1 S2
9
9
0 0 0 0 0 0
0
1
and the BCD 8-digit data designated by
S1
.
D
S1
+1
S1
S2
+1
(Upper 4 digits) (Lower 4 digits)
(Upper 4 digits) (Lower 4 digits)
5
6
7 8 9 1 2 3
0
1
Digits exceeding the designated
number of digits are assumed to be 0.
,
S1 S2
1
2
3 4 5 6 7 8
1
2
D
S1
S1
S2
S2
D
indicates an instruction symbol of
S1
P
S1
U
\G
Word
S2
D
+1
(Upper 4 digits) (Lower 4 digits)
2 3 4 5 6 7
5
8
0 2 3 6 9 0
and
.
D
6 5 4 3 2 1
0
0
6 5 4 3 2 1
S2
D
+1
(Upper 4 digits) (Lower 4 digits)
2 3 4 5 6 7
5
5 5 5
4
and
.
D
3 4 5 6 7 9
9
9
9 9 9 9 9 9
DB+, DB+P, DB-, DB-P
D
DB+/ DB
.
S2
D
S2
D
Constants
Zn
Other
K, H
––
, and stores the result of the
S2
D
, and stores the result of the
S2
D
5 5
6
1
2
3
4
––
––
––
6
7
8
203

Advertisement

Table of Contents
loading

Table of Contents