EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 570

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
537
Double-precision Floating-point Instructions Section 3-15
Description +D(845) adds the double-precision (64-bit) floating-point number in words Ad
to Ad+3 the double-precision (64-bit) floating-point number in words Au to
Au+3 and places the result in words D to D+3. (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) The Error Flag will be turned ON and the instruction will not be executed.
Flags
Precautions The augend (Au to Au+3) and Addend (Ad to Ad+3) 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.
NaN See note 2.
S1+3
S2+3
+
S1
S2
D+3 D
S1+1
S2+1
D+1
S1+2
S2+2
D+2
Augend (floating-point data, 64-bits)
Addend (floating-point data, 64-bits)
Result (floatin
g
-point data, 64-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 + is to –.
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 double-precision floating-point value.
Underflow Flag UF ON if the absolute value of the result is too small to be
expressed as a double-precision floating-point value.
Negative Flag N ON if the result is negative.
OFF in all other cases.

Table of Contents

Related product manuals