AM |
Syntax: | Accepts Axis Mask & Trippoint |
| Operands: | none | |
| Burn: | not burnable | |
After Move | Hardware: | DMC40x0 DMC41x3 DMC21x3 DMC18x6 DMC18x2 DMC300x0 |
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.
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 halt 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 command).
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 | Value |
|---|---|
| While Moving | Yes |
| In a Program | Yes |
| Command Line | No |
| Controller Usage | All |
| Default Value | N/A |
| Default Format | N/A |
_BGn contains a 0 if motion complete
BG - Begin Motion
MC - Motion Complete
#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