6 arc tangent (atn) – Yaskawa MP900 Series Motion Programming Manual User Manual
Page 164

4.6 Basic Functions
4 -31
4.6.6 ARC TANGENT (ATN)
J
Overview
The ATN command returns the arc tangent of integer or real number data as the operation re-
sult. Double integer data cannot be used.
J
Description
Designation Method
MW00100=ATN(MW00101);
MW00100=ATN(100);
MF00200=ATN(MF00202);
Data Types
Bit (B)
Integer (W)
Double Integer
(L)
Real Number
(F)
Constant
No
Yes
No
Yes
Yes
J
Programming Examples
Type
Motion Program
Ladder Logic Program
B
−
−
W
MW00102=ATN(MW00100);
MW00100 ATN
⇒
MW00102
L
−
−
F
DF00202=ATN(DF00200);
DF00200
ATN
⇒
DF00202
The input units and output results are different for in teger and real number data.
D
Integer Data
Integer data can be used within a range of −327.68 to 327.67 degrees. The immediately
preceding operation result (integer data) is used as the input, and the operation result is
returned in an integer register (input unit 1 = 0.01 degrees). The operation result is multi-
plied by 100 before being output.
D
Real Number Data
The command uses the immediately preceding operation result (real number data) as in-
put, and returns the arc tangent in a real number register.
4
A
EXAMPLE
"