Galil Motion Control optcom Page 143
Optima DMC-1xxx and DMC-18x2 Command Reference
#MCTIME
i
132
#MCTIME
FUNCTION: MC command timeout automatic subroutine
DESCRIPTION:
#MCTIME runs when the MC command is used to wait for motion to be complete, and the
actual position TP does not reach or pass the target _PA + _PR within the specified
timeout TW.
USAGE:
While Moving
Yes
In a Program
Yes
Command Line
No
Controller Usage
ALL
RELATED COMMANDS:
MC
Wait for motion complete trip point
TW
MC
timeout
EXAMPLES:
#BEGIN ;'Begin main program
TWX=1000 ;'Set the time out to 1000 ms
PRX=10000 ;'Position relative
BGX ;'Begin motion
MCX ;'Motion Complete trip point
EN ;'End main program
#MCTIME ;'Motion Complete Subroutine
MG "X fell short" ;'Send out a message
EN1 ;'End subroutine
NOTE: An application program must be executing for the automatic subroutine to function, which
runs in thread 0.
NOTE: Use EN to end the routine