<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[SoliForum - 3D Printing Community — Improved start and end G-code]]></title>
		<link>https://www.soliforum.com/topic/231/improved-start-and-end-gcode/</link>
		<atom:link href="https://www.soliforum.com/feed/rss/topic/231/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Improved start and end G-code.]]></description>
		<lastBuildDate>Thu, 14 Sep 2017 23:40:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/138048/#p138048</link>
			<description><![CDATA[<p>;Generated with Cura_SteamEngine 15.01<br />; Default start code<br />G28 ; Home extruder<br />G1 Z15 F100<br />M107 ; Turn off fan<br />G90 ; Absolute positioning<br />M82 ; Extruder in absolute mode<br />M190 S50<br />; Activate all used extruder<br />M104 T0 S200<br />G92 E0 ; Reset extruder position<br />; Wait for all used extruders to reach temperature<br />M109 T0 S200<br />;Layer count: 240<br />;LAYER:0<br />M107<br />G0 F9000 X82.444 Y100.938 Z0.200<br />;TYPE:SKIRT</p><br /><br /><p>this is my start g code</p>]]></description>
			<author><![CDATA[null@example.com (noahmcelwey19)]]></author>
			<pubDate>Thu, 14 Sep 2017 23:40:19 +0000</pubDate>
			<guid>https://www.soliforum.com/post/138048/#p138048</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/128016/#p128016</link>
			<description><![CDATA[<p>Hello,&nbsp; I&#039;m a newbie to 3D printing. Have a i3 Prusa Electron built from Kit with mentors. It was working/printing fine using Cura to slice and Pronterface to check things, like extrusion. Extrusion is fine from Pronterface but when printing from a SD card, the printer goes thru the motions, but spits out no filament??? Could my trying different slicers have somehow contaminated the header code either being sent to the printer or some &quot;re-adjusting&quot; extrusion settings?&nbsp; A moment ago I printed a test pattern flawlessly, now nothing comes out of the hot end as the head and bed fly around? Thanks for any things to try? BTW, I haven&#039;t messed with the firmware at all. Here are my settings. Do I need to change anything:</p><p>echo:Marlin1.0.0<br />echo: Last Updated: Nov 26 2015 11:03:19 | Author: Zviper89, Migbot Stndrdauto lvl<br />Compiled: Nov 26 2015<br />echo: Free Memory: 3606&nbsp; PlannerBufferBytes: 1232<br />echo:Hardcoded Default Settings Loaded<br />echo:Steps per unit:<br />echo:&nbsp; M92 X80.00 Y80.00 Z398.27 E94.50<br />echo:Maximum feedrates (mm/s):<br />echo:&nbsp; M203 X225.00 Y225.00 Z3.00 E25.00<br />echo:Maximum Acceleration (mm/s2):<br />echo:&nbsp; M201 X2650 Y2650 Z100 E10000<br />echo:Acceleration: S=acceleration, T=retract acceleration<br />echo:&nbsp; M204 S2650.00 T3000.00<br />echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum XY jerk (mm/s),&nbsp; Z=maximum Z jerk (mm/s),&nbsp; E=maximum E jerk (mm/s)<br />echo:&nbsp; M205 S0.00 T0.00 B20000 X15.00 Z0.40 E5.00<br />echo:Home offset (mm):<br />echo:&nbsp; M206 X0.00 Y0.00 Z0.00<br />echo:PID settings:<br />echo:&nbsp; &nbsp;M301 P22.20 I1.08 D114.00<br />echo:SD card ok</p><p>(from Mac Pronterface)</p>]]></description>
			<author><![CDATA[null@example.com (MauiMacMan)]]></author>
			<pubDate>Tue, 08 Nov 2016 19:58:43 +0000</pubDate>
			<guid>https://www.soliforum.com/post/128016/#p128016</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/29781/#p29781</link>
			<description><![CDATA[<p>I went ahead and changed my startup code to do exactly this... It works great. No more oozing and since the nozzle is nice and full, the beginning of the prints are always nice and tidy... </p><p>here is my code for what it is worth. </p><div class="codebox"><pre><code>G21; set mm units
G28 ;home all axis
G90; set absolute coordinates
G92 E0; reset extruder distance
M104 S205; set extruder temp and start heating
G1 Z5 F300 ;move platform down 5mm
G1 X195 Y195 F3000 ; move to back right corner
G1 Z0 F300 ;rest extruder on platform while heating to prevent oozing
M109 S205; wait for extruder temp to be reached
G1 Z[first_layer_height] F200 ;move platform close to nozzle
;G1 E7; extrude anchor
G1 F3000; center print head
G92 E0; reset extrusion distance</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (downeym)]]></author>
			<pubDate>Sat, 13 Jul 2013 21:35:10 +0000</pubDate>
			<guid>https://www.soliforum.com/post/29781/#p29781</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/28938/#p28938</link>
			<description><![CDATA[<p>I often start prints remotely where I have no opportunity to clean any dangling oozed filament from the print head. I have been thinking of changing my start sequence to move the nozzle to the back corner of the print surface and zero the print bed before starting the heating of the extruder. The thinking is that once the nozzle heats to the pint where it would ooze, it will ooze the small distance to the surface of the print bed where it would cool enough to keep a significant amount from oozing out the print head. This would eliminate the dangling sting of extruded filament that is often present at the beginning of the print. </p><p>I am printing on a glass bed, so I dont think there are any real dangers of doing this, but I was curious if anyone is not doing this for a reason. </p><p>Any landmines I have not thought about?</p>]]></description>
			<author><![CDATA[null@example.com (downeym)]]></author>
			<pubDate>Wed, 03 Jul 2013 20:26:59 +0000</pubDate>
			<guid>https://www.soliforum.com/post/28938/#p28938</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/9649/#p9649</link>
			<description><![CDATA[<p>I&#039;ve written some start G-codes that scrape off the nozzle on the side + thin straight line on right of bed.&nbsp; I&#039;ve never been happy with the dribble coming out of the nozzle when it heats up, plus the squirt at the back right (the &#039;anchor&#039;) often stuck to my nozzle.&nbsp; I have many prints that are large, and the skirt would not be practical.&nbsp; So, I crafted these start codes that seem to work well for me anyway.&nbsp; I&#039;m using it in Skeinforge, but I believe it will work in slic3r as well.&nbsp; It will work with the &#039;old&#039; firmware or the Lawsy 1.0 firmware, as it does not use the &#039;home&#039; command to zero.&nbsp; I have attached the file.&nbsp; Use at your own risk, of course, and make a backup of your existing start codes.&nbsp; Download the attached, and remove the &#039;txt&#039; extension leaving start.code.&nbsp; This can be copied directly into your C:\Program Files (x86)\Solidoodle v4.2\kliment-Printrun-dceaf26\skeinforge\skeinforge_application\alterations or similar folder - replacing your old start.gcode. </p><p>Features:<br />1) Sets the bed temperature to 90C, and waits until it&#039;s there.<br />2) Sets the nozzle to 195C, then waits until it&#039;s there.<br />3) Puts the platform down 5mm in case the old job ended with the nozzle up to the platform (like an abort)<br />4) Goes to the X-axis and Y-axis end stop switches<br />5) Goes to the Z-axis stop switch, twice - once fast, once slow as in the Solidoodle original skeinforge start.gcode<br />6) Does NOT center, rather sets these coordinates as absolute X82 Y76 Z0 (this centers the coordinates)<br />7) Runs a thin line along the right edge.&nbsp; As it starts (on the way from X82 to X75) it takes the dribble off the nozzle and discards it at the right side edge of the bed.<br />8) After the thin line is done, the normal G-codes of your slice take over. </p><p>The thin line works like the anchor concept, except it is laid out on the bed and not left on the nozzle.&nbsp; It is very easily removed, and really consumes only about .3mm from your potential X-axis bed range. </p><p>Much thanks to&nbsp; lawsy and the other contributors!&nbsp; I&#039;ve learned tremendously from the information provided here!&nbsp; best regards - lewis<br />______________________________________________________________<br />Start Code:</p><p>G21<br />G91<br />M140 S90 ;then set bed to 90<br />M190 S90 ;set and wait for bed temp of 90 to be reached<br />M104 S195 ; set extruder temp and start heating<br />M109 S195; wait for extruder temp to be reached<br />G1 Z5 F500; make sure nozzle not on bed<br />G1 X200 F3000<br />G1 Y200 F3000<br />G1 Z-200 F500<br />G1 Z5 F500<br />G1 Z-10 F250<br />G90<br />G92 X82 Y76 Z0 E0<br />G90<br />G21<br /> S1.0<br /> S2.1<br />G1 X74.96 Y-64.74 Z0.35 F2400.0<br />G1 F600.0<br />G1 E0.65<br />G1 F2400.0<br />G92 E0<br />G1 X74.96 Y-64.79 Z0.35 F519.3344 E0.002<br />G1 X75.04 Y-64.79 Z0.35 F519.3344 E0.0053<br />G1 X75.04 Y64.79 Z0.35 F519.3344 E5.4472<br />G1 X74.96 Y64.79 Z0.35 F519.3344 E5.4505<br />G1 X74.96 Y64.74 Z0.35 F519.3344 E5.4525<br />G1 F600.0<br />G1 E4.8525<br />G1 F519.3344<br />M104 S190.0<br /> S2.1<br />G1 F600.0<br />G1 E4.2525<br />G1 F519.3344<br />G92 E0</p>]]></description>
			<author><![CDATA[null@example.com (lewis)]]></author>
			<pubDate>Wed, 16 Jan 2013 19:45:59 +0000</pubDate>
			<guid>https://www.soliforum.com/post/9649/#p9649</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/7816/#p7816</link>
			<description><![CDATA[<p>Slightly modified your startcode because I was having issues with the anchor not sticking and this then pulling at the print, even with a skirt:</p><div class="codebox"><pre><code>G21; set mm units
G28 ;home all axis
G90; set absolute coordinates
G92 E0; reset extruder distance
M104 S195; set extruder temp and start heating
G1 X145 Y145 F3000 ; move to back right corner
G1 Z0.05 F200 ;move platform close to nozzle
G1 E5 ;extrude anchor
G1 X10 F12000 ; move towards the back left as fast as firmware permits
G1 Z5 F300 ;move platform down 5mm
G92 E0; reset extruder distance
G1 Z[first_layer_height] F200 ;move platform close to nozzle</code></pre></div><p>This pretty much successfully cleans the nozzle completely of any excess chaff, whipping it off with the rapid motion. It does result in a small gap in the skirt at the start though, but that is what the skirt is for.</p>]]></description>
			<author><![CDATA[null@example.com (ErroneousBosch)]]></author>
			<pubDate>Sat, 22 Dec 2012 22:00:10 +0000</pubDate>
			<guid>https://www.soliforum.com/post/7816/#p7816</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/6946/#p6946</link>
			<description><![CDATA[<div class="quotebox"><cite>Stoney wrote:</cite><blockquote><div class="quotebox"><cite>lawsy wrote:</cite><blockquote><p>The new Slic3r 0.9.5 and Repetier-host 0.80 have fixed the issue with the slic3r variables. The start g-code will now work as stated in the first post.</p></blockquote></div><p>Hi Lawzy,<br />where you referring to the extruder temperature triplet being fixed ?<br />if so .. what am I doing wrong with the start gcode then..</p><p>using rep host 0.82b and M190 S[temperature] is returning the M190 S195,195,195 for me..<br />repetier is set for a single extruder in printer settings.</p><p>ah well .. I might just drop the temps out entirely and use manual control top set them pre print and save reslicing ..</p></blockquote></div><p>You can edit the start gcode before printing to be correct.&nbsp; I don&#039;t know if there&#039;s a clear cut way to stop this.</p>]]></description>
			<author><![CDATA[null@example.com (devilman2075)]]></author>
			<pubDate>Wed, 12 Dec 2012 15:21:38 +0000</pubDate>
			<guid>https://www.soliforum.com/post/6946/#p6946</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/6943/#p6943</link>
			<description><![CDATA[<div class="quotebox"><cite>lawsy wrote:</cite><blockquote><p>The new Slic3r 0.9.5 and Repetier-host 0.80 have fixed the issue with the slic3r variables. The start g-code will now work as stated in the first post.</p></blockquote></div><p>Hi Lawzy,<br />where you referring to the extruder temperature triplet being fixed ?<br />if so .. what am I doing wrong with the start gcode then..</p><p>using rep host 0.82b and M190 S[temperature] is returning the M190 S195,195,195 for me..<br />repetier is set for a single extruder in printer settings.</p><p>ah well .. I might just drop the temps out entirely and use manual control top set them pre print and save reslicing ..</p>]]></description>
			<author><![CDATA[null@example.com (Stoney)]]></author>
			<pubDate>Wed, 12 Dec 2012 15:04:09 +0000</pubDate>
			<guid>https://www.soliforum.com/post/6943/#p6943</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/6864/#p6864</link>
			<description><![CDATA[<p>My printer was shipped in december. Is there a new firmware from what they&#039;d send out lately? Using repetier and slicer works fine with this gcode but skinforge&nbsp; and pronterface wont. I really won&#039;t have time to dig into it until the weekend. Running the original start gcode works,&nbsp; id like to see the same start code run in both.</p>]]></description>
			<author><![CDATA[null@example.com (devilman2075)]]></author>
			<pubDate>Tue, 11 Dec 2012 13:44:07 +0000</pubDate>
			<guid>https://www.soliforum.com/post/6864/#p6864</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/6863/#p6863</link>
			<description><![CDATA[<p>are you running the latest firmware ?<br />that caused me problems initially..</p>]]></description>
			<author><![CDATA[null@example.com (Stoney)]]></author>
			<pubDate>Tue, 11 Dec 2012 12:09:37 +0000</pubDate>
			<guid>https://www.soliforum.com/post/6863/#p6863</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/6838/#p6838</link>
			<description><![CDATA[<p>Does anyone else have trouble with lawsys start code using skeinforge?</p><p>I&#039;m not exactly sure if it was anything I might have changed accidentally but it seemed like it wouldn&#039;t even do the extrude anchor and would then start print in front left where extrude anchor was to take place.&nbsp; Repeatedly slamming off the non endstop side of x and y.</p><p>Also is there a setting of some sort I could fix in slicer 097 with regards to the extruder hear line of code that puts it like multiple extruders are present?</p>]]></description>
			<author><![CDATA[null@example.com (devilman2075)]]></author>
			<pubDate>Tue, 11 Dec 2012 01:45:43 +0000</pubDate>
			<guid>https://www.soliforum.com/post/6838/#p6838</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/6085/#p6085</link>
			<description><![CDATA[<p>Been messing around with my new printer for a couple of days now. I&#039;m so glad that it was a lot less hassle to get it working than I expected. Kudos to all the excellent guides by Ian and for you posting this code. I did find this g-code really useful even with PLA, but there were a few issues. I&#039;m using slic3r 0.9.7.</p><p>Slic3r puts in its own extruder temperature instructions at the start of the g-code.</p><div class="codebox"><pre><code>M104 S190 ; set temperature</code></pre></div><p>This causes the extruder to remain heated for a long time before the bed temperature is reached, which isn&#039;t that good for PLA. I fixed this by overriding the temperature at the beginning of the start g-code with a relatively low temperature.</p><div class="codebox"><pre><code>M104 S50            ; override slic3r extruder temp</code></pre></div><p>The extruder temperature variable still didn&#039;t work so I had to put it in directly in the g-code.</p><div class="codebox"><pre><code>M104 S185         ; start heating extruder</code></pre></div><p>This instruction crashes the platform right down into the floor, so I removed it.</p><div class="codebox"><pre><code>G1 Z150 F300 ; lower platform to bottom</code></pre></div><p>When using PLA the anchor sometimes didn&#039;t stick to the platform, causing it to be dragged into the print and ruining the first layer. Instead I made the extruder lift from the platform after extruding the anchor, move to the side, go down again and scrape off the remaining plastic on its way to the print area.</p><div class="codebox"><pre><code>start code:

M104 S50                    ; override slic3r extruder temp
G21                        ; set mm units
G28                         ; home all axes
M190 S60                 ; set and wait for bed temp to be reached
M104 S185                 ; start heating extruder
G90                        ; set absolute coordinates
G1 Z5 F300                ; move platform down 5mm
G1 X10 Y10 F3000             ; move to front left corner
M109 S185                ; wait for extruder temp to be reached
G1 Z[first_layer_height] F200    ; move platform to the first layer
G92 E0                    ; reset extrusion distance
G1 E10                    ; extrude anchor
G1 Z5 F300                ; move platform down 5mm
G1 Y20 F3000                 ; move away from the anchor
G1 Z[first_layer_height] F200    ; move platform to the first layer again
M140 S50                    ; lower bed temperature</code></pre></div><div class="codebox"><pre><code>end code:

G28 X0 Y0                ; home X axis and y axis
; G1 Z150 F300 crash the platform into the floor
M104 S0                    ; kill extruder temperature
M140 S0                    ; kill bed temperature
M84                        ; disable motors</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Donitz)]]></author>
			<pubDate>Sat, 01 Dec 2012 12:50:01 +0000</pubDate>
			<guid>https://www.soliforum.com/post/6085/#p6085</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/4722/#p4722</link>
			<description><![CDATA[<div class="quotebox"><cite>lawsy wrote:</cite><blockquote><p>The new Slic3r 0.9.5 and Repetier-host 0.80 have fixed the issue with the slic3r variables. The start g-code will now work as stated in the first post.</p></blockquote></div><p>Exciting stuff! Good to see good software getting better.</p>]]></description>
			<author><![CDATA[null@example.com (solijohn)]]></author>
			<pubDate>Thu, 15 Nov 2012 22:21:17 +0000</pubDate>
			<guid>https://www.soliforum.com/post/4722/#p4722</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/4500/#p4500</link>
			<description><![CDATA[<p>The new Slic3r 0.9.5 and Repetier-host 0.80 have fixed the issue with the slic3r variables. The start g-code will now work as stated in the first post.</p>]]></description>
			<author><![CDATA[null@example.com (lawsy)]]></author>
			<pubDate>Tue, 13 Nov 2012 08:50:20 +0000</pubDate>
			<guid>https://www.soliforum.com/post/4500/#p4500</guid>
		</item>
		<item>
			<title><![CDATA[Re: Improved start and end G-code]]></title>
			<link>https://www.soliforum.com/post/3813/#p3813</link>
			<description><![CDATA[<div class="quotebox"><cite>lawsy wrote:</cite><blockquote><p>I&#039;ve not been happy with the default start and end g-code, so have been developing a better version based on the versions Ian posted on his blog.</p><p>I&#039;m not sure about others, but I was particularly sick of the nozzle scraping across the platform in the back right corner as it left the home position to start printing. I was also sick of the first extrusions not working as plastic had oozed out of the hot tip.</p><p>My g-code rectifies both of these problems.</p><p><strong>For Slic3r</strong><br />Slic3r will let you use variables in your start and end g-code, which I have done. This g-code works best if you set the first layer extruder temp to 0 in Slic3r. Don&#039;t worry, it will still be heated appropriately for the first layer using this code.</p><p><em>Start:</em><br /></p><div class="codebox"><pre><code>G21; set mm units
G28 ;home all axis
M190 S[first_layer_bed_temperature] ; set and wait for bed temp to be reached
M104 S[temperature] ; set extruder temp and start heating
G90; set absolute coordinates
G1 Z5 F300 ;move platform down 5mm
G1 X10 Y10 F3000 ;move to front left corner
M109 S[temperature]; wait for extruder temp to be reached
G1 Z[first_layer_height] F200 ;move platform close to nozzle
G92 E0; reset extrusion distance
G1 E7 ;extrude anchor</code></pre></div><p><strong>EDIT:</strong><br />Repetier-Host 0.74 kills the above code due to support for multiple extruders. Instead of [temperature] in those two lines, subtitute in your actual temp number you are seeking. EG:<br /></p><div class="codebox"><pre><code>M104 S200 ; set extruder temp and start heating</code></pre></div><p><em>End:</em><br /></p><div class="codebox"><pre><code>G28 X0 Y0  ; home X axis and y axis
G1 Z150 F300 ; lower platform to bottom
M104 S0 ; kill extruder temperature
M140 S0 ; kill bed temperature
M84 ; disable motors</code></pre></div><p><strong>For Skeinforge</strong><br />Manual values must be substituted whereever Slic3r variables were inside [square brackets].</p><p>Example:<br /></p><div class="codebox"><pre><code>G1 Z[first_layer_height] F200 ;move platform close to nozzle</code></pre></div><p>becomes<br /></p><div class="codebox"><pre><code>G1 Z0.25 F200 ;move platform close to nozzle</code></pre></div><p> or whatever your layer height is set to.</p><p>Here is a video of the new g-code in action:<br /><div class="fancy_video_tag_player"><iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/g0vskY6OLuI" frameborder="0"></iframe></div></p></blockquote></div><p>I hope this has been added to the wiki. Good work, once again!</p>]]></description>
			<author><![CDATA[null@example.com (solijohn)]]></author>
			<pubDate>Thu, 01 Nov 2012 18:35:23 +0000</pubDate>
			<guid>https://www.soliforum.com/post/3813/#p3813</guid>
		</item>
	</channel>
</rss>
