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

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

Advertisement

B+(P),B-(P)
6.2.5

BCD 4-digit addition and subtraction operations (B+(P),B-(P))

B+(P),B-(P)
B+(P), B-(P)
When two data are set (
B+, B
B+P, B P
Setting
Data
S
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-34
+
,
D
S
D
D
Command
Command
: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored
S
(BCD 4 digits)
: Head number of the devices where the data to be added to/subtracted from is stored (BCD 4 digits)
D
Internal Devices
R, ZR
Bit
Word
D
5
6
7
8
1
6
4
3
2
3
D
0
6
7
8
0
High
Basic
performance
-
)
S
D
indicates an instruction symbol of
S
P
S
J
\
U
\G
Bit
Word
and the BCD 4-digit data designated by
D
.
D
S
D
2
3
4
6
9
and
.
S
D
5
8
3
0
0
and the BCD 4-digit data designated by
S
D
S
2
3
4
0
4
Digits exceeding the designated
number of digits are assumed to be 0.
and
.
S
D
Process
Redundant Universal
LCPU
B+/B
.
D
D
Constants
Zn
Other
K, H
––
––
––
, and
S
1
2
1
5
D
.
D
4
4
,

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents