Galil Motion Control optcom Page 66
Optima DMC-1xxx and DMC-18x2 Command Reference
@COS[n]
i
55
@COS[n]
FUNCTION: Cosine
DESCRIPTION:
Returns the cosine of the given angle in degrees
ARGUMENTS: @COS[n] where
n is a signed number in degrees in the range of -32768 to 32767, with a fractional resolution
of 16-bit.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
ALL
RELATED COMMANDS:
@ASIN
Arc
sine
@SIN
sine
@ATAN
Arc
tangent
@ACOS
Arc
cosine
@TAN
Tangent
EXAMPLES:
:MG @COS[0]
1.0000
:MG @COS[90]
0.0000
:MG @COS[180]
-1.0000
:MG @COS[270]
0.0000
:MG @COS[360]
1.0000
: