<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Start code &amp;amp; end code</title>
        <description> I have the following start code and end code set and for some reason they always cause an error when trying to convert an .stl to Gcode

start
G21 
G90
G92 X0 Y0 Z0 E0

end
G91
G1 F70
G1 Z7 F70
G1 F2300
G1 X-100 F2300
G90
M104 SO

Can anyone shed any light on the I&#039;m using SF40

Thanks</description>
        <link>https://reprap.org/forum/read.php?154,82490,82490#msg-82490</link>
        <lastBuildDate>Sat, 10 Oct 2026 04:58:41 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,83173#msg-83173</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,83173#msg-83173</link>
            <description><![CDATA[ Yes think I have it sorted now,<br />
<br />
thanks]]></description>
            <dc:creator>NelsonRap</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Mon, 09 May 2011 03:51:16 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,83171#msg-83171</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,83171#msg-83171</link>
            <description><![CDATA[ NelsoRap:  have  you tried Skeinforge 41's skirt function?  Should be your solution...]]></description>
            <dc:creator>ahmetcemturan</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Mon, 09 May 2011 03:34:25 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,83147#msg-83147</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,83147#msg-83147</link>
            <description><![CDATA[ You should have preheated your extruder already before sending the G-code with JB's addition (or even without it) to make sure that the tip is hot enough. Otherwise, use M104 instead of M109 to set the temperature. I always preheat to be safe.]]></description>
            <dc:creator>brnrd</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Sun, 08 May 2011 22:53:42 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,83145#msg-83145</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,83145#msg-83145</link>
            <description><![CDATA[ Try adding this:<br />
<br />
<br />
G92 E0 ; reset extruder length<br />
G1 X6 F1000 E20 ; move bit out of X0 while extruding<br />
G92 E0 ; reset extruder length<br />
<br />
<br />
JB]]></description>
            <dc:creator>jim_blag</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Sun, 08 May 2011 21:55:29 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,83144#msg-83144</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,83144#msg-83144</link>
            <description><![CDATA[ I wan to add a G code to tell my mendel to run the extruder before each print as I get better results that way. Can I just a add a M101 line to my start code?<br />
<br />
My current start code is <br />
<br />
G21; metric is good<br />
G90; absolute positioning<br />
G92 X0 Y0 Z0 E0; zero the extruded length axes<br />
M109 S220;]]></description>
            <dc:creator>NelsonRap</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Sun, 08 May 2011 19:57:28 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82870#msg-82870</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82870#msg-82870</link>
            <description><![CDATA[ Hi Syncra<br />
<br />
The work around for this is in this thread:-<br />
<br />
[<a href="http://forums.reprap.org/read.php?154,72899,73063,phorum_session_v5=192%3A33fef77a44f2392b63027a25a3ba0918#msg-73063" target="_blank"  rel="nofollow">forums.reprap.org</a>]]]></description>
            <dc:creator>emt</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Thu, 05 May 2011 12:48:37 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82868#msg-82868</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82868#msg-82868</link>
            <description><![CDATA[ It's essentially hitting the  key at the end of the line, but it can vary by OS slightly. The best way to be sure is to copy a line from the existing file, paste it, then edit the text to reflect your required GCode.<br />
<br />
JB]]></description>
            <dc:creator>jim_blag</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Thu, 05 May 2011 12:43:10 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82866#msg-82866</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82866#msg-82866</link>
            <description><![CDATA[ sorry the ignorance, what's CR and LF?  Is it a "space" character?]]></description>
            <dc:creator>syncra</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Thu, 05 May 2011 12:16:20 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82865#msg-82865</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82865#msg-82865</link>
            <description><![CDATA[ Looking through the code in Skeinforge where it adds in the ending code it doesn't really do anything specific other than grab the contents of the file and append it to the GCode. One thing to double check is that you have a  at the end of the line in question. When it grabs the contents of the file it does the following modification:<br />
<br />
<br />
	textLines = text.replace('\r', '\n').replace('\n\n', '\n').split('\n')<br />
<br />
Essentially replacing CR with LF, replacing any double LF then splitting lines on LF.<br />
<br />
JB]]></description>
            <dc:creator>jim_blag</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Thu, 05 May 2011 12:14:00 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82863#msg-82863</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82863#msg-82863</link>
            <description><![CDATA[ Simply because at the end of the build, a big bubble drops before the head moves away from the part!  I would like to increase that final retraction and that's why I tried to add it to the "end" file, but it is ignored during the generation of the gcode.<br />
Any other way to increase that?]]></description>
            <dc:creator>syncra</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Thu, 05 May 2011 11:52:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82852#msg-82852</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82852#msg-82852</link>
            <description><![CDATA[ Skeinforge automatically retracts after the end of a filament segment. So, why do you need to put a retract command in your end code?]]></description>
            <dc:creator>brnrd</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Thu, 05 May 2011 07:58:59 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82844#msg-82844</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82844#msg-82844</link>
            <description><![CDATA[ I have also a trouble on the end file.  I would like extruder to retract, I use a G92 E0 and following line G1 E-2 F2000 plus some other lines...<br />
When I look at the Gcode generated byt skeinforge, my whole end file is attached there at the end of the gcode, but the lines G1 E-2 F2000 is not there!<br />
Anybody knows why?<br />
Thanks]]></description>
            <dc:creator>syncra</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Thu, 05 May 2011 07:33:15 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82613#msg-82613</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82613#msg-82613</link>
            <description><![CDATA[ ahmetcemturan Wrote:<br />
-------------------------------------------------------<br />
&gt; Hi NelsonRap,<br />
&gt; dangereous Endcode IMHO..<br />
&gt; <br />
&gt; G91 <br />
&gt; G1 F70 <br />
&gt; G1 Z7 F70 <br />
&gt; G1 F2300 <br />
<br />
Not dangereous at all the G91 put it into relative mode and so the G1 Z7 is a relative move of +7.<br />
<br />
<br />
Matt]]></description>
            <dc:creator>dps.lwk</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Mon, 02 May 2011 16:19:11 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82611#msg-82611</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82611#msg-82611</link>
            <description><![CDATA[ I got the code off of another forum member and it seems to work ok. At the moment because I'm still learning I am at the machine while it prints so if it looks likely to crash I can stop it]]></description>
            <dc:creator>NelsonRap</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Mon, 02 May 2011 16:04:33 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82587#msg-82587</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82587#msg-82587</link>
            <description><![CDATA[ Hi NelsonRap,<br />
dangereous Endcode IMHO..<br />
<br />
G91 <br />
G1 F70 <br />
G1 Z7 F70 <br />
G1 F2300 <br />
G1 X-100 F2300 <br />
G90 <br />
M104 S0<br />
<br />
<br />
How can you be sure that You can go down to 7mm with your Z....<br />
You might crash your extruder and x axis into the print...<br />
<br />
I would remove the Z code and let the head move to some Parkposition only and turn off heater...<br />
<br />
Suggestion:<br />
<br />
G1 X0 Y130 F1000<br />
M104 S0]]></description>
            <dc:creator>ahmetcemturan</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Mon, 02 May 2011 10:37:24 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82499#msg-82499</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82499#msg-82499</link>
            <description><![CDATA[ Hmm I copied it from a forum so good spotting I changed it and now it works talk about senior moment :)-D time for one of these]]></description>
            <dc:creator>NelsonRap</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Sun, 01 May 2011 01:40:28 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82497#msg-82497</guid>
            <title>Re: Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82497#msg-82497</link>
            <description><![CDATA[ The GCode itself looks good to me. This could be a typo error, but I'm assuming you cut and paste this - the last line in your 'end' file where you set your extruder temp to switch off the heater, you have an 'O' and not a '0'. I'm not sure if this is what's causing your tool-chain to barf?<br />
<br />
JB]]></description>
            <dc:creator>jim_blag</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Sun, 01 May 2011 01:02:55 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,82490,82490#msg-82490</guid>
            <title>Start code &amp; end code</title>
            <link>https://reprap.org/forum/read.php?154,82490,82490#msg-82490</link>
            <description><![CDATA[ I have the following start code and end code set and for some reason they always cause an error when trying to convert an .stl to Gcode<br />
<br />
start<br />
G21 <br />
G90<br />
G92 X0 Y0 Z0 E0<br />
<br />
end<br />
G91<br />
G1 F70<br />
G1 Z7 F70<br />
G1 F2300<br />
G1 X-100 F2300<br />
G90<br />
M104 SO<br />
<br />
Can anyone shed any light on the I'm using SF40<br />
<br />
Thanks]]></description>
            <dc:creator>NelsonRap</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Sat, 30 Apr 2011 23:57:21 -0400</pubDate>
        </item>
    </channel>
</rss>
