![Parker Automation Gemini GV6K Command Reference Manual Download Page 278](http://html1.mh-extra.com/html/parker-automation/gemini-gv6k/gemini-gv6k_command-reference-manual_3701373278.webp)
276
Gemini GV6K/GT6K Command Reference
[ 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
Product Rev
GT6K 6.0
GV6K 6.0
The
TAN
operator is used to calculate the tangent of
a number given in radians or degrees (see the
RADIAN
command). If "
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:
tan =
a
b
θ
If a value is given in radians and a conversion is
needed to degrees, use the following formula:
360° = 2
π
radians.
Syntax:
VARx=TAN(r)
, where
x
is the numeric
variable number and
r
is a value in either radians or
degrees depending on the
RADIAN
command.
Parentheses (
()
) must be placed around the
TAN
operand. The result will be specified to 5 decimal
places.
y
x
r
b
a
θ
sin
θ =
a
r
cos
θ =
b
r
tan
θ =
a
b
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
+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
1TANI.10
*-4.663
See Also
ANIRNG, [ ANI ], [ FB ], TFB,
Product Rev
GT6K 6.0
GV6K 6.0
The
TANI
command returns the voltage level present at the ANI analog inputs. The value reported with the
TANI
command is measured in volts.
If you omit the brick number, the value of the onboard analog input (
ANI.1
) will be reported. To determine
the analog value from a specific input on an external I/O brick, use the bit select operator (.). For example,
to check the voltage of the 2
nd
analog input on the 3
rd
SIM (I/O location 18) of I/O brick 2, use the
2TANI.18
command. To understand more about the location of I/O points on external I/O bricks, see page
8
.
The
TANI
value is derived from the voltage applied to the corresponding analog input and ground. The
analog value is determined from a 12-bit analog-to-digital converter (ADC). Under the default ANI voltage
range, set with
ANIRNG
, the range of the
ANI
operator is -10.000VDC to +10.000VDC (see
ANIRNG
command for optional voltage ranges).
www.comoso.com
Summary of Contents for Gemini GV6K
Page 24: ...www comoso com...
Page 40: ...www comoso com...
Page 344: ...www comoso com...
Page 350: ...www comoso com...