Parker Automation Gemini GV6K Command Reference Manual page 60

Servo drive/controller
Table of Contents

Advertisement

[ COS() ]
Cosine
Type
Operator (Trigonometric)
Syntax
COS(r) (see below)
Units
r = radians or degrees (depending on RADIAN command)
r = 0.00000 - ±17500
Range
Default
n/a
Response
n/a
See Also
[ ATAN ], [ PI ], RADIAN, [ SIN ], [ TAN ], VAR
Use this operator to calculate the
cosine of a number given in radians or
degrees (see
command). If
RADIAN
"
a
" and "
b
" are coordinates of a point
on a circle of radius "
r
", then the angle
of measure "θ" can be defined by the
equation:
b
θ =
(see illustration at right)
cos
r
If a value is given in radians and a
conversion is needed to degrees, or
vice-versa, use the formula:
π
360° = 2
radians
.
Amplitud e
The graph to the right
(y axis)
shows the amplitude of
on the unit circle for
y
different values of
x
.
Syntax:
where
VARi=COS(r)
depending on the
The result will be specified to 5 decimal places.
Example:
VAR1=5 * COS(PI/4)
; Set variable 1 equal to 5 times the cosine of
; π divided by 4
58
Gemini GV6K/GT6K Command Reference
1
0.707
0
π
π
4
2
-0.707
-1
is the variable number and
i
command. Parentheses (
RADIAN
www.comoso.com
y
r
θ
a
b
y = Cos x
π
π
π
π
5
3
3
4
4
2
π
2
is a value in either radians or degrees
r
) must be placed around the
()
Product
Rev
GT6K
6.0
GV6K
6.0
a
θ =
sin
r
b
θ =
cos
r
x
a
θ =
tan
b
π
π
7
2
4
Radians
(x axis)
Radi ans = 360 Degr ees
operand.
COS

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents