Galil Motion Control manc 18x 6 Page 66
DMC-18x6 Command Reference
58
@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:
sine
tangent
cosine
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
: