7-236
7.12 Special Function Instructions
7.12.5 TAN operation on floating-point data (single precision)
TAN
7.12.5
TAN operation on floating-point data (single precision)
TAN
Function
(1) Evaluates the tangent function on the angle specified for
, and stores the result to the
device specified for
.
(2) The angle specified for
is set in radians (degrees
/ 180).
For conversion between degrees and radians, refer to the RAD(P) and DEG(P) instructions.
(3) When the angle specified for
is
/2 radians, or (3/2)
radians, evaluation differences
are generated for the radian value, but it does not cause an operation error.
TAN(P)
P: Executing condition
:
indicates any of the following
instructions.
TAN
TANP
Input argument,
EN:
Executing condition
:Bit
s:
Angle data on which the tangent function is evaluated
:Single-precision real/ANY32
Output argument,
ENO:
Execution result
:Bit
d:
Operation result
:Single-precision real/ANY32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
E
Others
Bit
Word
Bit
Word
−
−
−
−
−
−
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
T
A
N
EN
ENO
s
d
T
A
N
(EN,
s
, d);
ENO:=
s
d
s
d
s
d
Floating-point real
number
TAN
(
)
Floating-point real
number
s
s
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......