Atan (arc tangent), Function, N is an unsigned integer – Yaskawa LEGEND-MC User Manual
Page 79
Advertising
69
LEGEND-MC User’s Manual
@ATAN (Arc Tangent)
[Function]
DESCRIPTION:
@TAN returns the arc tangent, in degrees, 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
-1
In a Program
Yes
Maximum n value
1
Not in a program
Yes
Default Value
---
Can be Interrogated
No
Default Format
---
Used as an Operand
Yes
Distributed Control
No, Local
#TEST
Program TEST
MG @ATAN[VAR1]
Set variable
VAR1=.707
Display the arc sine of .707
VAR2=@ATAN[VAR1]+5
Perform calculation
EN
End of program
Advertising