Command Descriptions
201
MC
Preset/Continuous Mode Enable
Type
Motion
Syntax
<a_><!>MC<b>
Units
n/a
Range
b = 0 (preset mode) or 1 (continuous mode)
Default
0
Response
MC: *MC0
See Also
A, AD, COMEXC, COMEXS, D, FOLMD, [ FS ], FSHFC, FSHFD, GO,
GOBUF, K, MA, PSET, S, TFS, V
Product Rev
GT6K 6.0
GV6K 6.0
The
MC
command causes subsequent moves to go a specified distance (
MCØ
), or a specified velocity (
MC1
).
In the Preset Mode (
MCØ
), all moves will go a specific distance. The actual distance traveled is specified by
the
D
,
SCLD
, and
MA
commands.
In the Continuous Mode (
MC1
), all moves will go to a specific velocity with the Distance (
D
) command
establishing the direction (
D+
or
D-
). The actual velocity will be determined by the
V
and
SCLV
commands,
or the
V
and
DRES
commands.
Motion will stop with an immediate Stop (
!S
) command, an immediate Kill (
!K
) command, or by
specifying a velocity of zero followed by a
GO
command. Motion can also be stopped with a buffered Stop
(
S
) or Kill (
K
) command if the continuous command processing mode (
COMEXC
) is enabled.
ON-THE-FLY CHANGES
: You can change positioning modes
on the fly
(while motion is in progress) in
two ways. One way is to send an immediate command (
!MC
) followed by an immediate go command
(
!GO
). The other way is to enable the continuous command execution mode (
COMEXC1
) and execute a
buffered command (
MC
) followed by a buffered go command (
GO
).
Example:
DEL demo
; Delete program demo
DEF demo
; Begin definition of program demo
COMEXC0
; Disable continuous command processing mode
MA0
; Enable incremental positioning mode
MC0
; Enable preset positioning mode
A20
; Set acceleration to 20 revs/sec/sec
AD7
; Set deceleration to 7 revs/sec/sec
V2
; Set velocity to 2 revs/sec
D10000
; Set distance to 10,000 counts
GO1
; Initiate motion (move 10,000 counts in positive direction)
COMEXC1
; Enable continuous command processing mode
MC1
; Enable continuous positioning mode
A12
; Set acceleration to 12 revs/sec/sec
AD8
; Set deceleration to 8 revs/sec/sec
V5
; Set velocity to 5 revs/sec
GO1
; Initiate motion (travel at a velocity of 5 revs/sec)
T5
; Wait 5 seconds
V9
; Set velocity to 9 revs/sec (when the next GO is executed)
GO1
; Change to the new velocity of 9 revs/sec
T2
; Wait 2 seconds
V0
; Set velocity to zero
GO1
; Go to zero velocity
WAIT(AS.1=b0)
; Wait until no motion is commanded
COMEXC0
; Disable continuous command processing mode
END
; End definition of program demo
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...