Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 520

Table of Contents

Advertisement

3. Instructions
TAN
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.)
T AN
S+1
R+1
Specify the desired angle (-65,535 to 65,535) in radians in S+1 and S.
For information on converting from degrees to radians, see 3-15-22 LOGARITHM: LOG(468)
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.
484
Source (32-bit floating-point data)
S
Result (32-bit floating-point data)
R
R
S: Angle (radian) data
R: Result (tangent)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
.

Advertisement

Table of Contents
loading

Table of Contents