Mitsubishi MELSEC Q Series Programming Manual page 238

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

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents