# Gcode pause resume question

**URL:** <https://community.inventables.com/t/gcode-pause-resume-question/57496>\
**Category:** Tips and Tricks\
**Created:** [July 4, 2018, 11:37am UTC](https://community.inventables.com/t/gcode-pause-resume-question/57496 "2018-07-04T11:37:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![StuartPearson](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/stuartpearson/32/67991_2.png) [@StuartPearson](https://community.inventables.com/u/StuartPearson)\
**Post date:** [July 4, 2018, 11:37am UTC](https://community.inventables.com/t/gcode-pause-resume-question/57496/1 "2018-07-04T11:37:08Z")

</div>

I have a project where I want to setup a production line as I have many pieces all the same to machine.

I am making sash window frames and want to place a 2x2 into a jig, machine one side, rotate 90 degrees then machine the next side etc…

I want to create a single gcode file which machines, moves the router out of the way then pauses while I reposition the stock after each side until I manually resume.

In the past I have successfully used the DWELL function G4P15 which pauses for 15 seconds before continuing. I don’t really want to do this as I would like more control over when to restart.

Of course I could have 4 gcode files and send each one individually but wanted a more elegant solution.

I use UGS to send the gcode, I want the equivalent of the UGS pause button but in the gcode file.

---

<div class="post-metadata">

**Author:** ![LarryM](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/larrym/32/51450_2.png) [@LarryM](https://community.inventables.com/u/LarryM)\
**Post date:** [July 4, 2018, 2:06pm UTC](https://community.inventables.com/t/gcode-pause-resume-question/57496/2 "2018-07-04T14:06:02Z")

</div>

[Read this thread](https://community.inventables.com/t/need-to-pause-a-carve-grbl-feed-hold-cycle-start/16419).

---

<div class="post-metadata">

**Author:** ![Nox\_Ferocia](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/nox_ferocia/32/55899_2.png) [@Nox\_Ferocia](https://community.inventables.com/u/Nox_Ferocia)\
**Post date:** [July 4, 2018, 2:09pm UTC](https://community.inventables.com/t/gcode-pause-resume-question/57496/3 "2018-07-04T14:09:00Z")

</div>

M0 or M1 should both trigger a hard pause which should work (you’dd have to enter a manual continue command to move on), but I’d actually recommend doing each face as a separate file, since it gives you more control if something goes wrong (power outage, need to shut down before running all faces, etc)

---

<div class="post-metadata">

**Author:** ![StuartPearson](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/stuartpearson/32/67991_2.png) [@StuartPearson](https://community.inventables.com/u/StuartPearson)\
**Post date:** [July 4, 2018, 2:34pm UTC](https://community.inventables.com/t/gcode-pause-resume-question/57496/4 "2018-07-04T14:34:35Z")

</div>

Thanks Guys

I like the idea of the free hold and cycle start buttons hard wired, I can combine these with a 10 second G4P10 command for my application. I will also have 4 seperate gcode files in case I want to run each job individually in case I need to perform a hard stop.

---

<div class="post-metadata">

**Author:** ![StuartPearson](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/stuartpearson/32/67991_2.png) [@StuartPearson](https://community.inventables.com/u/StuartPearson)\
**Post date:** [August 12, 2018, 7:30am UTC](https://community.inventables.com/t/gcode-pause-resume-question/57496/5 "2018-08-12T07:30:23Z")

</div>

Got around to implementing this. Here is a video and picture of final result. alignment still requires some tweaking.

[![](https://img.youtube.com/vi/q5R9ydmkf7I/maxresdefault.jpg "12 August 2018") ](https://www.youtube.com/watch?v=q5R9ydmkf7I)

 ![7C3DFCC6-EF85-46C1-BCC2-D4A47C1110CF](https://canada1.discourse-cdn.com/flex009/uploads/inventables/original/3X/6/8/68033c3b546abcf095a69fb5759c02353f0a279e.jpeg)

---

<div class="post-metadata">

**Author:** ![LarryM](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/larrym/32/51450_2.png) [@LarryM](https://community.inventables.com/u/LarryM)\
**Post date:** [August 12, 2018, 8:56pm UTC](https://community.inventables.com/t/gcode-pause-resume-question/57496/6 "2018-08-12T20:56:00Z")

</div>

> [@StuartPearson](#):
>
> alignment still requires some tweaking.

Can you elaborate? What requires the tweak?

---

<div class="post-metadata">

**Author:** ![StuartPearson](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/stuartpearson/32/67991_2.png) [@StuartPearson](https://community.inventables.com/u/StuartPearson)\
**Post date:** [August 13, 2018, 1:18pm UTC](https://community.inventables.com/t/gcode-pause-resume-question/57496/7 "2018-08-13T13:18:25Z")

</div>

On the curved end there is a slight difference in height. This is partly because I told the software that the workpiece was 44mm and it is actually 43.91. But more likely I need to have some force onto the workpiece in the -X direction to force it against the bump stop.

I will also use some aluminium foil to get the exact X position of the piece.

I will post again once these steps have been executed to show how accurate I can make it.

Any suggestions to help the accuracy would be most welcome.

---

<div class="post-metadata">

**Author:** ![StuartPearson](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/stuartpearson/32/67991_2.png) [@StuartPearson](https://community.inventables.com/u/StuartPearson)\
**Post date:** [August 13, 2018, 7:25pm UTC](https://community.inventables.com/t/gcode-pause-resume-question/57496/8 "2018-08-13T19:25:08Z")

</div>

Tweaks:

Set width of piece to 43.91mm and altered design accordingly.

Found actual x center of piece by clamping aluminium either side of piece, used touch probe on each side and calculated actual x coordinate of left side.

 ![6EF1BE87-4B60-4DE3-A0A5-F57EACE6678D](https://canada1.discourse-cdn.com/flex009/uploads/inventables/original/3X/3/a/3ae2430135c9c1c86a78ccd65086361c2e5ea8d2.jpeg)

Ran the job and compared results.

Before

 ![6A9FC7B1-006B-4661-96C5-62D7AE7B3F6E](https://canada1.discourse-cdn.com/flex009/uploads/inventables/original/3X/d/f/df70c5538e6bbb5a3297214b17157f4105a7f6ae.jpeg)

After

 ![8C63075F-9102-4855-A2BA-3CE5EF54C24F](https://canada1.discourse-cdn.com/flex009/uploads/inventables/original/3X/b/8/b80206804f85891829585951f30ecaf01c5710ac.jpeg)

Before

 ![29D1B82C-DFE0-4439-83F3-4152C5ED1B2B](https://canada1.discourse-cdn.com/flex009/uploads/inventables/original/3X/c/c/cc12dfaf2c9daf466f3a525f8d3d23788a5e8887.jpeg)

After

 ![CBF07C43-47F4-4FA6-A1F0-8980B5DC0D30](https://canada1.discourse-cdn.com/flex009/uploads/inventables/original/3X/f/8/f84ae8a379a916dbe010463099df23dfa754ca05.jpeg)

Job took

 ![1BFCC27F-C643-4186-B71E-5DF324CFCFC8](https://canada1.discourse-cdn.com/flex009/uploads/inventables/original/3X/6/8/68ce0fcf16935a029e34fd28fb67a48d7249b681.jpeg)

I couldn’t be more pleased with the result. Perfect alignment.

Tweaks worked!

---

<div class="post-metadata">

**Author:** ![JohnChamplain](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/johnchamplain/32/75884_2.png) [@JohnChamplain](https://community.inventables.com/u/JohnChamplain)\
**Post date:** [August 13, 2018, 7:38pm UTC](https://community.inventables.com/t/gcode-pause-resume-question/57496/9 "2018-08-13T19:38:19Z")

</div>

Well done.
