Simple Auto Zero

Post anything you want to discuss with others about the software.

Simple Auto Zero

Postby naijin » Thu Nov 05, 2020 10:05 am

Hi there, is there a macro in uccnc to do a simple z axis auto zero, like Gery21's 2017 screen had, or is there a way to modify the probing macro?
Nick
naijin
 
Posts: 106
Joined: Mon Dec 04, 2017 11:24 pm

Re: Simple Auto Zero

Postby eabrust » Thu Nov 05, 2020 1:02 pm

If by simple probing means you have a movable touchplate that you put under your bit at any location on the table you chose, this is what I use for Z touchoff. Note attached macro is in INCHEs, and is setup for a 1.000" thick touchoff plate. You will need to modify the variables at the top of the file to suit your needs (convert to metric if necessary, change feeds, plate thickness, etc).

M31.txt
(2.26 KiB) Downloaded 982 times


M31 is tied to the 'probe' button that is already on the UCCNC basic screensets, just put it in your profile/macro folder.


regards
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 357
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: Simple Auto Zero

Postby naijin » Thu Nov 05, 2020 10:57 pm

Thank you Eric, that's exactly what I was after, I will modify it for metric measurements. :D :D
Cheers
Nick
naijin
 
Posts: 106
Joined: Mon Dec 04, 2017 11:24 pm

Re: Simple Auto Zero

Postby santiniuk » Fri Apr 08, 2022 8:41 pm

Hi folks,

I'm looking for assistance to modify this probing macro.
I am using this on my probe button on main screen and it works great. Credit to the author. One thing that has me paranoid is pressing it by mistake and it automatically starts. Also similar thoughts on the Goto Park 1 and 2 buttons.

Is there some code I can add to the macro that would popup a dialogue confirmation box. Basically a Continue YES / NO button that would require confirmation before the action of the macro starts.

Thanks for any help.
santiniuk
 
Posts: 19
Joined: Fri Oct 01, 2021 10:06 pm
Location: U.K

Re: Simple Auto Zero

Postby dezsoe » Fri Apr 08, 2022 8:56 pm

Edit those macros and insert the following lines at the beginning before anything else:

Code: Select all
if (MessageBox.Show("Start anything?", "Are you sure?", MessageBoxButtons.YesNo) != DialogResult.Yes)
  return;
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Simple Auto Zero

Postby santiniuk » Fri Apr 08, 2022 9:02 pm

Works perfect!

Thanks dezsoe. So easy but now feel safer knowing any daft mistakes I make will require confirmation first.

Cheers
santiniuk
 
Posts: 19
Joined: Fri Oct 01, 2021 10:06 pm
Location: U.K


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 11 guests