Filament prime gcode?

Post your prints with the GCode used to help other users achieve a similar result, or get help.
Posts: 4
Joined: Mon Jun 29, 2015 12:17 pm

Filament prime gcode?

Postby GreggDennison » Wed Sep 23, 2015 8:08 pm

Hey all, I've been looking for a gcode setting for pushing the extruder to one side and extruding some filament before actually printing but have been unsuccessful. Can anyone point me in the right direction or does someone already have this?

User avatar
Posts: 2627
Joined: Sun Mar 31, 2013 1:35 am
Location: Notre Dame area

Re: Filament prime gcode?

Postby Jimustanguitar » Wed Sep 23, 2015 8:37 pm

Cura does this pretty well. Here's an exerpt of the GCode at the beginnings of my prints.

G28 ;Z0 ;move Z to min endstops
G1 Z15.0 F9000 ;move the platform down 15mm
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
G92 E0 ;zero the extruded length again
G1 F9000
;Put printing message on LCD screen
M117 Printing...

And then at the end, it does a similar retract.

;End GCode
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more
G28 ;X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning

Can you parse out what you were looking for from that?

Posts: 4
Joined: Mon Jun 29, 2015 12:17 pm

Re: Filament prime gcode?

Postby GreggDennison » Thu Sep 24, 2015 7:24 pm

I believe so. I use both Cura and Simplify3d. I'm still tweaking the settings with Simplify3d tho.


Posts: 345
Joined: Mon Jan 06, 2014 1:24 am

Re: Filament prime gcode?

Postby stonewater » Fri Sep 25, 2015 11:41 am

on that subject, what Gcode would you add to have the bed heat fully before the nozzle heats. that seems to cause most of my problems, the filament oozing out of the nozzle before printing starts.

Tom C
325 MM carbon arms trick trucks effector mount LED ring heat spreader
V6 Hotend
Robo 3D
Flashforge creator" onclick=";return false; - Bedini experimenter kits, books, DVD's

Posts: 609
Joined: Wed Mar 18, 2015 1:11 am

Re: Filament prime gcode?

Postby IMBoring25 » Fri Sep 25, 2015 6:35 pm

M190 waits for the bed to reach temperature. You can either pass that by itself after setting the desired temp with M140 S* or you can pass an S variable along with M190.

Return to “GCode & Test Prints”

Who is online

Users browsing this forum: No registered users and 1 guest