Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 519

Table of Contents

Advertisement

TANQ
TANQ(477) 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
• Specify the desired angle (-65,535 to 65,535) in radians in S+1 and S.
For information on converting between degrees and radians, see 3-15-9 DEGREES TO RADIANS:
RAD(458) and 3-15-10 RADIANS TO DEGREES: DEG(459).
• If the angle is outside of the range -65,535 to 65,535, an unpredictable value will be output, but the
Error Flag will not be turned ON.
• If the absolute value of the result is greater than the maximum value that can be expressed as
floating-point data, the result will be output as
The following diagram shows the relationship between the input data and result.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
S+1
S
R+1
R
R
1
0
3
2
2
2
1
Source (32-bit floating-point data)
Result (32-bit floating-point data)
or 0.
S
3
2
2
2
S: Angle (radian) data
R: Result (tangent)
3. Instructions
3
481

Advertisement

Table of Contents
loading

Table of Contents