Command Descriptions
329
comparison against a hexadecimal value, the letter h (h or H) must be placed in front of the value. The
hexadecimal value itself must only contain the letters A through F, or the numbers Ø through 9.
Syntax:
VARBn=US
where “
n
” is the binary variable number,
or
US
can be used in an expression such as
IF(US=b11Ø1)
, or
IF(US=h7)
All 16 bits of the user status word are defined with the
INDUST
command. Each bit can correspond to an
axis status bit, a system status bit, or an input.
You can use the bit select (
.
) operator to assign only one bit of the user status value to a binary variable,
instead of all 16. For example,
VARB1=US.12
assigns user status bit 12 to binary variable 1.
Example:
VARB1=US
; User status assigned to binary variable 1
VARB2=US.12
; User status bit 12 assigned to binary variable 2
VARB2
; Response, if bit 12 is set to 1, will be:
; *VARB2=XXXX_XXXX_XXX1_XXXX_XXXX_XXXX_XXXX_XXXX
IF(US=b111011X11)
; If the user status contains 1's in bit locations
; 1, 2, 3, 5, 6, 8, and 9, and a 0 in bit location 4,
; do the IF statement
TREV
; Transfer revision level
ELSE ;
Else
IF(US=h7F00)
; If the user status contains 1's in bit locations
; 1, 2, 3, 5, 6, 7, and 8, and 0's in every other bit
; location, do the IF statement
TSTAT
; Transfer statistics
NIF
; End of second IF statement
NIF
; End of first IF statement
V
Velocity
Type
Motion
Syntax
<a_><!>V<r>
Units
r = units/sec
(linear motors: see DMEPIT for linear/rotary conversion)
Range
Stepper Axes:
0.0000-60.0000 (after conversion to revs/sec)
Servo Axes: 0.0000-200.0000 (after conversion to revs/sec;
if ERES > 10,000, maximum = 2,000,000/ERES)
Default
1.0000
Response
V: *V1.0000
See Also
DMEPIT, GO, MC, SCALE, SCLV, TSTAT, TVEL, TVELA, [ V ],
[ VEL ], [ VELA ], VF
Product Rev
GT6K 6.0
GV6K 6.0
The Velocity (
V
) command defines the speed at which the motor will run when given a
GO
command. The
motor will attempt to accelerate at a predefined acceleration rate (
A
), before reaching the velocity
specified (
V
).
The velocity remains set until you change it with a subsequent velocity command. Velocities outside the
valid range are flagged as an error, with a message
*INVALID
DATA-FIELD
x
, where
x
is the field number.
When an invalid velocity is entered the previous velocity value is retained.
The
V
command value may be used in variable (
VARI
) assignments, and in
IF
and
WAIT
conditional
statements. In addition,
VARI
variables may be substituted for the
V
command value.
UNITS OF MEASURE
and
SCALING
: refer to page
16
.
ON-THE-FLY CHANGES
: While running in the continuous mode (
MC1
), you can change velocity
on the
fly
(while motion is in progress) in two ways. One way is to send an immediate velocity command (
!V
)
followed by an immediate go command (
!GO
). The other, and more common, way is to enable the
continuous command execution mode (
COMEXC1
) and execute a buffered velocity command (
V
) followed
by a buffered go command (
GO
).
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...