270
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
Subtracting BCD 8-digit data
DB-(P) [when two operands are set]
These instructions perform subtraction between the two sets of BCD 8-digit data specified.
■Execution condition
■Description, range, data type
■Applicable devices
• These instructions subtract the BCD 8-digit data in the device specified by (s) from the BCD 8-digit data in the device
specified by (d), and store the operation result in the device specified by (d).
• If an underflow occurs, the result will be as follows. In this case, SM700 does not turn on.
Ladder ST
Not supported
( Page 272 DB-(P) [when three operands are set])
FBD/LD
Not supported
( Page 272 DB-(P) [when three operands are set])
Instruction Execution condition
DB-
DB-P
Operand Description Range Data type Data type (label)
(s) Subtrahend data or the start device where subtrahend data
is stored
0 to 99999999 BCD 8-digit ANY32
(d) Minuend data or the start device where minuend data is
stored
0 to 99999999 BCD 8-digit ANY32
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)
(d)+1, (s)+1: Upper 4 digits
(d), (s): Lower 4 digits
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(d)(d)+1 (s)(s)+1 (d)(d)+1
-
0032345690 871068 90 547612
Filled with 0s.
2134567921 345678 99 999999
-