DMC-100/1500 Command Reference
MC
•
93
DMC-1000
DMC-1500
MC
FUNCTION:
Motion Complete - "In Position"
DESCRIPTION:
The MC command is a trippoint used to control the timing of events. This command will hold
up execution of the following commands until the current move on the specified axis or
axes is completed and the encoder reaches or passes the specified position. Any
combination of axes or a motion sequence may be specified with the MC command. For
example, MC XY waits for motion on both the X and Y axis to be complete. MC with no
parameter specifies that motion on all axes is complete. TW x,y,z,w sets the timeout to
declare an error if the encoder is not in position within the specified time. If a timeout
occurs, the trippoint will clear and the stopcode will be set to 99. An application program
will jump to the special label #MCTIME.
When used in stepper mode, the controller will hold up execution of the proceeding commands
until the controller has generated the same number of steps as specified in the commanded
position. The actual number of steps that have been generated can be monitored by using the
interrogation command TD. Note: The MC command is useful when operating with stepper
motors since the step pulses can be delayed from the commanded position due to the stepper
motor smoothing function, KS.
ARGUMENTS:
MC XYZW MC ABCDEFGH where
X,Y,Z,W specifies X,Y,Z or W axis or sequence. No argument specifies that motion on
all axes is complete.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Can be Interrogated
No
Used as an Operand
No
RELATED COMMANDS:
BG Begin
AM After
Move
TW Timeout
EXAMPLES:
#MOVE
Program MOVE
PR 5000,5000,5000,5000 Position relative moves
BG X
Start the X-axis
MC X
After the move is complete on X,
BG Y
Start the Y-axis
MC Y
After the move is complete on Y,
BG Z
Start the Z-axis
MC Z
After the move is complete on Z
BG W
Start the W-axis