{"id":434,"date":"2014-03-09T21:06:16","date_gmt":"2014-03-09T19:06:16","guid":{"rendered":"http:\/\/www.3deee.ch\/?p=434"},"modified":"2015-06-15T19:00:20","modified_gmt":"2015-06-15T17:00:20","slug":"massgeschneiderte-start-und-end-g-codes-im-slic3r","status":"publish","type":"post","link":"https:\/\/www.3deee.ch\/?p=434","title":{"rendered":"Massgeschneiderte Start- und End-G-Codes im Slic3r"},"content":{"rendered":"<p>Vielleicht seit ihr ja schon da dr\u00fcber gestolpert. Bei mir hat es beinahe ein Jahr gedauert, bis ich den Vorteil dieser M\u00f6glichkeit f\u00fcr mich entdeckt habe.<\/p>\n<p><a href=\"http:\/\/www.3deee.ch\/wp-content\/uploads\/2014\/03\/image.png\"><img loading=\"lazy\" style=\"margin: 0px 0px 10px 10px; border: 0px currentcolor; display: inline;\" title=\"image\" src=\"http:\/\/www.3deee.ch\/wp-content\/uploads\/2014\/03\/image_thumb.png\" alt=\"image\" width=\"240\" height=\"210\" align=\"right\" border=\"0\" \/><\/a>Im Tab \u201cPrintersettings&#8220; von Slic3r findet ihr den Punkt \u201cCustom G-Code\u201d. Ich verwende hier die Slic3r-Version 10.3, welche f\u00fcr Dual-Extruder einige Neuerungen beinhaltet, die ich aber zumindest im Moment nicht brauche.<\/p>\n<p>Soweit ich weiss, initiert Slic3r standardm\u00e4ssig das aufheizen vom Bett und Extruder mit den Befehlen M109 (wait for extruder temperature) und M190 (wait for bed temperature).<br \/>\nSind diese Befehle jedoch in dieser Reihenfolge hintereinander, beginnt erst der Extruder zu heizen, bis er die Temperatur erreicht hat. Danach beginnt das Heizbett zu heizen. Was darin resultiert, dass man lange warten muss, weil beide Heizelemente hintereinander geheizt werden.<\/p>\n<p>Um zu erreichen, dass das Heizbett und der Extruder gleichzeitig geheizt werden, habe ich nun meinen eigenen Start-G-Code erstellt, der wie folgt lautet:<\/p>\n<p><em>G28 ; home all axes<br \/>\nG1 Z2 F200 ; lift nozzle just to see if the printer moves \ud83d\ude09<br \/>\nG1 Z0 F200 ; set nozzle to zero to minimize ooze<br \/>\nM84\u00a0\u00a0\u00a0\u00a0 ; disable motors to suppress motor sounds<br \/>\nM140 S[first_layer_bed_temperature] ;set bed temperature<br \/>\nM104 S[first_layer_temperature] ;set extruder temperature<br \/>\nM109 S[first_layer_temperature] ;wait for extruder temperature<br \/>\nM190 S[first_layer_bed_temperature] ;wait for bed temperature<br \/>\nG1 Z5 F200 ; lift nozzle for positioning<\/em><\/p>\n<div class=\"GARD gard_async_mode\" id=\"google-ads-z1BM\" ><script async=\"async\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><div id=\"GARDasync_z1BM\"><\/div><script >(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div><script>\radUnit = document.getElementById(\"google-ads-z1BM\");\radWidth = adUnit.offsetWidth;\rif ( adWidth >= 999999 ) {\r\/* GETTING THE FIRST IF OUT OF THE WAY *\/ \r} else if ( adWidth >= 970 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:970px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"9924945823\\\"><\/ins>\";\r} else if ( adWidth >= 336 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:336px;height:280px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:100px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:50px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8448212620\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 250 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:250px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 234 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:234px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:200px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:150px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"7793371424\\\"><\/ins>\";\r} else if ( adWidth >= 125 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:125px;height:125px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:240px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_z1BM\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r}<\/script>\n<p>&nbsp;<\/p>\n<p>Wie ihr seht, hat man sogar die M\u00f6glichkeit, Variablen in den G-Code einzuf\u00fcgen. In diesem Fall \u00fcbernehme ich aus den Filamentsettings die Extruder-Temperatur [first_layer_temperature] und die Bett-Temperatur [first_layer_bed_temperature].<br \/>\nAm Anfang setze ich einfach diese Temperaturen mit den Befehlen M140 f\u00fcr das Bett und M104 f\u00fcr den Extruder.<br \/>\nDanach beginne ich auf die Extruder-Temperatur zu warten M109. Und wenn diese erreicht ist, warte ich auf die Betttemperatur mit M190.<br \/>\nDa das Bett l\u00e4nger zum aufheizen braucht, frage ich dieses auch erst als letztes ab und bin dann so sicher, dass der Extruder auch auf Temperatur ist, da ich den Vorher schon eingestellt habe. W\u00e4hrend ich hier so schreibe, denke ich, dass es auch gen\u00fcgen w\u00fcrde einfach den Befehl M190 nach dem Befehl M140 zu setzen und die beiden Befehle M104 und M109 wegzulassen.<\/p>\n<p>Mein End-Gcode sieht dann noch wie folgt aus:<\/p>\n<p><em>M104 S0 ; turn off extruder temperature<br \/>\nM140 S0; turn off bed temperature<br \/>\nG28 X0\u00a0 ; home X axis<br \/>\nM84\u00a0\u00a0\u00a0\u00a0 ; disable motors<\/em><\/p>\n<div class=\"GARD gard_async_mode\" id=\"google-ads-2BeO\" ><script async=\"async\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><div id=\"GARDasync_2BeO\"><\/div><script >(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div><script>\radUnit = document.getElementById(\"google-ads-2BeO\");\radWidth = adUnit.offsetWidth;\rif ( adWidth >= 999999 ) {\r\/* GETTING THE FIRST IF OUT OF THE WAY *\/ \r} else if ( adWidth >= 970 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:970px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"9924945823\\\"><\/ins>\";\r} else if ( adWidth >= 336 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:336px;height:280px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:100px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:50px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8448212620\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 250 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:250px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 234 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:234px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:200px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:150px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"7793371424\\\"><\/ins>\";\r} else if ( adWidth >= 125 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:125px;height:125px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:240px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_2BeO\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r}<\/script>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vielleicht seit ihr ja schon da dr\u00fcber gestolpert. Bei mir hat es beinahe ein Jahr gedauert, bis ich den Vorteil dieser M\u00f6glichkeit f\u00fcr mich entdeckt habe. Im Tab \u201cPrintersettings&#8220; von Slic3r findet ihr den Punkt \u201cCustom G-Code\u201d. Ich verwende hier die Slic3r-Version 10.3, welche f\u00fcr Dual-Extruder einige Neuerungen beinhaltet, die&#8230;<\/p>\n","protected":false},"author":2,"featured_media":437,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[1],"tags":[114,138,123,133,33,32,137,36],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/posts\/434"}],"collection":[{"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=434"}],"version-history":[{"count":3,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/posts\/434\/revisions"}],"predecessor-version":[{"id":607,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/posts\/434\/revisions\/607"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/media\/437"}],"wp:attachment":[{"href":"https:\/\/www.3deee.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}