3 tangent (tan) – Yaskawa MP900 Series Motion Programming Manual User Manual
Page 161
Advertising

Sequence Commands
4.6.3 TANGENT (TAN)
4 -28
4.6.3 TANGENT (TAN)
J
Overview
The TAN command uses the specified variable or constant (unit = degrees) as input and returns
the tangent in a real number register.
J
Description
Designation Method
MF00100=TAN(MF00102);
MF00200=TAN(1.0);
Data Types
Bit (B)
Integer (W)
Double Integer
(L)
Real Number
(F)
Constant
No
No
No
Yes
Yes
J
Programming Examples
Type
Motion Program
Ladder Logic Program
B
−
−
W
−
−
L
−
−
F
DF00202=TAN(DF00200);
DF00200 TAN
⇒ DF00202
Example: Calculates the tangent of the input value (θ = 45.0 degrees): TAN (θ) = 1.0.
DF00102=TAN(DF00100);
(1.0)
(45.0)
The TAN command can use only real number data. If bits, integers, or double integers are specified, an error will
result at compilation.
4
A
EXAMPLE
"
IMPORTANT
Advertising
This manual is related to the following products: