262
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
Subtracting BCD 4-digit data
B-(P) [when two operands are set]
These instructions perform subtraction between the two sets of BCD 4-digit data specified.
■Execution condition
■Description, range, data type
■Applicable devices
• These instructions subtract the BCD 4-digit data in the device specified by (s) from the 32-bit binary 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 264 B-(P) [when three operands are set])
FBD/LD
Not supported
( Page 264 B-(P) [when three operands are set])
Instruction Execution condition
B-
B-P
Operand Description Range Data type Data type (label)
(s) Subtrahend data or the device where subtrahend data is
stored
0 to 9999 BCD 4-digit ANY16
(d) Device where minuend 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)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(d) (s) (d)
0 6 78 02 34 04 44
-
Filled with 0s.