Acos (arc cosine), Function, N is a number – Yaskawa LEGEND-MC User Manual
Page 66
Advertising
56
LEGEND-MC User’s Manual
@ACOS (Arc Cosine)
[Function]
DESCRIPTION:
@ACOS returns the arc cosine, in degrees, of a number or variable which is inserted in square brackets.
Note that the @ACOS 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: @ACOS [n]
where
n is a number
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
VAR1=.707
Set a variable equal to .707
MG @ACOS[VAR1]
Display the absolute value of VAR1
VAR2=@ACOS[VAR1]+100.404
Perform calculation
EN
End of program
Advertising