Tangent (tan) -30, 3 tangent (tan) ! ! ! ! outline, Detailed explanation – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual
Page 162: Program example

MotionSuite™ Series Machine Controller Motion Programming Manual
Chapter 4: Sequence Commands
4-30
4.6.3
Tangent (TAN)
!
!
!
! Outline
The TAN command uses a designated variable and constant (unit: degree) as an input, and
leaves the tangent in the real number register.
!
!
!
! Detailed Explanation
Command Method
Data Type
$ = Yes
× = No
!
!
!
! Program Example
Example: Calculate the tangent of input value (
θ=45°): TAN (θ)=1.0.
Supplement
The TAN command can only be used for real number data. When a bit, integer, and 32-bit
integer are designated, an error occurs during compilation.
Bit (B)
Integer (W)
32-bit Integer (L)
Real (F)
Constant
×
×
×
$
$
Type
Motion Program
Ladder Program
B
—
—
W
—
—
L
—
—
F
DF00202
=
TAN(DF00200);
MF00100=TAN(MF00102);
MF00200=TAN(1.0);
DF00200
TAN
⇒DF00202
DF00102=TAN(DF00100);
(1.0)
(45.0)