ATAN

ATAN, ATANP

 

ATAN instruction computes the arc tangent of source and saves the Radian result in the Destination.

(It supports only in XP and PLC-S CPU series)

 

S

Source

D

Destination in radians

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

ATAN

ATANP

S

o

o

o

o

o

-

-

-

-

o

o

o

-

3

o

-

-

D

o

-

o

o

o

-

-

-

-

o

o

o

-

 

When enabled, the ATAN instruction computes the arc tangent of source and saves the result in Destination (in radians).

 

 

  • The range of source : -1.0 ~ 1.0

  • The result is saved in the Destination (in radians)

(Please refer to RAD or DEG instruction for more details)

 

Example)

If M00 is ON, the ATAN calculates the arc tangent of D100 and saves the result in D90 (Radian value).

The DEG instruction converts Radian value D90 to float value and saves its value to D80.

The INT instruction converts float value D80 to BCD value and saves its value to D70.