# Software Pause, Change Filament gcode

**URL:** <https://forum.lulzbot.com/t/software-pause-change-filament-gcode/1548>\
**Category:** Software\
**Created:** [March 26, 2015, 3:13am UTC](https://forum.lulzbot.com/t/software-pause-change-filament-gcode/1548 "2015-03-26T03:13:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![discojon](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@discojon](https://forum.lulzbot.com/u/discojon)\
**Post date:** [March 26, 2015, 3:13am UTC](https://forum.lulzbot.com/t/software-pause-change-filament-gcode/1548/1 "2015-03-26T03:13:25Z")

</div>

I have been experimenting with gcode to move to a park position, retract, wait for intervention, home, and resume and this is where I’m at. Seems to work well for my needs when manually inserted into the Gcode. Octoprint will execute up to the M0 command then pause and wait for operator to hit resume. Extruder and bed stay at set temp. I’d like some criticism or ideas on how to streamline the code. I’m aware of the M600 command but the beeping drives me crazy.

```nohighlight
				;Pause Code
G91 ;Set Relative Mode
G1 E-5.000000 F500	;Retract 5mm
G1 Z15 F300 ;move Z up 15mm
G90 ;Set Absolute Mode
G1 X20 Y20 F9000 ;Move to hold position
G91 ;Set Relative Mode
G1 E-40 F500 ;Retract 40mm
M0 ;Idle Hold
G90 ;Set Absolute Mode
G1 F5000 ;Set speed limits
G28 X0 Y0 ;Home X Y
M82 ;Set extruder to Absolute Mode
G92 E0 ;Set Extruder to 0

```

---

_[View the full topic](https://forum.lulzbot.com/t/software-pause-change-filament-gcode/1548)._
