503
Floating-point Math Instructions Section 3-14
The source data must be between –1.0 and 1.0. If the absolute value of the
source data exceeds 1.0, an error will occur and the instruction will not be
executed.
The result is output to words R+1 and R as an angle (in radians) within the
range of 0 to
π.
The following diagram shows the relationship between the input data and
result.
Flags
Precautions The source data in S+1 and S must be in IEEE754 floating-point data format.
3-14-16 ARC TANGENT: ATAN(465)
Purpose Calculates the arc tangent of a 32-bit floating-point number and places the
result in the specified result words. (The arc tangent function is the inverse of
the tangent function; it returns the angle that produces a given tangent value.)
Ladder Symbol
R
S: Input data (cosine value)
R: Result (radians)
Name Label Operation
Error Flag ER ON if the source data is not recognized as floating-point
data.
ON if the source data is not a number (NaN).
ON if the absolute value of the source data exceeds 1.0.
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 OFF
Underflow Flag UF OFF
Negative Flag N ON if the result is negative.
OFF in all other cases.
S
R
ATAN(465)
S: First source word
R: First result word