# Auto Router Turn On Code - Question re Pause

**URL:** <https://forum.onefinitycnc.com/t/auto-router-turn-on-code-question-re-pause/8253>\
**Category:** Controller (Buildbotics) Discussion\
**Created:** [October 13, 2021, 12:44pm UTC](https://forum.onefinitycnc.com/t/auto-router-turn-on-code-question-re-pause/8253 "2021-10-13T12:44:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orthobill13](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@Orthobill13](https://forum.onefinitycnc.com/u/Orthobill13)\
**Post date:** [October 13, 2021, 12:44pm UTC](https://forum.onefinitycnc.com/t/auto-router-turn-on-code-question-re-pause/8253/1 "2021-10-13T12:44:17Z")

</div>

I posted this within another thread [Tool Enable - M15 - & Breakout board (auto turn off/on router) - #90 by Orthobill13](https://forum.onefinitycnc.com/t/tool-enable-m15-breakout-board-auto-turn-off-on-router/720/91), but wanted to make this a stand alone.

I added the iot relay and Break out Board. Works great thanks to the above instructions.

**Question:** When the router starts up, the tool path is pretty much ready to go and starts immediately. I would like to have a short pause, maybe 1 or 2 seconds, to make sure the router is fully up to speed before it starts. What is the g code for that?

I tried this in a test run:

G90  
G20  
(Contour.T…)  
M05  
M0 ;T102  
M03S10000  
G4 P2  
G0X2.8086Y3.4370Z0.1500  
G1Z-0.0500F8.0  
Y5.5630F20.0  
X5.1914  
Y3.4370  
X2.8086  
Z0.1500  
M05  
M02

The pause, or G4 dwell works, but not in the sequence I would have thought. The dwell of 2 seconds happens before the router turns on. As soon as the pause finishes, the router is activated and the tool paths happen. I would have thought having the pause after the M3 line would pause after the start of the router?

Do I need to add a G00 line for the x to move up a little, then pause, then let the program run?

Anyone do a pause? Is this an issue?

Thanks all! Bill

---

<div class="post-metadata">

**Author:** ![AndyP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/andyp/32/1106_2.png) [@AndyP](https://forum.onefinitycnc.com/u/AndyP)\
**Post date:** [October 13, 2021, 5:13pm UTC](https://forum.onefinitycnc.com/t/auto-router-turn-on-code-question-re-pause/8253/2 "2021-10-13T17:13:45Z")

</div>

This is my output from F360 pp. The controller pauses cutting for 10 seconds after the spindle has been initiated  
“N25 S8000 M3 → spindle on  
N30 G4 P10” → 10 second pause

Actual gcode is below.

```auto
%
(TEST2)
(ANDY PROGRAMME COMMENT)
(MACHINE)
( VENDOR KIRBRE ENTERPRISES INC)
( MODEL WOODWORKER)
( DESCRIPTION ONEFINITY COMMUNITY V43242.4)
(T1 D=6.35 CR=0 - ZMIN=-12 - FLAT END MILL)
N10 G90 G94 G17 G91.1
N15 G21
(WHEN USING FUSION 360 FOR PERSONAL USE, THE FEEDRATE OF)
(RAPID MOVES IS REDUCED TO MATCH THE FEEDRATE OF CUTTING)
(MOVES, WHICH CAN INCREASE MACHINING TIME. UNRESTRICTED RAPID)
(MOVES ARE AVAILABLE WITH A FUSION 360 SUBSCRIPTION.)
N20 G53 G0 Z0

(2D CONTOUR1)
(T1)
N25 S8000 M3
N30 G4 P10
N35 G54
N40 G0 X146.307 Y99.487

```

---

<div class="post-metadata">

**Author:** ![Orthobill13](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@Orthobill13](https://forum.onefinitycnc.com/u/Orthobill13)\
**Post date:** [October 13, 2021, 6:19pm UTC](https://forum.onefinitycnc.com/t/auto-router-turn-on-code-question-re-pause/8253/3 "2021-10-13T18:19:02Z")

</div>

Thanks for the reply. I tried to code in the G4 line again, with a 2 second pause. It is still pausing without turning on the router and vac, starting to move and then turning on.

Here is a video of the start sequence, you can see the line of code, hear the machine start to move, and then the router and vac turn on, which is still out of sequence I feel.

Video:

[![]( " - YouTube") ](https://www.youtube.com/watch?v=SjdbKX7u28s)

Here is the start of code that I was running:

G90  
G20  
(Contour.T…)  
M05  
M0 ;T102  
M03S10000  
G4 P2  
G0X3.3185Y4.3185Z0.1500  
G1Z-0.0500F8.0  
X3.3017Y4.3356F20.0  
X3.2870Y4.3514  
X3.2706Y4.3698  
etc…

Anyone have any ideas as to why the router is not starting first, pause, and then run the code?

---

<div class="post-metadata">

**Author:** ![AndyP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/andyp/32/1106_2.png) [@AndyP](https://forum.onefinitycnc.com/u/AndyP)\
**Post date:** [October 13, 2021, 9:06pm UTC](https://forum.onefinitycnc.com/t/auto-router-turn-on-code-question-re-pause/8253/4 "2021-10-13T21:06:57Z")

</div>

Spooky - sometimes it helps to test extreme cases to expose an error - experiment with a +10-second delay. It may be that your spindle needs more than 2 seconds to get going.

---

<div class="post-metadata">

**Author:** ![Orthobill13](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@Orthobill13](https://forum.onefinitycnc.com/u/Orthobill13)\
**Post date:** [October 14, 2021, 2:22pm UTC](https://forum.onefinitycnc.com/t/auto-router-turn-on-code-question-re-pause/8253/5 "2021-10-14T14:22:23Z")

</div>

Great idea Andy. I tried that this morning. The pause was for 10 seconds, and then the router started right up AFTER the pause, not before like one would think it should.

Not sure what is going on…

---

<div class="post-metadata">

**Author:** ![Orthobill13](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@Orthobill13](https://forum.onefinitycnc.com/u/Orthobill13)\
**Post date:** [October 15, 2021, 5:04pm UTC](https://forum.onefinitycnc.com/t/auto-router-turn-on-code-question-re-pause/8253/6 "2021-10-15T17:04:22Z")

</div>

Update - the issue just is not at the beginning of the run. I ran a really run just now, and between every move, in other words between each G0 move, the router is turning off and then back on before the cut. So during any given job, it will turn on and off several times. Very unsettling, I plugged the router back into a non switched outlet for now until I can figure it out.

Here is a video of that occurrence:

[![]( " - YouTube") ](https://www.youtube.com/watch?v=glMksYiunks)

Any help would be very much appreciated!

Bill

---

<div class="post-metadata">

**Author:** ![Orthobill13](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@Orthobill13](https://forum.onefinitycnc.com/u/Orthobill13)\
**Post date:** [October 15, 2021, 5:30pm UTC](https://forum.onefinitycnc.com/t/auto-router-turn-on-code-question-re-pause/8253/7 "2021-10-15T17:30:23Z")

</div>

**SOLVED** : I remember seeing a YouTube video of another person using the code to turn the router on and off. You need to deselect rapid-auto-off and dynamic-power under tool setting. Duh.

Not sure which one was causing my issue, but solved now!!! It turns out without delay, perfect.
