Adding Bcd 4-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 4-digit data

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents