Subtracting 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

Subtracting BCD 4-digit data

B-(P) [when two operands are set]
RnPCPU
RnCPU RnENCPU
(Process)
These instructions perform subtraction between the two sets of BCD 4-digit data specified.
Ladder
(s)
FBD/LD
Not supported
( Page 264 B-(P) [when three operands are set])
■Execution condition
Instruction
B-
B-P
Setting data
■Description, range, data type
Operand
Description
(s)
Subtrahend data or the device where subtrahend data is
stored
(d)
Device where minuend data is stored
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s)
(d)
Processing details
• 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).
(d)
0
6
7
8
-
• If an underflow occurs, the result will be as follows. In this case, SM700 does not turn on.
0
0
0
1
-
6 BASIC INSTRUCTIONS
262
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)
0
2
3
4
Filled with 0s.
0
0
0
3
ST
Not supported
( Page 264 B-(P) [when three operands are set])
Range
0 to 9999
0 to 9999
U\G, J\,
Z
U3E\(H)G
(d)
0
4
4
4
9
9
9
8
Data type
BCD 4-digit
BCD 4-digit
Double word Indirect
specification
LT, LST,
LZ
LC
Data type (label)
ANY16
ANY16
Constant
Others
K, H E
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents