# Macro not running

**URL:** <https://forum.lightburnsoftware.com/t/macro-not-running/6503>\
**Category:** LightBurn Software Questions\
**Created:** [September 7, 2019, 2:57pm UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503 "2019-09-07T14:57:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![GreenCameleon](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/g/e19b73/32.png) [@GreenCameleon](https://forum.lightburnsoftware.com/u/GreenCameleon)\
**Post date:** [September 7, 2019, 2:57pm UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/1 "2019-09-07T14:57:43Z")

</div>

I want to simulate a “test fire” button on my k40 (running MiniGerbil, Lightburn 0.9.07) using the following g-code:  
$32=0  
S200  
M3  
G4 P200  
M5  
$32=1

I’ve created a macro and pasted the code above. Upon clicking on the button, the Lasers state goes to “Busy” and does not finish. I tried running the same lines from the “Command” input field by removing all newlines and that works.

Would you know, why the macro does not run/does not finish, if it’s ran via the button? I’m attaching a gif, which shows the issue.

Thank you.

 ![ProblemWithRunningAMacro_07092019](https://forum.lightburnsoftware.com/uploads/default/original/2X/9/93a561b751024cc269d4d9ceaff7a18c59fd5454.gif)

---

<div class="post-metadata">

**Author:** ![LightBurn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightburn/32/75577_2.png) [@LightBurn](https://forum.lightburnsoftware.com/u/LightBurn)\
**Post date:** [September 7, 2019, 5:08pm UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/2 "2019-09-07T17:08:20Z")

</div>

The first and last lines shouldn’t be necessary, and the first would be $32=0 if you decide you need it. They aren’t GCode, so the streamer might not like those, but I’d be surprised if it doesn’t work with the correct command in the first spot.

---

<div class="post-metadata">

**Author:** ![GreenCameleon](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/g/e19b73/32.png) [@GreenCameleon](https://forum.lightburnsoftware.com/u/GreenCameleon)\
**Post date:** [September 7, 2019, 5:24pm UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/3 "2019-09-07T17:24:37Z")

</div>

Thank you, I’ll try it out tomorrow, without the $ setting lines. Sorry about the typo in the first line (the gif actually shows the commands, which were sent). I’ve taken the commands from the official MiniGerbil forum [post](https://awesome.tech/k40-forum/topic/test-fire-switch-macro-for-light-burn/#postid-1118), so I thought it should work, since others have already tried it.

---

<div class="post-metadata">

**Author:** ![LightBurn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightburn/32/75577_2.png) [@LightBurn](https://forum.lightburnsoftware.com/u/LightBurn)\
**Post date:** [September 7, 2019, 5:29pm UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/4 "2019-09-07T17:29:30Z")

</div>

Hmm - if this is for the Mini Gerbil those might be needed. Paul has done a few non-standard things with his version, so it’s possible that the M3 command uses velocity ramping, where standard GRBL reserves M4 for that, and M3 is constant power.

---

<div class="post-metadata">

**Author:** ![LightBurn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightburn/32/75577_2.png) [@LightBurn](https://forum.lightburnsoftware.com/u/LightBurn)\
**Post date:** [September 7, 2019, 5:32pm UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/5 "2019-09-07T17:32:08Z")

</div>

It’s on our buglist to change the macro sender to go line-by-line. Currently it uses the streaming code, but for some things like the $ commands, they don’t buffer the same way on the GRBL side, so they have to be sent one line at a time.

---

<div class="post-metadata">

**Author:** ![beltramidave](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/beltramidave/32/56563_2.png) [@beltramidave](https://forum.lightburnsoftware.com/u/beltramidave)\
**Post date:** [September 9, 2019, 11:38pm UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/6 "2019-09-09T23:38:32Z")

</div>

Is there a fix yet for this? Macro not working after update to 9.07.

---

<div class="post-metadata">

**Author:** ![Rick](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/rick/32/69_2.png) [@Rick](https://forum.lightburnsoftware.com/u/Rick)\
**Post date:** [September 9, 2019, 11:58pm UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/7 "2019-09-09T23:58:37Z")

</div>

> [@LightBurn 0.9.07 released](https://forum.lightburnsoftware.com/t/lightburn-0-9-07-released/6490/21):
>
> The GCode macro issue has been fixed. Re-download the 0.9.07 version from our website. Since this is the only thing that’s changed, it wasn’t really worth doing a full release cycle.

---

<div class="post-metadata">

**Author:** ![beltramidave](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/beltramidave/32/56563_2.png) [@beltramidave](https://forum.lightburnsoftware.com/u/beltramidave)\
**Post date:** [September 10, 2019, 3:02am UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/8 "2019-09-10T03:02:05Z")

</div>

Thank you, I will download and check.

---

<div class="post-metadata">

**Author:** ![GreenCameleon](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/g/e19b73/32.png) [@GreenCameleon](https://forum.lightburnsoftware.com/u/GreenCameleon)\
**Post date:** [September 10, 2019, 7:32pm UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/9 "2019-09-10T19:32:04Z")

</div>

It works perfectly for me now. Thank you, Oz!

---

<div class="post-metadata">

**Author:** ![beltramidave](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/beltramidave/32/56563_2.png) [@beltramidave](https://forum.lightburnsoftware.com/u/beltramidave)\
**Post date:** [September 11, 2019, 2:22am UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/10 "2019-09-11T02:22:16Z")

</div>

Works great after re-downloading V9.07. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/system/32/64335_2.png) [@system](https://forum.lightburnsoftware.com/u/system)\
**Post date:** [October 11, 2019, 2:22am UTC](https://forum.lightburnsoftware.com/t/macro-not-running/6503/11 "2019-10-11T02:22:18Z")

</div>

Closed on October 11, 2019, 2:22am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
