<p>With Ender 3 is there a way to configure printer extruder to go all way up when the printing finishes?</p>

<p>Or even with the Ultimaker Cura software?</p>

<p>I want this, because i'm going to put a switch on the top of the printer that will switch it off when the printer finishes (if i can make the arm with the extruder go all the way up when printing finishes.)</p>

<p>How can this be done?</p>

[{'answer_id': 10625, 'author': 'user77232', 'author_id': 12857, 'author_profile': 'https://3dprinting.stackexchange.com/users/12857', 'pm_score': 0, 'selected': False, 'text': '<p>If you use OctoPrint, there is a plugin that will allow you to take action on certain events, such as print completion. The action that it can take would allow you to turn of a TP-link smart plug; which would turn off the printer. You could then use the phone app to turn it back on.</p>\n'}, {'answer_id': 10627, 'author': 'Trish', 'author_id': 8884, 'author_profile': 'https://3dprinting.stackexchange.com/users/8884', 'pm_score': 1, 'selected': False, 'text': '<p>In Ultimaker Cura (and pretty much any slicer), you can easily modify the end code of the Ender 3. To go all the way up, you could add the following in the end:</p>\n\n<pre><code>G90 ;absolute positioning\nG1 Z300 ;goto height 300 ; Move to 300 mm = 30 cm.\nG91 ;back to relative positioning\n</code></pre>\n'}, {'answer_id': 10628, 'author': '0scar', 'author_id': 5740, 'author_profile': 'https://3dprinting.stackexchange.com/users/5740', 'pm_score': 2, 'selected': False, 'text': '<p>The most safe way to move the printer up to the maximum print height is to use a concept known as "<strong>keywords</strong>" (sort of constants that are filled by the correct value when slicing) in Ultimaker Cura, certainly if you have multiple printers with different print area sizes.</p>\n\n<p>To use these keywords, just add these in between curly braces and insert them into your slicer "End G-code" script. These keywords will be substituted with actual numbers from the printer settings or slicing configuration parameters. In this case we need to use the maximum print height which is specified by the keyword <code>machine_height</code>. This keyword takes its value from the printer settings, set for the printer in the graphical user interface of the printer settings, see image below (this is a configuration of an Ultimaker 3 Extended, it also shows the <strong>Start G-code</strong> and <strong>End G-code</strong> which you can tweak yourself, as seen by the additional G-code line <code>G0 F10000 Z{machine_height}</code> that has been added for this demonstration).</p>\n\n<p><a href="https://i.stack.imgur.com/Np6Gy.png" rel="nofollow noreferrer" title="Printer settings, configuration of an Ultimaker 3 Extended"><img src="https://i.stack.imgur.com/Np6Gy.png" alt="Printer settings, configuration of an Ultimaker 3 Extended" title="Printer settings, configuration of an Ultimaker 3 Extended"></a></p>\n\n<p>E.g. similar to <a href="/a/10627">this answer</a>, you could solve this with a keyword. Now when you slice for a certain printer (e.g. with the printer settings of the image above), the correct value will be filled in automatically when slicing the print object as can be seen from this snippet of G-code:</p>\n\n<pre>\n...\nG91 ;Relative movement\nG0 F15000 X8.0 Z0.5 E-4.5 ;Wiping+material retraction\nG0 F10000 Z1.5 E4.5 ;Compensation for the retraction\nG90 ;Disable relative movement\nG0 F10000 Z300 ; &lt;------------ note to see {machine_height} be resolved to 300 mm\n...\n</pre>\n\n<hr>\n\n<p><em>This is specifically for Ultimaker Cura. Do note that e.g. Slic3r even takes the keyword  concept further by allowing arithmetic and logic, similar as you could do in programming languages!</em></p>\n'}]
['https://3dprinting.stackexchange.com/questions/10622', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/16424/']