<p>I've got a Monoprice Mini Select (15365) and it takes FOREVER for me to manually spin the dial to get the printhead to raise all the way up so that I can perform maintenance (clear blockages in the nozzle or apply new tape to the bed, etc).</p>

<p>So, I was thinking about writing a snippet of gcode that I could just run which would contain the commands necessary to do that for me. I'm a n00b to 3D printing, but I'm an old programmer so I figured it would be too hard. However, before running this code on my printer, I wanted to get some experts to double check me to make sure I'm not going to hurt anything. :)</p>

<p>Here is what I have, please let me know if I've done anything wrong or if you have any suggestions.</p>

<pre><code>; Move print head to center and top to prepare for cleaning/maintenance

M107    ; fan off
G28 ; home all axes
G21 ; set units to millimeters
G90 ; use absolute coordinates

; full dimensions of the print area are 120mm x 120mm x 120mm
G0 X60 Y60 Z119 ; move to center X,Y and just below the max height

M84     ; disable motors
</code></pre>

<p>I grabbed a few lines from gcode generated by Slic3r and used the gcode wiki entry to understand each of the commands and fill in the extra ones I needed.</p>

[{'answer_id': 3424, 'author': 'Davo', 'author_id': 4922, 'author_profile': 'https://3dprinting.stackexchange.com/users/4922', 'pm_score': 4, 'selected': True, 'text': '<p>Yes, on machines which will execute "standard" gcode, this will do what you request. Some good resources are <a href="http://reprap.org/wiki/G-code">http://reprap.org/wiki/G-code</a> and <a href="https://en.wikipedia.org/wiki/G-code">https://en.wikipedia.org/wiki/G-code</a></p>\n'}, {'answer_id': 3438, 'author': 'ArkTekniK', 'author_id': 660, 'author_profile': 'https://3dprinting.stackexchange.com/users/660', 'pm_score': 2, 'selected': False, 'text': '<p>It really depends on whether you currently have something half printed on the bed when you need to do maintenance. \nFor example, you may have a blockage mid-print or need to reprime the nozzle. </p>\n\n<p>So with that in mind, personally I would separate the line that does the move into two different lines. </p>\n\n<p>Move vertically first, then in X Y. Otherwise, the print head may move diagonally and hit your object. This is because the head will move all three axes at once.</p>\n\n<p>Otherwise looks good.</p>\n\n<p>Edit: Another suggestion is that if you use repetier host to control the printer it will be easier to return to the print in-progress automatically.</p>\n\n<p>Also take a look at the S parameter, for moves it can control how fast the move is.</p>\n'}]
['https://3dprinting.stackexchange.com/questions/3420', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/5446/']