# Lock Mach4 work offsets

**URL:** <https://forum.avidcnc.com/t/lock-mach4-work-offsets/2915>\
**Category:** General Chat\
**Created:** [February 5, 2024, 3:12am UTC](https://forum.avidcnc.com/t/lock-mach4-work-offsets/2915 "2024-02-05T03:12:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srdrgz12](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Srdrgz12](https://forum.avidcnc.com/u/Srdrgz12)\
**Post date:** [February 5, 2024, 3:13am UTC](https://forum.avidcnc.com/t/lock-mach4-work-offsets/2915/1 "2024-02-05T03:13:00Z")

</div>

Is there a way to lock, let’s say a G57 offset?  
I don’t want my G57 work offset to change but if I select the G57 instead of G54 and then use the corner finding touch the G57 offset will change according to the touch probe.

I realize this is my fault and should be more careful but is there a way to somewhat lock in these work offsets?

---

<div class="post-metadata">

**Author:** ![corbin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/corbin/32/2800_2.png) [@corbin](https://forum.avidcnc.com/u/corbin)\
**Post date:** [February 7, 2024, 1:24am UTC](https://forum.avidcnc.com/t/lock-mach4-work-offsets/2915/2 "2024-02-07T01:24:48Z")

</div>

Yeah, I use offsets a lot, and I know the pain of accidentally changing them. The only way to do this is to backup your machine settings that save the offset once you set it to where you want it. I use a source control management program, git, to do it. And a graphical UI to see it (GitHub Desktop). that way, if I change them, I can easily revert it back to the previous value.

I wish Mach 4 had a better UI for showing which offset you are in. I might have to code something up to do this.

I did add some buttons that “copy the current offset to G54 and make G54 active” so I won’t mess up my other offsets.

Code is here: [Mach-4-Avid-CNC-Customizations/Modules/CorbinsWorkshop/CWUtilities.lua at main · corbinstreehouse/Mach-4-Avid-CNC-Customizations · GitHub](https://github.com/corbinstreehouse/Mach-4-Avid-CNC-Customizations/blob/main/Modules/CorbinsWorkshop/CWUtilities.lua)

Function to look at is CWUtilities.CopyCurrentOffsetToG54.

Corbin

---

<div class="post-metadata">

**Author:** ![corbin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/corbin/32/2800_2.png) [@corbin](https://forum.avidcnc.com/u/corbin)\
**Post date:** [February 7, 2024, 1:26am UTC](https://forum.avidcnc.com/t/lock-mach4-work-offsets/2915/3 "2024-02-07T01:26:03Z")

</div>

And the file for backing up your offsets is fixturetables.tls

IE: mine, in git, is:

> <https://github.com/corbinstreehouse/Mach-4-Avid-CNC-Customizations/blob/main/Profiles/AvidCNC/FixtureTables/fixturetable.tls>

---

<div class="post-metadata">

**Author:** ![Srdrgz12](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Srdrgz12](https://forum.avidcnc.com/u/Srdrgz12)\
**Post date:** [February 7, 2024, 3:14am UTC](https://forum.avidcnc.com/t/lock-mach4-work-offsets/2915/4 "2024-02-07T03:14:40Z")

</div>

Thank you. This will be very helpful. Btw, your YouTube videos are great. Your attention to detail is amazing.

---

<div class="post-metadata">

**Author:** ![greg.obj](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/greg.obj/32/2807_2.png) [@greg.obj](https://forum.avidcnc.com/u/greg.obj)\
**Post date:** [February 7, 2024, 6:29pm UTC](https://forum.avidcnc.com/t/lock-mach4-work-offsets/2915/5 "2024-02-07T18:29:41Z")

</div>

This is so useful. Going to be setting up mdf fixtures for a huge batch I have to do and saving all the locations will be an amazing time saver.

---

<div class="post-metadata">

**Author:** ![corbin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/corbin/32/2800_2.png) [@corbin](https://forum.avidcnc.com/u/corbin)\
**Post date:** [February 7, 2024, 6:44pm UTC](https://forum.avidcnc.com/t/lock-mach4-work-offsets/2915/6 "2024-02-07T18:44:45Z")

</div>

I really want to add “names” to each of the offset; it would help clarify things.
