Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Thorpydo on December 24, 2009, 03:10:07 PM

Title: homing/limit setup
Post by: Thorpydo on December 24, 2009, 03:10:07 PM
Hey,

I'm trying to get my machine setup with homing and limit switches. I have the hardware setup- one switch per axis to control +,-, and home, wired closed until tripped.

The problem I am having is that when I home the machine, it jogs until it hits the switch, backs off it but stops prematurely. It doesn't go far enough to untrip the switch.

What can I do to remedy my problem?

 Thanks!
Thorp
Title: Re: homing/limit setup
Post by: Hood on December 24, 2009, 03:45:48 PM
Increase the debounce interval to 2000 and see if that helps. If it does you either have noise issues or bouncy switches and its best to sort it out.
Hood
Title: Re: homing/limit setup
Post by: Hood on December 24, 2009, 03:46:28 PM
Oh the debounce Interval is on General Configs page BTW.
Hood
Title: Re: homing/limit setup
Post by: Thorpydo on December 24, 2009, 04:15:20 PM
That did it. It now functions fine.

The debounce was originally set to 0.

You say the cause could be a bouncy switch. What is the downside to a bouncy switch? Lack of repeatability?

I think the problem is less the switch and more the way I have them mounted. I created ramps to ride against the switch roller arm and actuate them. I think I may have made my ramps far too shallow.

I will check the repeatability.
Title: Re: homing/limit setup
Post by: Thorpydo on December 24, 2009, 04:15:48 PM
and thanks again Hood!
Title: Re: homing/limit setup
Post by: Thorpydo on December 24, 2009, 04:22:11 PM
if I enable the limit switches then they get triggered. .
Title: Re: homing/limit setup
Post by: Hood on December 24, 2009, 04:41:15 PM
Yes if your switches are not a positive clcik on/off type then you can get them fluttering when just on the point of opening/closing so probably a steeper slope will help.
Hood
Title: Re: homing/limit setup
Post by: Hood on December 24, 2009, 04:43:52 PM
Just noticed your last post, not sure what you are meaning but thinking maybe you are saying the homing works fine but if you enable the same switches as limits they trigger right away, if thats the case check you have the active state the same as you have for the home switch in ports and pins.
Hood
Title: Re: homing/limit setup
Post by: Thorpydo on December 24, 2009, 04:58:22 PM
That is what I meant.

Originally it was setup with the home set active low and the limit switches active high. I had the problem you described.

I set the limit switches active low and it seems to work, but this doesn't really make sense to me. The limit switches are wired so that the circuit is closed unless tripped.

How should I have it setup?
Title: Re: homing/limit setup
Post by: Hood on December 24, 2009, 05:00:50 PM
Sohould really be set active high if they are NC switches unless your board inverts them in some way.
When you have them set active low do they trip when you activate them?

Hood
Title: Re: homing/limit setup
Post by: Thorpydo on December 24, 2009, 05:16:59 PM
Yeah. The limit switches work - everything works it seems, but i'm not sure why. They should be active high.
Title: Re: homing/limit setup
Post by: Hood on December 24, 2009, 05:18:23 PM
Weird but suppose if its working then just be happy ;D

Hood
Title: Re: homing/limit setup
Post by: Thorpydo on December 26, 2009, 01:40:12 PM
Back to problems... The Z and Y home just fine. When the machines tryings to zero the X axis it jogs in either direction momentairly and then stops, as if a limit switch was hit.