Save workoffsets when zero axis

Here is where you can request new features or special features.

Save workoffsets when zero axis

Postby Pulcik » Tue Apr 12, 2022 10:30 pm

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
Pulcik
 
Posts: 39
Joined: Thu Aug 27, 2020 10:04 am

Re: Save workoffsets when zero axis

Postby fixebr » Sat Apr 16, 2022 5:47 pm

Could you post your macro so that you can study it? Thanks in advance.
My English is bad, so you're reading machine translation results. Alas.
User avatar
fixebr
 
Posts: 40
Joined: Thu Dec 30, 2021 8:30 pm
Location: Russia, Moscow

Re: Save workoffsets when zero axis

Postby Battwell » Sat Apr 23, 2022 10:39 am

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.
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: Save workoffsets when zero axis

Postby Pulcik » Sun May 01, 2022 5:22 pm

That sounds perfect.
Will you be so kind, and share that post process addition, please?
Pulcik
 
Posts: 39
Joined: Thu Aug 27, 2020 10:04 am

Re: Save workoffsets when zero axis

Postby Battwell » Wed May 18, 2022 8:26 am

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);
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk


Return to Feature Request

Who is online

Users browsing this forum: No registered users and 3 guests