EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 576

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...
543
Double-precision Floating-point Instructions Section 3-15
Description /D(848) divides the double-precision (64-bit) floating-point number in words
Dd to Dd+3 by the double-precision (64-bit) floating-point number in words Dr
to Dr+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 dividend and divisor data will produce the results
shown in the following table.
Note (1) The results could be zero (including underflows), a numeral, +
, or –.
(2) The results will be zero for underflows.
(3) The Error Flag will be turned ON and the instruction will not be executed.
Flags
Precautions The Dividend (Dd to Dd+3) and Divisor (Dr to Dr+3) data must be in IEEE754
floating-point data format.
Dividend
Divisor 0 Numeral + NaN
0 See note 3. +/– +
Numeral 0 See note 1. +/– +/–
+ 0 See note 2. See note 3. See note 3.
0 See note 2. See note 3. See note 3.
NaN See note 3.
S1+1
S2+1
÷
S1
S2
D+1 D
S1+2
S2+2
D+2
S1+3
S2+3
D+3
Dividend (floating-point data, 64-bits)
Divisor (floating-point data, 64-bits)
Result (floatin
g
-point data, 64-bits)
Name Label Operation
Error Flag ER ON if the dividend or divisor data is not recognized as
floating-point data.
ON if the dividend or divisor is not a number (NaN).
ON if the dividend and divisor are both 0.
ON if the dividend and divisor are both + or –.
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