Writing custom g-code
April 24, 2015 09:49PM
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.
Re: Writing custom g-code
April 24, 2015 11:18PM
You could try using G4, which is code for "dwell". A dwell is the same thing as a delay.
Re: Writing custom g-code
April 25, 2015 03:37AM
M400 should do what you need, it waits for all queued moves to complete. If that doesn't work for you, try G4 S1 which delays for 1ms.

Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login