EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-A series

Mitsubishi MELSEC-A series Programming Manual

Mitsubishi MELSEC-A series
508 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 #134 background imageLoading...
Page #134 background image
6. BASIC INSTRUCTIONS
6 22
MELSEC-A
6.2.5 BCD 4-digit addition, subtraction
(B+, B+P, B-, B-P)
Available Device
Bit device Word (16-bit) device Constant Pointer
Level
Carry
flag
Error
flag
X Y M L S B F T C D W R A0 A1 Z V K H P I N
Digit specification
Index
M9012 (M9010, M9011)
(S) O O O O O O O O O O O O O O O O O O
(D) O O O O O O O O O O O O O O O
(S1) O O O O O O O O O O O O O O O O O O
(S2) O O O O O O O O O O O O O O O O O O
(D1) O O O O O O O O O O O O O O O
K1
to
K4
O O
Functions B+
(1) Performs the addition of BCD data specified at (D) and the BCD data specified
at (S), and stores the addition result into the device specified at (D).
(2) Performs the addition of BCD data specified at (S1) and the BCD data specified
at (S2), and stores the addition result into the device specified at (D1).
(3) At (S), (S1), (S2) and (D), 0 to 9999 (BCD 4 digits) can be specified.
(4) Even if the addition result exceeds 9999, the carry flag does not turn on and the
carry digit is ignored.
Applicable
CPU
All CPUs
(S) (D)
(S) (D)
P
Addition/subtraction commands
(S)
Addend/subtrahend or
head device number stor-
ing addend/subtrahend
(D)
Head device number
storing augend/minuend
(S1)
Augend/minuend or head
device number storing au-
gend/minuend
(S2)
Addend/subtrahend or
head device number stor-
ing addend/subtrahend
(D1)
Head device number
which will store the
operation result
Setting data
B+, B-
Indicates the instruction symbol.
Addition/subtraction commands
(S1) (D1)
(S1) (D1)
P
(S2)
(S2)

Table of Contents

Other manuals for Mitsubishi MELSEC-A series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-A series and is the answer not in the manual?

Mitsubishi MELSEC-A series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-A series
CategoryController
LanguageEnglish

Related product manuals