Atan (arc tangent), Function – Yaskawa SMC–4000 User Manual

Page 75

Advertising
background image

65

SMC–4000 User Manual

@ATAN (Arc Tangent)

[Function]

DESCRIPTION:

@ATAN returns the arc tangent, in degrees between 90 and -90, of a number or variable which is inserted
in square brackets. Note that the @ATAN command is a function, which means that it does not follow the
convention of other commands, and does not require the underscore when used as an operand.

ARGUMENTS: @ATAN [n]

where

n is an unsigned integer

USAGE:

EXAMPLES:

While Moving

Yes

Minimum n value

-2147483647

In a Program

Yes

Maximum n value

2147483647

Not in a program

Yes

Default Value

---

Can be Interrogated

No

Default Format

---

Used as an Operand

Yes

#TEST

Program TEST

MG @ATAN[VAR1]

Display the arc tangent of .707

VAR1=.707

Set variable

VAR2=@ATAN[VAR1]+5

Perform calculation

EN

End of program

Advertising