Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: thkoutsidthebox on February 07, 2008, 04:43:13 PM

Title: Changing the Sensitivity of Limit Switches?
Post by: thkoutsidthebox on February 07, 2008, 04:43:13 PM
Hi folks,

I'd like to make my limit switches less sensitive if thats possible...does anyone have any idea how?

I'm using Mach3, HobbyCnc 4 Axis Pro, and my 4 switches are wired parallel.

Any suggestions are appreciated. Thanks. ???
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: Hood on February 07, 2008, 05:07:54 PM
If you mean you are getting false triggering then the debounce may well help. You will find it from the Config menu then General config. It is at the top right of that page. Try a seeting of 2000 and if that works lower until your problem starts again then nudge back up.
Hood
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: thkoutsidthebox on February 07, 2008, 05:20:16 PM
Thanks Hood,

Should I change the "Debounce Interval" or "Index Debounce" ?
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: Chip on February 07, 2008, 05:22:57 PM
Hi, Thkoutsidthebox

"Limit switches less sensitive", Can you expand on this a little, Are thy tripping on there own ?

Thanks, Chip
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: Hood on February 07, 2008, 05:23:13 PM
Debounce Iterval is for general stuff like limits, the Index is solely for the Index pulse for spindle.
Hood
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: thkoutsidthebox on February 07, 2008, 05:53:56 PM
Chip, every so often I get a Limit Switch Triggered during cutting with the Z carriage in the center of the cutting area (Not near the sides). I look at all the limits and none have been triggered by anything that I can see, sides, hanging wires, extractor tube etc. Anyway, I reset, run from here, cycle start and continue.

This seems to happen at random during jobs. It might not happen for days, then it might happen a few times in as many hours. I think the problem is that my wires are not soldered to the limits, just wrapped around the terminals, and that when the Z carriage moves sometimes the wires pull/push up/down/sideways, and the bare ends rub the terminals on a switch, thus causing the error.

I have tried testing the sensitivity of my limits, and I can trigger them by almost an imperceptible brush with my finger against the touch plate, without actually puching in the button behind the plate until it clicks. I only want them to trigger if the button behind the plate is actually pushing in (It goes in about 1.5mm before clicking) enough to click. Hence I think that I need them to be less sensitive.

I hope that all makes sense..... ?

Hood, I will try editing the Debounce Interval tomorrow. Thanks.
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: Chip on February 07, 2008, 06:25:02 PM
Hi, Thkoutsidthebox

The Debounce setting should help, It will delay Mach a little on responding to the switch closing.

Most use NC switch's in series, That way your system won't reset unless it confirms continuity of the switch's.

The non soldered raped connections need to be soldered, You no.

Hope this Helps, Chip

Title: Re: Changing the Sensitivity of Limit Switches?
Post by: BluePinnacle on February 08, 2008, 04:12:23 AM
Solder or clamp those connections! If they use blade terminals you could use corresponding crimp connectors, that would work well.

The other thing is, your machine sounds fairly new so this probably won't be an issue but large old machines like mine often suffer from earth leakage from old wires, splashy coolant etc. I've got all my limits relayed to counteract this - they need a good current of 30mA or so to operate. It takes very little current to drag a port pin down to logic 0, earth leakage or fortuitous contact with earthed parts will easily do this.
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: jimpinder on February 08, 2008, 11:38:59 AM
Reading all this I seem to think that you must (1) solder all your connections (2) if your limits are all connected in series, then make sure that the wire round them all is shielded and earthed.(3) The way to make your switches less sensitive is to up (or down) your pull up, or pull down resistors. This is a bit difficult because I don't know which way you have wired up your limits, or, indeed, what switches your are using to trigger them.

If you are saying that merely touching one of your switches causes it to trigger, then that suggests to me it is the capacitance of your body that is triggering it and not the physical switching of the switch. This also suggests that your wiring is a bit suspect as well.
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: thkoutsidthebox on February 08, 2008, 02:58:36 PM
Thanks for the replies all.  :)

I set the debounce to 100 and the problem is gone! The limits still work fine but they have to be pressed in fully.  ;D Thankyou.

It may have had something to do with my body capacitance, but I just don't think so, I really think the switch was just too sensitive.....I know that the connections should be done properly....they are blade terminals and I have plenty of crimp connectors but unfortunately not enough time!  ::)

I've had this machine about four or five months. I designed and built it myself. Its made of wood, and is mounted in a wooden enclosure 3 feet from the ground inside a wooden shed, so I don't think earth leakage is a problem...yet!  ;)

If you would like you can see my build thread at the link below, but it hasn't been updated with pics since I moved, so the new enclosure, new gantry and Z carriage, and new workshop are not shown. :) Thanks again.
http://www.cnczone.com/forums/showthread.php?t=35211
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: BluePinnacle on February 09, 2008, 05:12:07 PM
Wood! excellent. but how do you maintain tolerances when the weather changes? Or doesn't  it matter too much?
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: thkoutsidthebox on February 09, 2008, 05:55:12 PM
I used African Sapele for the build which has almost the lowest change co-efficent I could find, its close to mahogany's .0024. Padauk was the lowest available to me at .0018, but my supplier didn't have any in stock at the time. With the Irish climate, the weather changes between very cold and wet in the winter, and sometimes still cold and wet in the summer..haha...well sometimes it can be dry and warm if we're lucky! ;) , but the humidity doesn't alter too much either way, so once I keep her dry and inside there is no noticable changes. The day/night temperature change doesn't affect the wood, and whenever I've tested it, the moisture value is either 5% or 6% so there's no real change. Either way, tolerances within about 1/2 a mm are sufficient for me doing signs and such. I have intended to coat the wood, but haven't got around to it, and have had no problems. I'm willing to bet that in the height of summer my moisture content won't go below the 5% its at now....even at a push 4% would surprise me.
Title: Re: Changing the Sensitivity of Limit Switches?
Post by: BluePinnacle on February 10, 2008, 09:34:33 AM
Good going, some very clear thinking going on there. Well done that man :)