IDEC MICROSmart FC6A Series Ladder Programming Manual page 174

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

7: B
A
INARY
RITHMETIC
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.
Data Type
D (double word)
L (long)
F (float)
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.
M8003
Execution Result
1
1
0
M8003
Execution Result
Examples: SUM
• Data Type: Word
SUM(W)
SOTU
ADD
I0
SUM(W)
SOTU
XOR
I0
7-16
I
NSTRUCTIONS
M8003
1
Exceeds the range between 0 to 4,294,967,295
1
Exceeds the range between –2,147,483,648 to 2,147,483,647
1
See the figure below.
0
Overflow (exceeds the range between –3.402823×10
0
Not zero (within the range between –1.175495×10
0
Zero
Overflow
1
×
38
–3.402823
10
S1
S2
D1
D0
4
D100
S1
S2
D1
D0
4
D100
FC6A S
MICROS
ERIES
MART
Execution Result
Not Zero
0
1
0
1
×
–38
–1.175495
10
0
1.175495
1
D0
(0001h)
2
D1
(0002h)
3
D2
(0003h)
4
D3
(0004h)
261
D0
(0105h)
758
D1
(02F6h)
775
D2
(0307h)
1032
D3
(0408h)
XOR Operation
XOR
D100
L
P
M
ADDER
ROGRAMMING
ANUAL
Value
38
38
and 3.402823×10
–38
–38
and 1.175495×10
0
×
–38
10
3.402823
D100·D101
1276
D100
(04FCh)
D0
(0105h)
0000 0001 0000 0101
D1
(02F6h)
0000 0010 1111 0110
D2
(0307h)
0000 0011 0000 0111
D3
(0408h)
0000 0100 0000 1000
(04FCh)
0000 0100 1111 1100
FC9Y-B1726
)
)
Overflow
1
×
38
10
10
(0000000Ah)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents