<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>G-code for retraction at the end</title>
        <description> After googling for what I need I found this to be the code I need:

G92 E0; set extruder value back to 0
G1 E-1 F100; retract 1mm at speed of 100mms

I will change the amount and speed, but want to know do I need G92 to set the extruder to 0.
I found answers where one says it is needed, and other answers saying, of course, the opposite. 

So which is it? :D</description>
        <link>https://reprap.org/forum/read.php?340,637899,637899#msg-637899</link>
        <lastBuildDate>Fri, 09 Oct 2026 00:42:11 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,640899#msg-640899</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,640899#msg-640899</link>
            <description><![CDATA[ Ormerod and dmould, you are both right. New speed setting was needed. I put F5000 and now everything is as I want it to be ;)]]></description>
            <dc:creator>Sardi</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 17 Mar 2016 13:11:01 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,640358#msg-640358</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,640358#msg-640358</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sardi</strong><br />
New issue.<br />
<br />
This is my g-code<br />
&lt;...&gt;<br />
end<br />
<pre class="bbcode">
M140 S0       ;heated bed heater off
M104 S0       ;extruder heater off
G92 E0 ; set extruder value back to 0
G1 E-15 F300 ;retract 15mm filament speed 300
G1 X0 Y210	; park the machine
M0; stop</pre>
<br />
Now it does the retract of 15mm, but the G1 X0 Y210 is done with the ultra slow speed of 1mms and I dont know what is the cause of that.</div></blockquote>
<br />
Your last command containing a speed was "G1 E-15 F300"  Therefore all speeds thereafter will be at 300mm/m (5mm/s) until you set a new speed.<br />
Thus to move faster you will need another speed in the move command, e.g. "G1 X0 Y210 F6000" to move at 100mm/s.  Or you can put a speed by itself before the move e.g. "G1 F6000"<br />
<br />
Dave]]></description>
            <dc:creator>dmould</dc:creator>
            <category>Ormerod</category>
            <pubDate>Wed, 16 Mar 2016 11:25:31 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,640347#msg-640347</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,640347#msg-640347</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sardi</strong><br />Now it does the retract of 15mm, but the G1 X0 Y210 is done with the ultra slow speed of 1mms and I dont know what is the cause of that.</div></blockquote>
<br />
Have you tried specifying the speed? e.g G1 X0 Y210 F5000<br />
<br />
Erik]]></description>
            <dc:creator>ormerod168</dc:creator>
            <category>Ormerod</category>
            <pubDate>Wed, 16 Mar 2016 10:57:13 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,640314#msg-640314</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,640314#msg-640314</link>
            <description><![CDATA[ New issue.<br />
<br />
This is my g-code<br />
<br />
start<br />
<pre class="bbcode">
;Sliced at: {day} {date} {time}
;Basic settings: Layer height: {layer_height} Walls: {wall_thickness} Fill: {fill_density}
;Print time: {print_time}
;Filament used: {filament_amount}m {filament_weight}g
;Filament cost: {filament_cost}
G21        ;metric values
G90        ;absolute positioning
M83 ; use relative distances for extrusion
M203 X6000 Y6000 Z500 E3000 ; will allow 100mm/s sliced gcodes to work... if they have time/distance to get up to speed
G1 Z5 F200 ; lift nozzle
G1 X2 Y50 F2000; Go to wait for warm position
M116; Wait for all temperatures</pre>
<br />
end<br />
<pre class="bbcode">
M140 S0       ;heated bed heater off
M104 S0       ;extruder heater off
G92 E0 ; set extruder value back to 0
G1 E-15 F300 ;retract 15mm filament speed 300
G1 X0 Y210	; park the machine
M0; stop</pre>
<br />
Now it does the retract of 15mm, but the G1 X0 Y210 is done with the ultra slow speed of 1mms and I dont know what is the cause of that.]]></description>
            <dc:creator>Sardi</dc:creator>
            <category>Ormerod</category>
            <pubDate>Wed, 16 Mar 2016 10:02:03 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,640004#msg-640004</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,640004#msg-640004</link>
            <description><![CDATA[ I have tried tihs code with my files, and it turns out I do need both lines in my end g-code<br />
<br />
G92 E0 and G1 E-1 F100.<br />
<br />
When I put only G1 E-1 F100 it retracts back to -1 although the start g-code has M83 ; use relative distances for extrusion code.]]></description>
            <dc:creator>Sardi</dc:creator>
            <category>Ormerod</category>
            <pubDate>Tue, 15 Mar 2016 13:56:04 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,639010#msg-639010</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,639010#msg-639010</link>
            <description><![CDATA[ Using Cura could give you absolute Extruder movement.]]></description>
            <dc:creator>Treito</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sun, 13 Mar 2016 08:38:48 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,638952#msg-638952</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,638952#msg-638952</link>
            <description><![CDATA[ My bad, I misread the g-code. Absolute are the coordinates, the extruder is in relative mode ;)]]></description>
            <dc:creator>Sardi</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sun, 13 Mar 2016 05:03:14 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,638938#msg-638938</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,638938#msg-638938</link>
            <description><![CDATA[ But why is your Extruder in absolute mode?]]></description>
            <dc:creator>Treito</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sun, 13 Mar 2016 03:28:05 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,638860#msg-638860</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,638860#msg-638860</link>
            <description><![CDATA[ Yes, I definitely need the G92 E0; set extruder value back to 0 or the extruder will just go back all the way to -1. And yes, my extruder is in absolute mode so that code is necessary.]]></description>
            <dc:creator>Sardi</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sat, 12 Mar 2016 16:47:35 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,638064#msg-638064</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,638064#msg-638064</link>
            <description><![CDATA[ that depends wether you have your extruder set to relative or absolute movements. [<a href="http://reprap.org/wiki/G-code#M82:_Set_extruder_to_absolute_mode" target="_blank"  rel="nofollow">reprap.org</a>]<br />
<br />
You can be sure to move only 1mm back if you leave the G92 lin in there. If you have your extruder in absolute mode and at the end of your print your extruder is at a high value it will move all the way back to position -1.]]></description>
            <dc:creator>DasBasti</dc:creator>
            <category>Ormerod</category>
            <pubDate>Fri, 11 Mar 2016 02:41:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,637906#msg-637906</guid>
            <title>Re: G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,637906#msg-637906</link>
            <description><![CDATA[ I dont think you need it tbh ,it will retract in with it or withought it.]]></description>
            <dc:creator>Darathy</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 10 Mar 2016 13:52:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,637899,637899#msg-637899</guid>
            <title>G-code for retraction at the end</title>
            <link>https://reprap.org/forum/read.php?340,637899,637899#msg-637899</link>
            <description><![CDATA[ After googling for what I need I found this to be the code I need:<br />
<br />
G92 E0; set extruder value back to 0<br />
G1 E-1 F100; retract 1mm at speed of 100mms<br />
<br />
I will change the amount and speed, but want to know do I need G92 to set the extruder to 0.<br />
I found answers where one says it is needed, and other answers saying, of course, the opposite. <br />
<br />
So which is it? :D]]></description>
            <dc:creator>Sardi</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 10 Mar 2016 13:34:15 -0500</pubDate>
        </item>
    </channel>
</rss>
