16
●
AB
DMC-40x0 Command Reference
AB
FUNCTION:
Abort
DESCRIPTION:
AB (Abort) stops a motion instantly without a controlled deceleration. If there is a program
operating, AB also aborts the program unless a 1 argument is specified. The command, AB,
will shut off the motors for any axis in which the off on error function is enabled (see
command OE).
AB aborts motion on all axes in motion and cannot stop individual axes.
ARGUMENTS:
AB n
where
n = 0 The controller aborts motion and program
n = 1 The controller aborts motion only
No argument will cause the controller to abort the motion and program
USAGE: DEFAULTS:
While Moving
Yes
Default Value
---
In a Program
Yes
Default Format
---
Command Line
Yes
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_AB gives state of Abort Input, 1 inactive and 0 active.
RELATED COMMANDS:
SH Re-enables
motor
Specifies Off On Error
EXAMPLES:
AB
;'Stops motion
OE 1,1,1,1
;'Enable off on error
AB
;'Shuts off motor command and stops motion
#A
;
'Label - Start of program
JG
20000
;
'Specify jog speed on X-axis
BG
X
;
'Begin jog on X-axis
WT
5000
;
'Wait 5000 msec
AB
1
;
'Stop motion without aborting program
WT
5000
;
'Wait 5000 milliseconds
SH
;
'Servo Here
JP
#A
;
'Jump to Label A
EN
;
'End of the routine
Hint: Remember to use the parameter 1 following AB if you only want the motion to be aborted.
Otherwise, your application program will also be aborted.
Содержание DMC-40x0 Series
Страница 2: ......
Страница 4: ......
Страница 10: ...vi i Table of Contents DMC 40x0 Command Reference This Page is Left Blank Intentionally ...