Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: kharrisonkevin on August 04, 2016, 08:06:32 PM

Title: Homing
Post by: kharrisonkevin on August 04, 2016, 08:06:32 PM
Hi all, I need help. My cnc when I hit the go to Z button the machine is moving to zero DRO in all axis in  the work coordinates not the machine coords. Why? The axis are not hitting the home switches at all. Is there something I am missing? In the General config I have the home switches checked but does nothing, does anyone have any sujestions
Title: Re: Homing
Post by: Highspeed1964 on August 04, 2016, 10:52:28 PM
It's doing exactly what it's supposed to do.  Go to Zero works in the WC system.  You need to use a G28 command with at least one axis reference (i.e. Z0) to move to the home zero location (i.e. Machine Coordinates) or you could use explicit MC movements with a G53 command.  Remember, G53 is not a modal command and must be explicitly stated in each block that you want to move in MC movements.  G53 can be used to move any axis or combination thereof to a specific location in the MC system whereas G28 is specific to homing.

Hope this helps.

Stephen "Highspeed" Kruse

EDIT:  The axis word(s) in G28 are optional.  Also a G28.1 will reference all or specified movements to the home switches.
Title: Re: Homing
Post by: kharrisonkevin on August 05, 2016, 05:30:19 AM
The only problem is that I cant get the machine coordinates to zero for my work table. Just remember that I am new to this so can you please put it in simple English. I had it working right before but now it's not.
Title: Re: Homing
Post by: Highspeed1964 on August 05, 2016, 12:31:31 PM
Oh, ok.  So are you using the "REF ALL HOME" button to zero your table machine coordinates?  Go to Zero is not the one to do this.  As mentioned earlier, Go to Zero will move the tool to X0Y0Z0 (and A0 if you have a 4th axis) in Work Coordinates.  You must use the REF ALL HOME button to set the MC zero to your table.

Stephen "Highspeed" Kruse
Title: Re: Homing
Post by: kharrisonkevin on August 07, 2016, 05:30:46 PM
Stup I'd me I was pushing the wrong button to ref all home. But 1 issue I am having is I have z reffing to got to the home switch but when it does it just hits the limit switch and stops it doesn't bounce off the switch.  I played with a few settings and got it working but when I try it again it just throw s the limit switch and stops. What is wrong?  The x and y work fine but the z keeps messing up. Am I setting something wrong?
Title: Re: Homing
Post by: Highspeed1964 on August 08, 2016, 05:26:18 PM
Sorry to take so long to respond to your last question, but I've been pouring over the settings to see if I could find a quick answer for you.  Not finding anything that stands out.  But a couple of questions for you:

1.  Is your Z Axis set to home in a positive direction (i.e. Zero at the top of the movement)?
2.  Does your Z Axis move UP for positive values and DOWN for negative?

It's possible the logic in your configurations is reversed at one setting or another.  So when it homes, it could be possible that it's moving to the limit and then trying to move further in the same direction to "back off" the home/limit switch.  You'd probably know this, however, as you'd be hearing it try to continue as it crashes into the mechanical limit of the machine.  But it's something to check.  Make sure the Z Axis moves up for positive and down for negative and then check that "Home Negative" is UNCHECKED so that it knows it is the positive limit it is looking for.  Then when it tries to home the axis, it should seek the upper limit switch and then back off until the switch is no longer active.

This, of course, assumes you are using shared home/limit switches.  The same should be true if you have a dedicated home switch as well but I do not know for sure.

Stephen "Highspeed" Kruse
Title: Re: Homing
Post by: kharrisonkevin on August 08, 2016, 05:52:50 PM
The  machine is set to move up in the positive direction and is not checked home in the negative.  The machine was operating fine 2 months ago as I have been busy with other work. I had to move the machine to a different spot when I fired it up its all messed up on the z axis again. I had the same problem a year ago and don't remember what I had to do. When it was working correctly I saved all the settings but now it's all messed up.
Title: Re: Homing
Post by: kharrisonkevin on August 08, 2016, 08:20:46 PM
I had the cnc operating the way it should so I saved the setting closed the program and when I reopen mach3 the dro s are not the same as before and when the z moves up toward the switch it trips the limit and stops. Does not over travel.
Title: Re: Homing
Post by: kharrisonkevin on August 08, 2016, 08:52:07 PM
The only problem is that it will not bounce off the z home switch
Title: Re: Homing
Post by: ger21 on August 08, 2016, 09:51:35 PM
Try adding some Debounce.
Title: Re: Homing
Post by: Highspeed1964 on August 08, 2016, 10:00:24 PM
Ah, thanks Gerry!  I was at a loss at this point.  Debounce could very well do it.

