Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started 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
-
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
-
Oh the debounce Interval is on General Configs page BTW.
Hood
-
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.
-
and thanks again Hood!
-
if I enable the limit switches then they get triggered. .
-
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
-
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
-
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?
-
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
-
Yeah. The limit switches work - everything works it seems, but i'm not sure why. They should be active high.
-
Weird but suppose if its working then just be happy ;D
Hood
-
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.