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