Title: Re: Homing
Post by: kharrisonkevin on August 09, 2016, 05:21:03 AM
I tried that and it works then I go to try it again and it doesn't
Title: Re: Homing
Post by: kharrisonkevin on August 09, 2016, 05:22:22 AM
The  x and y work fine  it is just the z axis
Title: Re: Homing
Post by: ger21 on August 09, 2016, 06:31:19 AM
Quote
I tried that and it works then I go to try it again and it doesn't

Then set it to a higher value.
What did you set it to?

You either have noise, or a bad switch.
Title: Re: Homing
Post by: kharrisonkevin on August 09, 2016, 08:05:44 AM
The switch is good I tried 1 2 3 4 5 works best at 4 but 1 time it will work the next time it doesn't. I upgraded from windows 7 which it worked fine then I upgraded to windows 10 now it doesn't.
Title: Re: Homing
Post by: ger21 on August 09, 2016, 11:34:48 AM
So you're using a motion controller? Which one. The Debounce in General Config has no effect with a motion controller.
Title: Re: Homing
Post by: kharrisonkevin on August 09, 2016, 12:09:36 PM
K 4030 Kelinger tec
Title: Re: Homing
Post by: kharrisonkevin on August 09, 2016, 12:12:12 PM
When I set the index debounce to 4 it works the best. It will work once then not work
Title: Re: Homing
Post by: Highspeed1964 on August 09, 2016, 03:34:20 PM
Yep, sounds like the switch is acting flakey.  Can you swap the upper and lower limit switches to see if that works better?  If not, try doing a "Home Negative" and check if that operates properly.  (CAUTION: Homing to a negative Z requires careful monitoring and quick response on the RESET button if things go awry!)
Title: Re: Homing
Post by: kharrisonkevin on August 09, 2016, 03:49:32 PM
Thank god that's it hope I got another one
Title: Re: Homing
Post by: ger21 on August 09, 2016, 04:10:22 PM
Index debounce is for  the index input for a spindle, not homing.
Title: Re: Homing
Post by: kharrisonkevin on August 09, 2016, 04:52:22 PM
How can I make it come farther away from the limit switch in z when I ref home
Title: Re: Homing
Post by: ger21 on August 09, 2016, 07:22:45 PM
It only backs up until the switch opens, unless the motion controller plugin has a settting for backing off.
The KL 4030 is a stepper drive, not a motion controller. Which motion controller are you using?
Title: Re: Homing
Post by: kharrisonkevin on August 09, 2016, 07:26:37 PM
? I don't know I didn't build the cnc. I got it working goog so far I had to increase the debounce to 8500 seems to be working fine now
Title: Re: Homing
Post by: Ford Prefect on September 03, 2016, 04:59:39 PM
there is a option in config/home-soft limits that I suppose can

"make it come farther away from the limit switch in z when I ref home "

i think its called "home off"
Title: Re: Homing
Post by: Davek0974 on September 04, 2016, 03:07:57 AM
there is a option in config/home-soft limits that I suppose can

"make it come farther away from the limit switch in z when I ref home "

i think its called "home off"

No thats not what it does, Home Offset merely tells the machine where you want home to be relative to the switches.
My milling machine home switches are about 100mm in from the actual home position so i have a -100mm home offset.

The move away from the switch itself during homing is internal and based upon the switch itself - Mach will move to the switch until it triggers, stop, move away until it opens - that is the home point, it will then stop.
Title: Re: Homing
Post by: Ford Prefect on September 04, 2016, 08:23:43 AM
thanks for clearing that up :)