Omron CS1G/H-CPUxxH Instructions Manual page 564

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
TAN(462) calculates the tangent of the angle (in radians) expressed as a 32-
bit floating-point value in S+1 and S and places the result in R+1 and R.
(The floating point source data must be in IEEE754 format.)
TAN
S+1
R+1
Specify the desired angle (–65,535 to 65,535) in radians in S+1 and S. If the
angle is outside of the range –65,535 to 65,535, an error will occur and the
instruction won't be executed. For information on converting from degrees to
radians, see 3-15-9 DEGREES TO RADIANS: RAD(458).
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 angle 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
Operation
ON if the source data is not a number (NaN).
ON if the absolute value of the source data exceeds
65,535.
OFF in all other cases.
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
OFF
OFF
ON if the result is negative.
OFF in all other cases.
Section 3-15
S: Angle (radian) data
R: Result (tangent)
543

Advertisement

Table of Contents
loading

Table of Contents