# First Macro Questions. BB version 1.4.2

**URL:** <https://forum.onefinitycnc.com/t/first-macro-questions-bb-version-1-4-2/31148>\
**Category:** Uncategorized\
**Created:** [February 24, 2025, 11:33pm UTC](https://forum.onefinitycnc.com/t/first-macro-questions-bb-version-1-4-2/31148 "2025-02-24T23:33:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ynot](https://avatars.discourse-cdn.com/v4/letter/y/a698b9/32.png) [@ynot](https://forum.onefinitycnc.com/u/ynot)\
**Post date:** [February 24, 2025, 11:33pm UTC](https://forum.onefinitycnc.com/t/first-macro-questions-bb-version-1-4-2/31148/1 "2025-02-24T23:33:41Z")

</div>

Installed my first Macro and have a couple of questions.  
G53 G0 ZO; Machine co-ordinates, Spindle safe hght.  
G53 G0 X125 Y125 ; Machine co-ords, mvs to X & Y co-ords.

In my case the X125 Y125 are the co-ordinates for the inside corner of the 90 degree fence I clamp the work against,

1. The macro apears to stay resident. At boot up & before homing, time remaining shows 0.01 seconds and line 1 of 2. Is this normal and what will happen when I install a second/ third macro?

2. I wanted to check the macro so went to macro edit, could not get out of the edit, turned off the machine and restarted it fortunately it kept the offsets saving some time to reset the axis.

---

<div class="post-metadata">

**Author:** ![ynot](https://avatars.discourse-cdn.com/v4/letter/y/a698b9/32.png) [@ynot](https://forum.onefinitycnc.com/u/ynot)\
**Post date:** [February 26, 2025, 3:44pm UTC](https://forum.onefinitycnc.com/t/first-macro-questions-bb-version-1-4-2/31148/2 "2025-02-26T15:44:21Z")

</div>

Was really hoping for some feedback as I work towards understanding and using G code.

---

<div class="post-metadata">

**Author:** ![ChrisM](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@ChrisM](https://forum.onefinitycnc.com/u/ChrisM)\
**Post date:** [February 26, 2025, 5:11pm UTC](https://forum.onefinitycnc.com/t/first-macro-questions-bb-version-1-4-2/31148/3 "2025-02-26T17:11:16Z")

</div>

Hello Tony,

I don’t really understand what you are asking.

> The macro apears to stay resident. At boot up & before homing, time remaining shows 0.01 seconds and line 1 of 2.

What do you mean by resident. In what screen? When the macros are run they appear in the regular run screen - the place you usually run programs from. When you run another macro it then appears in the run screen.

> I wanted to check the macro so went to macro edit, could not get out of the edit,

If you press the three bars ( the way you got into the menus ) could you not get back to the controller screen? That has always worked for me.

Let us know a little more details about what you are doing, what you pressed and what is or is not happening.

---

<div class="post-metadata">

**Author:** ![ynot](https://avatars.discourse-cdn.com/v4/letter/y/a698b9/32.png) [@ynot](https://forum.onefinitycnc.com/u/ynot)\
**Post date:** [February 26, 2025, 9:57pm UTC](https://forum.onefinitycnc.com/t/first-macro-questions-bb-version-1-4-2/31148/4 "2025-02-26T21:57:03Z")

</div>

As I said, since installing this macro  
G53 G0 ZO; Machine co-ordinates, Spindle safe hght.  
G53 G0 X125 Y125 ; Machine co-ords, mvs to X & Y co-ords.  
The macro works well and does what I want it to.  
Now when I first turn on the computer and 1F in the box that shows time remaining as a program runs, it shows 0.01 seconds, in the box that shows the line number while a program runs it shows line 1 of 2,- ; note it is a two line macro.  
In the late 1980’s I had a program written that was called a TSR or terminate and stay resident, Once loaded it stayed in the background unless called. This macro appears to be similar, except that it shows onscreen at startup, before touching any keys. & therefore it has become part of the start up. Should I be putting an end of file command at the end of the macro?

---

<div class="post-metadata">

**Author:** ![ChrisM](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@ChrisM](https://forum.onefinitycnc.com/u/ChrisM)\
**Post date:** [February 27, 2025, 12:44am UTC](https://forum.onefinitycnc.com/t/first-macro-questions-bb-version-1-4-2/31148/5 "2025-02-27T00:44:39Z")

</div>

Hi Tony,

I just started my machine and typed your macro in and ran it then shut down and started again to see.

Yes, the code is still in the Auto window since that is the last thing that ran. The last program to run whether it’s a macro or any other NC code always stays there. So that is normal behavior.

You just have to be aware that if you press the play button whatever is in the Auto window will run. That caught me out just last weekend. I ran a cutting program in the usual way. When it was done I pressed a macro button to reposition the spindle. After the macro ran I pressed the play button again expecting that the cutting program would start again. But the macro started to run instead since it was the last thing that ran.

My display says Line: 0 of 2 before I run your macro and 2 of 2 after I run it. So why yours says 1 of 2 I don’t know.  
My time remaining says 0:00 so why yours says .01 I don’t know.

It sounds like on boot up the macro runs the first line only then stops. That would explain it saying line 1 of 2 and 1 second remaining - which is all it would take to run the second line.  
However this controller does not have the ability to run one line at time ( single block mode ). And I have never seen a program stop like that.  
Maybe it’s a glitch in the matrix.

There is no end of file command needed. I have 10 macros and none of them have any end of file and they all work great.

The only thing I would recommend is to put a G90 on your first line just incase you happen to be in G91 mode when you call the macro.

If you can run that macro then run other programs fine then I think it’s all good. But that’s just my opinion.

---

<div class="post-metadata">

**Author:** ![squib](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@squib](https://forum.onefinitycnc.com/u/squib)\
**Post date:** [March 17, 2025, 1:37am UTC](https://forum.onefinitycnc.com/t/first-macro-questions-bb-version-1-4-2/31148/6 "2025-03-17T01:37:41Z")

</div>

I installed a spindle on the weekend and used the macro to create the warm up code, now the warmup code stays loaded on boot up. It does create a safety issue as it play button gets accidentally pushed then spindle starts. I would think there would be a means to unload the code after it is used.

---

<div class="post-metadata">

**Author:** ![OnefinityCNC](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/onefinitycnc/32/7_2.png) [@OnefinityCNC](https://forum.onefinitycnc.com/u/OnefinityCNC)\
**Post date:** [March 17, 2025, 1:47am UTC](https://forum.onefinitycnc.com/t/first-macro-questions-bb-version-1-4-2/31148/7 "2025-03-17T01:47:38Z")

</div>

Just load a new code. The BB controller autoloads whatever the last code was used.
