Optima DMC-1xxx and DMC-18x2 Command Reference
AM
i
20
AM
FUNCTION: After Move
DESCRIPTION:
The AM 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. Any combination of axes or a motion sequence may be specified with the AM
command. For example, AM AB waits for motion on both the A and B axis to be complete. AM
with no parameter specifies that motion on all axes is complete.
ARGUMENTS: AM nnnnnnnnnn
where
n is A,B,C,D,E,F,G,H,S or T or any combination to specify the axis or sequence
No argument specifies to wait for after motion on all axes and / or sequences
USAGE: DEFAULTS:
While Moving
Yes
Default Value
0
In a Program
Yes
Default Format
1.0
Command Line
Yes*
Controller Usage
ALL CONTROLLERS
RELATED COMMANDS:
"BG "
_BGn contains a 0 if motion complete
"
MC
"
"Motion Complete"
EXAMPLES:
#MOVE Program
MOVE
PR 5000,5000,5000,5000 Position relative moves
BG A
Start the A-axis
AM A
After the move is complete on A,
BG B
Start the B-axis
AM B
After the move is complete on B,
BG C
Start the C-axis
AM C
After the move is complete on C
BG D
Start the D-axis
AM D
After the move is complete on D
EN
End of Program
Hint: AM is a very important command for controlling the timing between multiple move sequences.
For example, if the A-axis is in the middle of a position relative move (PR) you cannot make a position
absolute move (PAA, BGA) until the first move is complete. Use AMA to halt the program sequences
until the first profiled motion is complete. AM tests for profile completion. The actual motor may still
be moving. To hault program sequence until the actual physical motion has completed, use the MC
command. Another method for testing motion complete is to check for the internal variable _BGn,
being equal to zero.(see "BG (Binary AO)" on page 35)