DMC-1400 Series Command Reference AM 21
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. AM occurs when the profiler is finished generating the last position
command. However, the servo motor may not be in the final position. Use TE to verify
position error for servos, or use the MC trippoint to wait until final actual position is
recorded.
ARGUMENTS: AM
USAGE:
While Moving Yes Default Value ---
In a Program Yes Default Format ---
Command Line Yes
Can be Interrogated No
Used as an Operand No
Controller Usage ALL
RELATED COMMANDS:
BG (_BG returns a 0 if motion complete)
MC Actual Motion Complete (In-Position)
EXAMPLES:
#MOVE Program MOVE
PR 5000 Position relative moves
BG Start
AM After the move is complete
EN End of Program
#F;DP 0 Program F
PR 5000 Position relative moves
BG Start
AM After motion complete on all axes
MG "DONE";TP Print message
EN End of Program
HINT: AM is a very important command for controlling the timing between multiple move sequences.
For example, if the motor is in the middle of a position relative move (PR) you cannot make a position
absolute move (PA, BG) until the first move is complete. Use AM to halt the program sequences until
the first motion is complete. AM tests for profile completion. The actual motor may still be moving.
Another method for testing motion complete is to query the operand, _BG. This is equal to 1 during
motion, and 0 when motion profiling is complete.