Welcome! Log In Create A New Profile

Advanced

Receive OK Message only when Movement is complete

Posted by Shishir 
Receive OK Message only when Movement is complete
November 16, 2017 06:07PM
"OK" message is received even before the movement is complete. Any idea, how to make sure that this is received only when the movement is completed ? Facing issue in circle of larger radius. It seems motor is still running but OK message is received .

I actually want "OK" message to receive only when movement is completed.

void process_next_command() {

// This method in marlin actually process the command and at last it sends "OK" message . How to make sure "ok_to_send();" is called only when the movement is complete without hindering any next command in queue.
...........
ok_to_send();
}
Re: Receive OK Message only when Movement is complete
November 16, 2017 09:13PM
That is not how it works

The sending program will not send the next command till OK is received
If you wait till each move is completed to send the OK then the buffer on the controller would always be empty, this would make the machine very very slow especially for any small moves (such as approximating curves)

you can append a M400 after particular moves [reprap.org] if your really need such things


NB none of these things will affect the size of anything

Edited 2 time(s). Last edit at 11/16/2017 09:19PM by Dust.
Sorry, only registered users may post in this forum.

Click here to login