mash3d
Posts: 9
Joined: Tue Aug 04, 2015 9:50 am

End code scripting

I've noticed that currently when the print is fished the extruder head just stays on top of the object.
I don]t think it's doing any harm but I'd like it to move out of the way as a last step.
under the ending script I added the following lines

G91 (switches to relative coordinates)
G1 F150 (Linear move and slow movement rate down to 2.5mm/sec for Z axis)
G1 Z5 (move Z up by 5mm)
G90 (go back to absolute positioning)
M104 S0 ; turn off extruder
M140 S0 ; turn off bed
M84 ; disable motors

I'm still getting a small bit of extrusion happening after wards which is leaving a small blob and a bit of PLA stringing. Is there any changes I can make to prevent this? other than turning off the extruder. first?
Thanks,
BaudR8
Posts: 183
Joined: Fri Aug 29, 2014 9:59 am

Re: End code scripting

Depending on your printer, a lot of people like to home their axes right as the print finishes. For example, regular cartesian printers, many people like to home the X axis, or the Y- axis or maybe even both so:

G28 X0 Y0

and for delta's people like to home all towers, by doing:
G28
Aha
Posts: 64
Joined: Sun Jul 28, 2013 10:58 am

Re: End code scripting

Thanks for that code; that's exactly what I was looking for when I randomly ran across it!

I would think that the answer would be to "de-suck" and pull the extruder back a few mm to suck filament back up. While the hot end is still on you'll get blobbing, but I'd guess pulling back .5 mm or so before you raise the Z axis might stop some of it.

Return to “General Discussion and Tips”