Arc tangent (atn) -33, 6 arc tangent (atn) ! ! ! ! outline, Detailed explanation – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 165: Program example

Advertising
background image

MotionSuite™ Series Machine Controller Motion Programming Manual

Chapter 4: Sequence Commands

4-33

4.6.6

Arc Tangent (ATN)

!

!

!

! Outline

The ATN command leaves the arc tangent of the integer number and real number data as a
calculation result. The 32-bit integer number data cannot be used.

!

!

!

! Detailed Explanation

Command Method

Data Type

$ = Yes

× = No

!

!

!

! Program Example

Input unit and output results vary depending on the integer number and real
number data.
• Integer Number

It is used within a range of -327.68

°~327.67°. Use an immediate calculation

result (integer number data) as an input, and leave the calculation result in
the integer number register (1 input unit = 0.01

°). The calculation result is

output by multiplying by 100

°.

• Real Number

Use an immediate calculation result (real number data) as an input, and leave
the inverse tangent in the real number register (unit: degree).

Bit (B)

Integer (W)

32-bit Integer (L)

Real (F)

Constant

×

$

×

$

$

Type

Motion Program

Ladder Program

B

W

MW00102=ATN(MW00100);

L

F

DF00202

=

ATN(DF00200);

MW00100=ATN(MW00102);
MW00100=ATN(100);
MF00200=ATN(MF00202);

MW00100

ATN

⇒MW00102

DF00200

ATN

⇒DF00202

Advertising