7: B
INARY
A
RITHMETIC
I
NSTRUCTIONS
7-16 FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
Carry and Borrow
In advanced instructions involving D (double word), L (long), or F (floating point) data, special internal relay M8003 (carry and
borrow) is turned on when the execution of the instruction results in the following value.
Carry and Borrow in Floating-Point Data Processing
When advanced instructions involving floating-point data are executed, special internal relay M8003 (carry and borrow) is updated.
Examples: SUM
•Data Type: Word
Data Type M8003 Execution Result
D (double word) 1 Exceeds the range between 0 to 4,294,967,295
L (long) 1 Exceeds the range between –2,147,483,648 to 2,147,483,647
F (float) 1 See the figure below.
M8003 Execution Result Value
1 0Overflow (exceeds the range between –3.402823×10
38
and 3.402823×10
38
)
10Not zero (within the range between –1.175495×10
–38
and 1.175495×10
–38
)
00Zero
0
–1.175495×10
–38
M8003
1 1
1.175495×10
–38
0–3.402823×10
38
0
Execution Result
1
Overflow
0 1
3.402823×10
38
Overflow
Not Zero
XOR Operation
D0 (0105h) 0000 0001 0000 0101
D1 (02F6h) 0000 0010 1111 0110
D2 (0307h) 0000 0011 0000 0111
XOR D3 (0408h) 0000 0100 0000 1000
D100 (04FCh) 0000 0100 1111 1100
1
D0
(0001h)
2
D1
(0002h)
3
D2
(0003h)
4
D3
(0004h)
10
(0000000Ah)
D100·D101
261
D0
(0105h)
758
D1
(02F6h)
775
D2
(0307h)
1032
D3
(0408h)
1276
D100
(04FCh)
D1
D100
S1
D0
I0
SUM(W)
ADD
S2
4
SOTU
D1
D100
S1
D0
I0
SUM(W)
XOR
S2
4
SOTU