<p>Often, the pre-generated G-code is enough for start and end. However, sometimes we want to have something different. In this case: how to generate an audible alert of something like 4 bleeps at the end of the print, after putting the printer into the end position and when the bed has reached a "safe" 30 °C?</p>

[{'answer_id': 11057, 'author': 'Trish', 'author_id': 8884, 'author_profile': 'https://3dprinting.stackexchange.com/users/8884', 'pm_score': 4, 'selected': True, 'text': "<p>Let's put the parts one by one:</p>\n\n<ul>\n<li>Wait for bed temperature being at 30\xa0°C: <code>M190 R30</code></li>\n<li>Play Bleep for 1/5th of a second: <code>M300 S440 P200</code></li>\n<li>Wait for 1/5th of a second: <code>G4 P200</code></li>\n</ul>\n\n<p>That gives:</p>\n\n<pre><code>M190 R30\nM140 S0\nM300 S440 P200\nG4 P200\nM300 S440 P200\nG4 P200\nM300 S440 P200\nG4 P200\nM300 S440 P200\nG4 P200\n</code></pre>\n\n<p>Just for 0scar:</p>\n\n<pre><code>M300 S1396.91 P400 ;f7\nG4 P400\nM300 S1661.22 P600 ;as7\nM300 S1396.91 P400 ;f7\nM300 S1396.91 P200 ;f7\nM300 S1864.66 P400 ;b7\nM300 S1244.51 P400 ;es7\nM300 S1396.91 P400 ;f7\nG4 P400\nM300 S2093.00 P400 ;c8\nM300 S1396.91 P400 ;f7\nM300 S1396.91 P200 ;f7\nM300 S2217.46 P400 ;des8\nM300 S2093.00 P400 ;c8\nM300 S1661.22 P400 ;as7\nM300 S1396.91 P400 ;f7\nM300 S2093.00 P400 ;c8\nM300 S2793.83 P400 ;f8\nM300 S1244.51 P400 ;es7\nM300 S1244.51 P200 ;es7\nM300 S1046.50 P400 ;c7\nM300 S1567.98 P400 ;g7\nM300 S1396.91 P1600 ;f7\n</code></pre>\n"}, {'answer_id': 11121, 'author': 'jæk', 'author_id': 18718, 'author_profile': 'https://3dprinting.stackexchange.com/users/18718', 'pm_score': 1, 'selected': False, 'text': "<p>Trish's version is good but wait for bed temperature being at 30\xa0°C (<code>M190 R30</code>) before setting the temperature to 0\xa0°C (<code>M140 S0</code>)</p>\n<p>So this is my version:</p>\n<pre><code>G91 ;relative positioning\nG1 E-1 F300  ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nG1 Y150 F5000 ;move completed part out\nM84 ;steppers off\nG90 ;absolute positioning\nM190 R30 ;waits until cooling to 30 °C\nM300 S300 P1000 ;beep\nM300 S300 P1000 ;beep\nM300 S300 P1000 ;beep\nM300 S300 P1000 ;beep\nM104 S0 ;extruder heater off\nM140 S0 ;heated bed heater off \n</code></pre>\n"}]
['https://3dprinting.stackexchange.com/questions/11056', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/8884/']