DMC-40x0 Command Reference
#MCTIME
• 163
#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
Содержание DMC-40x0 Series
Страница 2: ......
Страница 4: ......
Страница 10: ...vi i Table of Contents DMC 40x0 Command Reference This Page is Left Blank Intentionally ...