EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 520

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...
487
Floating-point Math Instructions Section 3-14
Description –F(455) subtracts the 32-bit floating-point number in Su+1 and Su from the
32-bit floating-point number in Mi+1 and Mi 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 minuend and subtrahend 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
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area Mi Su R
Minuend
Subtrahend 0 Numeral + NaN
0 0 Numeral +
Numeral Numeral See note 1. +
+ See note 2.
+ + + See note 2.
NaN See note 2.
R+1
R
Mi
Mi+1
Su
Su+1
Result (floating-point data, 32 bits)
Subtrahend (floating-point data, 32 bits)
Minuend (floating-point data, 32 bits)
Name Label Operation
Error Flag ER ON if the minuend or subtrahend data is not recognized
as floating-point data.
ON if the minuend or subtrahend is not a number (NaN).
ON if + is subtracted from +.
ON if – is subtracted from –.
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.

Table of Contents

Related product manuals