Page 1 of 1

Save workoffsets when zero axis

PostPosted: Tue Apr 12, 2022 10:30 pm
by Pulcik
Hi guys,

I don't know why UCCNC save workoffsets to profile only when closing the app. I would like to save them immediately when I hit zero axis. Can not think a reason, why to do that when closing window. It is pointless at that time.
One example for all. When the computer losses power, the machine is stopped. You start the computer, start the UCCNC and your workoffset is gone. Good luck with finding the datum again. If it is saved immediately, you just home the machine and continue working.

I already did this with my M6 macro. When the macro set the new tool number, I immediately save it in my profile too. In my eyes, the app should do that defaulty.

Cheers,
Martin

Re: Save workoffsets when zero axis

PostPosted: Sat Apr 16, 2022 5:47 pm
by fixebr
Could you post your macro so that you can study it? Thanks in advance.

Re: Save workoffsets when zero axis

PostPosted: Sat Apr 23, 2022 10:39 am
by Battwell
at the start of my code in post processor i added a simple macro call which saves all offsets before the code is run. this way any updated positions of z zero etc are saved for that code file run.
it has worked really well over the last 5 years and i can always re start from known offsets etc.

Re: Save workoffsets when zero axis

PostPosted: Sun May 01, 2022 5:22 pm
by Pulcik
That sounds perfect.
Will you be so kind, and share that post process addition, please?

Re: Save workoffsets when zero axis

PostPosted: Wed May 18, 2022 8:26 am
by Battwell
in your macros folder.. add a macro with the following in it.
mine was originally set as m12 (an unused macro number)
add m12 to your post processor at the start of the code output. (header)

just 2 lines for the macro.

exec.Callbutton(527);
exec.Callbutton(218);