# My printer unloads the filament, after I finished the print

I have an Artillery Hornet printer that I am very satisfied with. I make my models in Blender, export them as STL files, and import them into Cura slicer. Everything works great with no problems, mostly. But yesterday, I made a model that I used a reference image in Blender (deleted it before exporting then). And when I printed it, direct afterward, the printer unloads the filament. I tried to print it multiple times and every time it did the same. No big problem then, but a bit annoying.

Does anyone have any idea what could cause this, and how to prevent it? Other models I make in Blender have not given me that result then. I still have not tried making other models with a reference image to compare the result. So I found this place first and try to ask if someone knows about that problem.

This is the end G-code:

G1 E-6 F9000
M104 S0 T0 ; turn off temperature
M140 S0 ; turn off bed
G1 X110 Y220 F10000
M84 ; disable motors

• Can you share a link to the G-code, e.g. posted on PasteBin.com?
– 0scar
Aug 2 at 13:41
• Can you clarify what you mean by "unloads"? Does it just back out slightly, or eject the filament entirely so it's hanging loose? Aug 2 at 15:04
• The problem was solved by the answer from Peter K. I just disabled the part of end code. It rejected the filament entirely after printing. Not all models, but 1 i made. So i still wonder if disable that part of code, got any negative impact on printing other models. So far it works perfect then. Aug 2 at 16:33
• @mathias Nice that the answer solved it for you, please accept the answer by selecting the tick mark. Our community is built on reputation, please acknowledge the time and effort that is taken to produce the answer. Voting is key! Thanks! P.S. please add the final lines of G-code from the file into your question.
– 0scar
Aug 3 at 7:58
• Thanks. Just edited it and added the original end G-code Aug 3 at 13:24

• I bet the problem is that this was supposed to be a relative move of -6 mm (retract just enough to prevent oozing while cooling down) but the extruder was in absolute mode and it went back to a position of -6 relative to where it was at the start of the print. Instead of removing that line, put M83 on a line before it and M82 on a line after it so it's a relative move. Aug 2 at 16:58