# Delay when implementing automation macros

**URL:** <https://forum.sienci.com/t/delay-when-implementing-automation-macros/26225>\
**Category:** 🐛 Bug\
**Created:** [April 21, 2026, 8:23pm UTC](https://forum.sienci.com/t/delay-when-implementing-automation-macros/26225 "2026-04-21T20:23:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marty3450](https://forum.sienci.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@Marty3450](https://forum.sienci.com/u/Marty3450)\
**Post date:** [April 21, 2026, 8:23pm UTC](https://forum.sienci.com/t/delay-when-implementing-automation-macros/26225/1 "2026-04-21T20:23:57Z")

</div>

I am wanting to use 2 macros on pause and resume to raise and stop my spindle (on pause) and start my spindle, delay 6 seconds and lower my spindle on resume. I’m having a heck of a time with a delay as soon as I enable these macros and also it not working consistently. Without the macros enabled, the pause button is very reliable, there is almost no delay but as soon as I enable the macros, there is a huge delay, so much so that it’s completely unreliable ( 4 to 10 seconds).  
Below are the macros I have been trying:

On Pause:

M05 ; stop spindle

G91 ; Relative positioning

G0 Z25.4 ; Raise 25.4mm

G90 ;Absolute positioning

On Resume

M03 ; Restart spindle

G4 P2 Wait 2 seconds

G91 ; Relative positioning

G0 Z-25.4 ; Lower 25.4mm

G90 ; Absolute positioning

Aside from the delay which I find absolutely unacceptable, the 2 second pause on resume isn’t working and I have no confidence it is raising or lowering the correct amount (sometimes it goes right to the hard stop of Z which is over 50mm higher and it seems too low sometimes when it starts). I have never had these macros enabled when I was actually performing a cut, I just don’t trust it.  
Anyone else having similar issues or can help?

---

<div class="post-metadata">

**Author:** ![KGN](https://forum.sienci.com/letter_avatar_proxy/v4/letter/k/c77e96/32.png) [@KGN](https://forum.sienci.com/u/KGN)\
**Post date:** [April 22, 2026, 2:23pm UTC](https://forum.sienci.com/t/delay-when-implementing-automation-macros/26225/2 "2026-04-22T14:23:01Z")

</div>

Pause automation not being instant is not a bug, it’s the only way to send gcode before a hold state.

See my explanations in the following threads:

> [@Settings -\> Program Events -\> Program Pause/Resume](https://forum.sienci.com/t/settings-program-events-program-pause-resume/9139/2):
>
> This is by design and should (or will be) part of the documentation. Standard pause issues a feed hold which pauses movement immediately even if there are movements planned - those movements will happen once the hold is resumed. Feed hold prevents further g-code commands from being executed, which also means that gSender cannot inject any code. Pause events stop sending on the software side (sender hold) so no further lines are sent but that also means than any planned movements already in th…

> [@Automations line pause](https://forum.sienci.com/t/automations-line-pause/26133/23):
>
> They do, but pause works a little differently. Since you can’t send non-realtime commands in a hold state, pause automations have the following effect: Stop sending on the sender side (workflow pause) Empty buffer (firmware handles all planned movements) On empty buffer, send pause automation - so the pause code will actually run Actually hold the firmware using ! The side effect of this is that pauses are no longer instant (as if we held instantly we’d have no way to send the pause automati…

> [@gSender Edge - 1.5.0-Edge-8 - All New UI!](https://forum.sienci.com/t/gsender-edge-1-5-0-edge-8-all-new-ui/14248/92):
>
> You can do this in Pause/Resume automations (in both Edge and main) with the caveat that pause events change pause behaviour (we can’t simply immediately feed hold because we need to be able to send the event code so it stops sending but completes the planning buffer vs holding immediately if there’s no event)

---

<div class="post-metadata">

**Author:** ![KGN](https://forum.sienci.com/letter_avatar_proxy/v4/letter/k/c77e96/32.png) [@KGN](https://forum.sienci.com/u/KGN)\
**Post date:** [April 30, 2026, 3:34pm UTC](https://forum.sienci.com/t/delay-when-implementing-automation-macros/26225/3 "2026-04-30T15:34:24Z")

</div>


