Omron CS1G/H-CPUxxH Instructions Manual page 572

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Floating-point Math Instructions
Description
Flags
Precautions
SQRT(466) calculates the square root of the 32-bit floating-point number in
S+1 and S and places the result in R+1 and R. (The floating point source data
must be in IEEE754 format.)
S+1
R+1
The source data must be positive; if it is negative, an error will occur and the
instruction won't be executed.
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 ±∞ .
The following diagram shows the relationship between the input data and
result.
Name
Label
Error Flag
ER
Equals Flag
=
Overflow Flag
OF
Underflow Flag
UF
Negative Flag
N
The source data in S+1 and S must be in IEEE754 floating-point data format.
Source (32-bit floating-point data)
S
Result (32-bit floating-point data)
R
R
S: Input data
R: Result
Operation
ON if the source data is not recognized as floating-point
data.
ON if the source data is negative.
ON if the source data is not a number (NaN).
OFF in all other cases.
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
ON if the absolute value of the result is too large to be
expressed as a 32-bit floating-point value.
OFF
OFF
Section 3-15
551

Advertisement

Table of Contents
loading

Table of Contents