![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030642.webp)
602
Floating-point Math Instructions
Section 3-15
Description
+F(454) adds the 32-bit floating-point number in Ad+1 and Ad to the 32-bit
floating-point number in Au+1 and Au and places the result in R+1 and R.
(The floating point data must be in IEEE754 format.)
If the absolute value of the result is greater than the maximum value that can
be expressed as floating-point data, the Overflow Flag will turn ON and the
result will be output as
±∞
.
If the absolute value of the result is less than the minimum value that can be
expressed as floating-point data, the Underflow Flag will turn ON and the
result will be output as 0.
The various combinations of augend and addend data will produce the results
shown in the following table.
Note
1.
The results could be zero (including underflows), a numeral, +
∞
, or –
∞
.
2.
With CJ1H-CPU
@@
H-R CPU Units, an undetermined value will be output.
3.
The Error Flag will be turned ON and the instruction will not be executed.
Flags
Precautions
The augend (Au+1 and Au) and Addend (Ad+1 and Ad) data must be in
IEEE754 floating-point data format.
Augend
Addend
0
Numeral
+
∞
–
∞
NaN
0
0
Numeral
+
∞
–
∞
Numeral
Numeral
See note 1.
+
∞
(See note 2.)
–
∞
(See note 2.)
+
∞
+
∞
+
∞
(See note 2.)
+
∞
See note 3.
–
∞
–
∞
–
∞
(See note 2.)
See note 3.
–
∞
NaN
See note 3.
R+1
R
+
Au
Au+1
Ad
Ad+1
Result (floating-point data, 32 bits)
Augend (floating-point data, 32 bits)
Addend (floating-point data, 32 bits)
Name
Label
Operation
Error Flag
ER
ON if the augend or addend data is not recognized as
floating-point data.
ON if the augend or addend data is not a number (NaN).
ON if +
∞
and –
∞
are added.
OFF in all other cases.
Equals Flag
=
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
Overflow Flag
OF
ON if the absolute value of the result is too large to be
expressed as a 32-bit floating-point value.
Underflow Flag
UF
ON if the absolute value of the result is too small to be
expressed as a 32-bit floating-point value.
Negative Flag
N
ON if the result is negative.
OFF in all other cases.
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...