Page 1 of 1

adding a retraction at starting G-code

Posted: Tue Nov 04, 2014 8:19 am
by PatrickBroch
Hello,

Is it possible to add a line at de starting gcode wich causes the extruder to retract +10 mm?
I would like the extruder to extrude some filament to fill op the nozzle before homing all axes.

Is there a code for that?

Re: adding a retraction at starting G-code

Posted: Wed Nov 05, 2014 3:24 pm
by KeyboardWarrior
PatrickBroch wrote:Hello,

Is it possible to add a line at de starting gcode wich causes the extruder to retract +10 mm?
I would like the extruder to extrude some filament to fill op the nozzle before homing all axes.

Is there a code for that?
To add retract there 10 mm, you'd simply place

G1 E-10 F225;

If you do this though, I'd recommend changing G1 E3 F225 to G1 E15 F225 and then place a line below that with G92 E0;

Re: adding a retraction at starting G-code

Posted: Wed Nov 05, 2014 11:21 pm
by dsegel
I'm confused - do you want to retract or fill up the nozzle? Or are you planning on putting an E+10 first and then retracting it all?

Re: adding a retraction at starting G-code

Posted: Sat Nov 08, 2014 5:27 pm
by dhylands
In my setup, after the extruders have heated up, I have this:

Code: Select all

G92 E-30    ;reset filament position for priming
G1 F200 E0  ;prime extruder
(for my Bukito)

Re: adding a retraction at starting G-code

Posted: Sat Nov 08, 2014 6:51 pm
by habloIngles
dhylands wrote:In my setup, after the extruders have heated up, I have this:

Code: Select all

G92 E-30    ;reset filament position for priming
G1 F200 E0  ;prime extruder
(for my Bukito)
that's a lot of priming!

Re: adding a retraction at starting G-code

Posted: Sat Nov 15, 2014 3:14 am
by dhylands
Actually, when you take the gcode done at the end of the job:

Code: Select all

G92 E20 ; set filament length for retraction
G1 E0 F10200 ; retract filament for easy removal
it isn't really that much (effectively 10 mm of priming - since the prime does 30mm of advancement and the end of the job does 20mm of retraction)