Can someone tell me how to set one of the GPIO pins to indicate that the queue is empty (or not empty)?
Many thanks.
Imported from wikidot
Can someone tell me how to set one of the GPIO pins to indicate that the queue is empty (or not empty)?
Many thanks.
Imported from wikidot
Hello.
There is no code in Smoothie to do that.
What do you need it for exactly ?
If you want this to exist, you are going to have to add some code, is this something you are ready to do ?
Cheers.
I’m sending G-Codes to the smoothie with a microcontroller and I would like to have a better idea of what my machine is doing at any given time. My thought was that if I know the buffer is empty then I would know that all the commands have been executed. Is there a better way to do this? I could probably add some code if I put my mind to it.
Thanks.
There is definitely a much much better way to do this.
Simply send your gcode, then for your very last commend, send “M400”. “M400” will not answer “ok” until all gcodes have finished executing.
Very simple
Perfect! Thanks so much.