Do Mcode commands not use the queue?

From the original Synthetos forum (2011–2025)

Started by chorizo on in TinyG Support. 1 reply, last activity Aug 2, 2016.

#

I'm trying to get my TinyG based pick and place machine to work with OpenPnP. All of the movement is working fine, but I run into trouble whenever I try to do something that uses Mcode. I have my vacuum (for picking and placing) connected to the spindle and coolant outputs of my TinyG board, and when I try to run a process that involves controlling the vacuum, the Mcode commands are sent all at once, before the machine gets a chance to move.

OpenPnP has the option to set what response to wait for before sending a new command. I would normally set it to "qr:32", but Mcode commands either don't use the queue, or don't prompt a queue report. OpenPnP suggests using the board's "ok" response, but the TinyG sends "ok>" when it receives a command and when it finishes one, so that wouldn't work.

My question is: is there any response from the TinyG that indicates the completion of both Gcode and Mcode commands?

Staff #

I assume you are familiar with the tinyG wiki content, such as

https://github.com/synthetos/TinyG/wiki/Tinyg-Communications-Programming

You might also want to browse about in the Chilipeppr forums. Chilipeppr has a command execution tracker, which I believe is tied to Gcode line (block ) numbers and status reports. Chilipeppr implements a dynamic tinyG buffer fill based flow control.

You might want to repost this item over at

https://github.com/synthetos/TinyG/issues

It is closer to developers. I suggest you add some comments about your serial flow control strategy.

Additionally, I assume you have tried a general search on the topic of PNP and tinyG. I have seen several folks discussing projects similar to yours, but I'm not sure how they might relate to use of OpenPNP.

This topic is from the original forum (August 2016). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.