Command Descriptions
51
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
Range
0.00000
to
±
999,999,999
Default
none
Response
n/a
See Also
[=],
[COS],
[PI],
RADIAN,
[SIN],
[TAN],
VAR
Product Rev
GT6K 6.0
GV6K 6.0
The
ATAN
operator is used to calculate the inverse
tangent of a real number. 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:
θ =
arctan
a
b
.
The result of the
ATAN
command will either be in
degrees or radians, depending on the
RADIAN
command.
To convert radians to degrees, use the formula:
360° = 2
π
radians.
y
x
r
b
a
θ
sin
θ =
a
r
cos
θ =
b
r
tan
θ =
a
b
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
Product Rev
GT6K 6.0
GV6K 6.0
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.
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...