Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: jonny quest on January 30, 2013, 03:03:10 PM

Title: limit switches triggered after sitting idle for a few minutes
Post by: jonny quest on January 30, 2013, 03:03:10 PM
I'm using latest version of Mach... when machine sits idle for a few minutes I need to reset because it says limit switch has been triggered.

Is this normal... or is there a way to see what switch has been triggered to see if I have a faulty switch?
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: Chaoticone on January 30, 2013, 03:36:14 PM
It sounds like you might be picking up noise.  Do you have a value in your Debounce setting in General config (top right corner)?

Brett
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: jonny quest on January 30, 2013, 03:42:57 PM
Debounce interval is set to 5000 x 40us, index debounce is 500.

This machine has never done this before... just started doing it. Only change has been updating to newest Mach version... and lowering Kernel speed to 35000, from 45000 to help with some suspected missed steps in my Z which seems to be fine so far.
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: Chaoticone on January 30, 2013, 03:52:25 PM
Was the debounce set to 5000 before this problem or did you just change it?

Brett
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: jonny quest on January 30, 2013, 03:56:42 PM
I haven't changed it, and I don't know what it was at.
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: Chaoticone on January 30, 2013, 04:10:08 PM
5000 is high.  If it had to be that high before to prevent the false triggers, I would try to eliminate that.  I'm not saying you don't have something else going on like a flaky switch or something, but will be hard to find if dealing with noise issues as well.  How are your limits wired to Mach?  Are they all on a single input or does each have their own?

Brett
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: Chaoticone on January 30, 2013, 04:19:35 PM
Jonny, I meant to also tell you that many things can effect noise including temperature, humidity, etc.  Even light bulbs.  It can be a pain to get sorted but usually proper switches and shielded wires with proper grounding are the first line of defense.  Also, here is a link that may help you.

http://www.machsupport.com/forum/index.php/topic,21908.msg152243.html#msg152243

Brett
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: jonny quest on February 02, 2013, 05:49:31 PM
I fixed the problem. I restarted Mach.

Uggghhh, that's frustrating.
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: jonny quest on February 04, 2013, 03:52:28 PM
It's doing it again after machine is turned on for a couple of hours. Everything is fine... then it triggers a limit switch like every 5 minutes.

If I reboot computer, it's good for another 2 hours or so... then repeats problem.
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: Fastest1 on February 04, 2013, 09:17:29 PM
Have you opened the controller to see if any and or what grounding practices are being used? Start there and then work on cleaning up the problem. I promise fear of starting is much worse than solving it.
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: jonny quest on February 19, 2013, 05:49:24 AM
I bought an oscilliscope. Where would the best place to look for noise be? I have a 2 channel model. where would I hook up the scope leads?
Title: Re: limit switches triggered after sitting idle for a few minutes
Post by: Tweakie.CNC on February 19, 2013, 06:52:43 AM
Electrical noise is generally one or a series of relatively high amplitude and very fast spikes appearing on an input to the BOB or controller. These spikes are often so fast that it requires a pretty high quality scope to be able to spot them so don’t be surprised if you find nothing. Scope probe connects to an Input and it’s Screen to GND. Measurements should be taken whilst the machine is in operation so take care.

The best bet with electrical noise problems is to fit miniature 0.1uF capacitors (one connected between each used Switch Input and GND) at the controller / breakout board end.

Tweakie.

Addition;  Just a suggestion but another thing that has caused problems is the Watchdog Timer – Config / General Config – Make sure ‘Use WatchDogs’ is unchecked.