8: B
INARY
A
RITHMETIC
I
NSTRUCTIONS
8-16
FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
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
Out of the range between 0 to 4,294,967,295
L (long)
1
Out of the range between –2,147,483,648 to 2,147,483,647
F (float)
1
See the figure below.
M8003
Execution Result
Value
1
0
Overflow (out of the range between –3.402823
10
38
and 3.402823
10
38
)
1
0
Not zero (within the range between –1.175495
10
–38
and 1.175495
10
–38
)
0
0
Zero
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
D1
D100
S1
D0
I0
SUM(W)
ADD
S2
4
SOTU
1
D0
(0001h)
2
D1
(0002h)
3
D2
(0003h)
4
D3
(0004h)
10
(0000000Ah)
D100·D101
D1
D100
S1
D0
I0
SUM(W)
XOR
S2
4
SOTU
261
D0
(0105h)
758
D1
(02F6h)
775
D2
(0307h)
1032
D3
(0408h)
1276
D100
(04FCh)
Summary of Contents for microsmart pentra
Page 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Page 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...