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?