Parker Automation Gemini GV6K Command Reference Manual page 53

Servo drive/controller
Table of Contents

Advertisement

Example:
VARB1=ASX
; Extended Axis status assigned to binary variable 1
VARB2=ASX.3
; Extended Axis status bit 3 assigned to binary variable 2
VARB2
; Response if bit 3 is set to 1:
; "*VARB2=XX1X_XXXX_XXXX_XXXX_XXXX_XXXX_XXXX_XXXX"
IF(ASX=b101XXXXX)
; If the extended axis status contains 1's
; for bits 1 and 3, and a 0 for bit location 2, do the
; IF statement
TREV
; Transfer revision level
NIF
; End if statement
[ ATAN() ]
Arc Tangent
Type
Operator (Trigonometric)
Syntax
VARi=ATAN(r)
Units
r = real number
0.00000 to ±999,999,999
Range
Default
none
Response
n/a
See Also
[=], [COS], [PI], RADIAN, [SIN], [TAN], VAR
The
operator is used to calculate the inverse
ATAN
tangent of a real number. If "
of a point on a circle of radius "
measure "θ" can be defined by the equation:
a
θ = arctan
.
b
The result of the
command will either be in
ATAN
degrees or radians, depending on the
command.
To convert radians to degrees, use the formula:
360° = 2π radians.
Syntax: VARi=ATAN(r) where i is the variable number and r is a real number value. Parentheses ( () ) must be
used with the ATAN command. The result will be specified to 2 decimal places in either radians or
degrees.
Example:
RADIAN1
; Enable radian mode
VAR1=ATAN(0.75)
; Set variable 1 equal to the inverse tangent of 0.75 radians
BAUD
Baud Rate
Type
Communication Interface
Syntax
BAUD<i>
Units
i = Baud rate
Range
i = 1200, 2400, 4800, 9600, 19200, 38400, or 115200 (COM2
only)
Default
9600
Response
BAUD
*BAUD9600
See Also
ADDR, E, PORT
NOTE: The baud rate for the "RS-232/485" (COM1) serial port is fixed at 9600 baud, and is not adjustable by the
BAUD command.
BAUD establishes the baud rate for the "RS-232" (COM2) serial port, as selected by the last PORT command. The
default is 9600 baud (BAUD9600). The BAUD setting is automatically saved in battery backed RAM. NOTE:
Changing the baud rate for the "RS-232" port will result in a loss of communication until the baud rate of the terminal
is changed accordingly.
" and "
" are coordinates
a
b
r
", then the angle of
RADIAN
www.comoso.com
Product
GT6K
GV6K
y
θ =
sin
r
θ
cos
a
x
b
θ =
tan
Product
GT6K
GV6K
Command Descriptions
Rev
6.0
6.0
a
r
b
θ =
r
a
b
Rev
6.0
6.0
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents