Tangent: Tan - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Floating-point Math Instructions
5-24-13 TANGENT: TAN(––)
Limitations
Description
364
Ladder Symbols
TAN(−−)
@TAN(−−)
S
R
000
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.
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.)
TAN
S+1
R+1
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.
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
S
IR, SR, AR, DM, EM, HR, LR
R
Third operand: Always 000
000
Source (32-bit floating-point data)
S
Result (32-bit floating-point data)
R
R
Section 5-24
Operand Data Areas
S: First source word
R: First result word
−−−
S: Angle (radian) data
R: Result (tangent)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents