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

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS

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

Internal Devices
Set
(System, User)
Data
Bit
Word
S
D
[Instruction Symbol] [Execution Condition]
B+, B -
B+P, B - P
[Set Data]
Set Data
S
D
[Functions]
B +
(1) Adds the BCD 4-digit data designated by
stores the result of the addition at the device designated by
(2) The values for
(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
6 - 28
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
Command
Command
Addition or subtraction data, or head number of device storing addition or
subtraction data
Data to be added to or subtracted from, or head number of device storing
such data
D
5
6
7
8
+
1
and
can be between 0 to 9999 (BCD 4-digit).
S
D
6
4
3
2
+
3
D
-
0
6
7
8
0
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
indicates the signs B+ or B-
P
Meaning
and the BCD 4-digit data designated by
D
D
S
D
2
3
4
6
9
5
8
3
0
0
and the BCD 4-digit data designated by
D
D
S2
2
3
4
0
4
Digits higher than those which were designated
will be read as 0.
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
K, H
Zn
S
D
S
D
Data Type
BCD 4-digit
S
.
1
2
1
5
.
D
4
4
6 - 28
Q4AR
Other
, and
,
S

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents