EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
489
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Floating-point Math Instructions
3
SINQ/COSQ/TANQ
z 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.
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 ±∞ or 0.
The following diagram shows the relationship between the input data and result.
R+1 R
S
S+1TAN
Source (32-bit floating-point data)
Result (32-bit floating-point data)
3
2
π
2
π
2
3
2
ππ
2 π−π
0
1
1
π 2 π
S
R
R: Result (tangent)
S: Angle (radian) data

Table of Contents

Related product manuals