Parker Automation Gemini GV6K Command Reference Manual page 278

Servo drive/controller
Table of Contents

Advertisement

[ TAN( ) ]
Tangent
Type
Operator (Trigonometric)
Syntax
... TAN(r) (See below)
Units
r = radians or degrees depending on RADIAN command
Range
±17500.0000000 radians
Default
n/a
Response
n/a
See Also
[ ATAN ], [ COS ], [ PI ], RADIAN, [ SIN ], VAR
The
operator is used to calculate the tangent of
TAN
a number given in radians or degrees (see the
command). If "
" and "
a
RADIAN
of a point on a circle of radius "
measure "θ" can be defined by the equation:
a
θ
tan
=
b
If a value is given in radians and a conversion is
needed to degrees, use the following formula:
360° = 2π radians.
Syntax:
, where
VARx=TAN(r)
variable number and
is a value in either radians or
r
degrees depending on the
RADIAN
Parentheses (
) must be placed around the
()
operand. The result will be specified to 5 decimal
places.
Example:
VAR1=5 * TAN(PI/4)
; Set variable 1 = 5 times the tangent of Pi divided by 4
TANI
Transfer Analog Input Voltage
Type
Transfer
Syntax
<a_><!><@><B>TANI<.i>
Units
B = I/O brick
i = location on I/O brick
Range
i = 1-32
Default
n/a
Response
1TANI
*1TANIx,x,x,x,x,x,x,x
1TANI.10 *-4.663
See Also
ANIRNG, [ ANI ], [ FB ], TFB,
The
command returns the voltage level present at the ANI analog inputs. The value reported with the
TANI
command is measured in volts.
TANI
If you omit the brick number, the value of the onboard analog input (
the analog value from a specific input on an external I/O brick, use the bit select operator (.). For example,
nd
to check the voltage of the 2
command. To understand more about the location of I/O points on external I/O bricks, see page
2TANI.18
8.
The
value is derived from the voltage applied to the corresponding analog input and ground. The
TANI
analog value is determined from a 12-bit analog-to-digital converter (ADC). Under the default ANI voltage
range, set with
, the range of the
ANIRNG
command for optional voltage ranges).
276
Gemini GV6K/GT6K Command Reference
" are coordinates
b
r
", then the angle of
is the numeric
x
command.
TAN
+5.802,-4.663,-4.972, +6.023,+2.126,+2.223, ...
x,x,x,x,x,x,x,x
x,x,x,x,x,x,x,x
rd
analog input on the 3
SIM (I/O location 18) of I/O brick 2, use the
operator is -10.000VDC to +10.000VDC (see
ANI
www.comoso.com
Product
GT6K
GV6K
y
r
θ
a
x
b
Product
GT6K
GV6K
) will be reported. To determine
ANI.1
ANIRNG
Rev
6.0
6.0
a
θ =
sin
r
b
θ =
cos
r
a
θ =
tan
b
Rev
6.0
6.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents