Determining if an axis is moving
-
I am sending individual commands using the serial port. Is there a way to determine if an axis is moving or has reached its destination?
-
Not really "determine", but an M400 after the original command will not execute any more commands until the planner queue is empty and moves have completed.
This may accomplish what you want in a different way.
-
You could use M408 to poll the status, waiting for the status to be idle. But sending M400 and waiting for the OK response may be simpler.
-
Thank you for both replies. M400 will give me what I need though I can see a use for M408. Is there a recommend poll frequency?
-
@ct said in Determining if an axis is moving:
Thank you for both replies. M400 will give me what I need though I can see a use for M408. Is there a recommend poll frequency?
No more than 4 times/second.
-
Thanks for the information.