EasyManua.ls Logo

Omron CQM1H - PROGRAM - Tangent: tan

Omron CQM1H - PROGRAM
602 pages
Print Icon
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...
364
Floating-point Math Instructions Section 5-24
5-24-13 TANGENT: TAN(––)
Limitations The source data in S+1 and S must be in IEEE754 floating-point data format.
DM 6143 to DM 6655 cannot be used for R.
Description When the execution condition is OFF, TAN(––) is not executed. When the exe-
cution condition is ON, TAN(––) calculates the tangent of the angle (in radi-
ans) 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 for-
mat.)
Specify the desired angle (–65,535 to 65,535) in radians in S+1 and S. If the
absolute value of the angle exceeds 65,535, an error will occur and the
instruction won’t be executed. For information on converting from degrees to
radians, see 5-24-9 DEGREES TO RADIANS: RAD(––).
If the absolute value of the result is greater than the maximum value that can
be expressed as floating-point data, the Overflow Flag (SR 25404) will turn
ON and the result will be output as
±∞.
The following diagram shows the relationship between the angle and result.
S: First source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
R: First result word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols
Operand Data Areas
Third operand: Always 000
−−−
TAN(−− )
S
R
000
@TAN(−− )
S
R
000
R+1 R
S
Source (32-bit floating-point data)
S+1
Result (32-bit floating-point data)
TAN
S: Angle (radian) data
R: Result (tangent)
R

Table of Contents

Related product manuals