Adding Bcd 8-Digit Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Adding BCD 8-digit data

DB+(P) [when two operands are set]
RnPCPU
RnCPU RnENCPU
(Process)
These instructions add the two sets of BCD 8-digit data specified.
Ladder
(s)
FBD/LD
Not supported
( Page 268 DB+(P) [when three operands are set])
■Execution condition
Instruction
DB+
DB+P
Setting data
■Description, range, data type
Operand
Description
(s)
Second addend data or the start device where the second
addend data is stored
(d)
Start device where the first addend data is stored
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s)
(d)
Processing details
• These instructions add the BCD 8-digit data in the device specified by (d) and the BCD 8-digit data in the device specified
by (s), and store the operation result in the device specified by (d).
(d)+1
(d)
0
9
8 7 1 0 6 8
+
(d)+1, (s)+1: Upper 4 digits
(d), (s): Lower 4 digits
• If the result exceeds 99999999, the carry bit is ignored. In this case, SM700 does not turn on.
+
9
9
0 0 0 0 0 0
6 BASIC INSTRUCTIONS
266
6.2 Arithmetic Operation Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
(s)+1
(s)
0
0
3 2 3 4 5 6
Filled with 0s.
0
1
6 5 4 3 2 1
ST
Not supported
( Page 268 DB+(P) [when three operands are set])
Range
0 to 99999999
0 to 99999999
U\G, J\,
Z
U3E\(H)G
(d)+1
(d)
1
0
1 9 4 5 2 4
0
0
6 5 4 3 2 1
Data type
BCD 8-digit
BCD 8-digit
Double word Indirect
specification
LT, LST,
LZ
LC
Data type (label)
ANY32
ANY32
Constant
Others
K, H E
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents