I have a script written to specify the shape of an object to be made from paste. In order to extrude the paste I have the syringe hooked up to an air tank, and am using the M106/M107 commands to start/stop extruding. I wrote the code to stop extruding after each layer so that the paste does not pool while the z-axis is turning. My problem is that the stop extrude commands are being executed before the printer finishes the moves written before the M107 (the stop command). If I can put some sort of delays between the final moves and the stop command maybe it could fix the issue, but at the moment I dont know if there are such commands.
Any ideas? Thanks for any input.