PatrickBroch
Posts: 2
Joined: Tue Nov 04, 2014 7:39 am

adding a retraction at starting G-code

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?
Attachments
Starting G-code.PNG
Starting G-code.PNG (10.94 KiB) Viewed 11380 times
User avatar
KeyboardWarrior
Posts: 480
Joined: Thu Jun 19, 2014 5:02 pm

Re: adding a retraction at starting G-code

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;
dsegel
Posts: 159
Joined: Tue Sep 30, 2014 5:37 pm

Re: adding a retraction at starting G-code

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?
User avatar
dhylands
Posts: 17
Joined: Thu Oct 23, 2014 2:08 am
Location: Shuswap, BC, Canada
Contact: Website

Re: adding a retraction at starting G-code

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)
habloIngles
Posts: 80
Joined: Wed Aug 27, 2014 6:48 pm

Re: adding a retraction at starting G-code

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!
User avatar
dhylands
Posts: 17
Joined: Thu Oct 23, 2014 2:08 am
Location: Shuswap, BC, Canada
Contact: Website

Re: adding a retraction at starting G-code

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)

Return to “Troubleshooting and Bug Reports”