Hello Guest it is July 17, 2019, 03:15:30 PM

Author Topic: Ref all home does nothing?  (Read 138 times)

0 Members and 1 Guest are viewing this topic.

Ref all home does nothing?
« on: June 19, 2019, 12:15:45 PM »
Hi
I would appreciate some help/direction as how to get my Ref All Home to work.

I've been using mach 3 on my cnc mill for 3 years or so. I've just had to change out the computer and reinstall Mach 3 and copied in my XML file for the mill. Everything seems to work fine except the ref all home button. When pressed it does not move to the home switches, it zero'ed the x and y in machine co-ordinates but not the z.

i re-installed mach 3 again with the same result.

I didn't have any problems 3 years ago after the doing the normal configuration.

I had a look at the button script (here I'm getting into unfamiliar territory) which is:
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )

DoOEMButton(133)
DoOEMButton(134)
DoOEMButton(135)

I found some info online and added at the end of this script:
While IsMoving
  Wend
  Code "G53 G0 Z-10"
  Code "G53 G0 Z10"
  Code "G53 G0 Z10"
  While IsMoving
Wend

I don't know enough to understand the above and it did not work, it moved each axis a short distance, and zero'd the mach co-ordinates.

I've no idea whats going on.

Thanks in advance.

Nigel
« Last Edit: June 19, 2019, 12:22:23 PM by Nigel Walton »
Re: Ref all home does nothing?
« Reply #1 on: June 19, 2019, 01:34:59 PM »
After a bit more research I now understand what the additional script i added does and it can't solve the problem.
(i.e. G53 simply moves the axis to where the current mach co-ordinate '0' is and backs off the distance specified)

So I'm mystified why the Home All Ref does not work, so any help appreciated.

I've ran some gcode and other than Homing it's running OK.

Thanks
Re: Ref all home does nothing?
« Reply #2 on: June 19, 2019, 01:47:35 PM »
Hi,
if I recall correctly its not necessary to use macros.......have you set up the 'home order' and unchecked the 'home in place'
setting in Config/Homing-Limits page?

Craig
My wife left with my best friend...
     and I miss him!
Re: Ref all home does nothing?
« Reply #3 on: June 19, 2019, 03:58:32 PM »
Hi Criag
Thanks for your reply. I don't seem to have those settings in my system (Mach3). I've (hopefully) attached a copy of my Hime and Limits config page.

Thanks
Nigel

Offline Graham Waterworth

*
  • *
  •  1,863 1,863
  • Yorkshire Dales, England
    • View Profile
Re: Ref all home does nothing?
« Reply #4 on: June 19, 2019, 04:18:03 PM »
All you need in the Home All Button is this.

DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )

DoOEMButton(133)
DoOEMButton(134)
DoOEMButton(135)

Do you have home switches setup in ports and pins?

Never give up, time will pass, the cloud will clear, the sun will shine once more.
Re: Ref all home does nothing?
« Reply #5 on: June 19, 2019, 04:30:28 PM »
Yes, I've got the switches set up in inputs and I've checked that they work by physically pressing them with the axis moving. Here's my input settings.

Thanks
Nigel
Re: Ref all home does nothing?
« Reply #6 on: June 19, 2019, 04:32:23 PM »
BTW, I'm using the limit switch as my home switch.
Re: Ref all home does nothing?
« Reply #7 on: June 19, 2019, 04:43:30 PM »
While posting my settings I realized my silly mistake that's been staring me in the face all along, I didn't check the "X-Home" etc. How dumb of me.

It's now working.

Thanks for your time, much appreciated.

Cheers
Nigel