Galil Motion Control manc 18x 6 Page 144
DMC-18x6 Command Reference
136
#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:
Wait for motion complete trip point
timeout
EXAMPLES:
#BEGIN
;
'Begin main program
TW
X
=1000 ;
'Set the time out to 1000 ms
PR
X
=10000 ;
'Position relative
BG
X
;
'Begin motion
MC
X
;
'Motion Complete trip point
EN
;
'End main program
#MCTIME
;
'Motion Complete Subroutine
MG
"X fell short"
;
'Send out a message
EN
1 ;
'End subroutine
NOTE: The automatic subroutine runs in thread 0.
NOTE: Use EN to end the routine