Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: CharliePatten on March 24, 2010, 10:00:16 AM

Title: limit switch problem
Post by: CharliePatten on March 24, 2010, 10:00:16 AM
I have one switch located on each of the X-, Y+, and Z+ end of axes travels, and have the X HOME, X--, Y HOME, Y++, and Z HOME, Z++ inputs enabled.  The problem is the RESET LED after 3 - 4 seconds keeps flashing, even after hitting RESET again. The only way I can prevent this from happening is to disable X--, Y++, and Z++ limits. Can anyone assist me in solving this problem?
Title: Re: limit switch problem
Post by: Hood on March 24, 2010, 11:31:08 AM
Sounds like electrical noise, try setting the debounce interval to 2000 and see if that helps. If it does then it proves its noise so you would be better fixing it by properly shielding and grounding the shields.
Hood
Title: Re: limit switch problem
Post by: CharliePatten on March 24, 2010, 11:56:41 AM
I have the debounce set at 2000. All cables (motor and limit) are shielded and grounded to chassis grd. at one end. I have even seperated motor and limit cables so they don't run in the same raceway.  What is weird is  I don't have the problem when only the "HOME" inputs are enabled! It only happens when I enable the limit switch inputs.
Title: Re: limit switch problem
Post by: Hood on March 24, 2010, 11:59:47 AM
Can you home ok if you have the limits disabled?
Hood
Title: Re: limit switch problem
Post by: CharliePatten on March 24, 2010, 12:21:07 PM
Yes.
Title: Re: limit switch problem
Post by: Hood on March 24, 2010, 12:30:36 PM
can you attach your xml please.
Hood
Title: Re: limit switch problem
Post by: CharliePatten on March 24, 2010, 12:49:33 PM
I have copied it on to a flash drive. How do I attach it to this post?
Title: Re: limit switch problem
Post by: Hood on March 24, 2010, 03:34:04 PM
You will need to rename it to something like CharliePatten.xml as the forum will only accept a file name once. To attach you use the additional options button on the reply page and browse to your xml.
Hood
Title: Re: limit switch problem
Post by: CharliePatten on March 25, 2010, 05:59:55 AM
Hope this works!
Title: Re: limit switch problem
Post by: Hood on March 25, 2010, 08:24:04 AM
Dont see anything wrong in your xml apart from you have enhanced pulsing disabled.
How are your switches wired?
Hood
Title: Re: limit switch problem
Post by: CharliePatten on March 25, 2010, 09:40:35 AM
I have one switch on the end of each axis which is enabled as a homing switch. They are each wired in to individual inputs on my breakout board. When I enable them as limits, that's when I have the problem. I also am having difficulty setting up the soft limits.
Title: Re: limit switch problem
Post by: Hood on March 25, 2010, 11:53:17 AM
You can only use them as Limits for one end of the axis, ie either X++ OR X-- depending on which end they are at. Unless that is the switch is in the middle and the trigger is either end.
 That however should not be your problem as it would just mean they wouldnt activate properly if set up as both X++ AND X--.
  When you enable them do you see the LED on the diagnostics page light?

Softlimits should be easy, X min Y min and Z Max will be zero, X Max, Y Max  will be your travel and Z Min will be your travel but a negative value. If your home switches are at the wrong end of the table from machine coords zero then you also need to enter a Home Off value equal to the distance of the travel.

Hood
Title: Re: limit switch problem
Post by: CharliePatten on March 26, 2010, 05:53:24 AM
When I enable The X--, Y++, and Z++ limits, along with the "home" LEDs, both the "home" and "limit" LEDs do light up on the diagnostics page. That is when the problem of the RESET button starts flashing! It happens randomly and I also noticed that the limit and homing LEDs flash quickly just before the RESET flashes. It is almost like enabeling the limits is causing the "noise" that trips the RESET. This dosen't make sense because the wiring and switches are all the same and the RESET dosen't trip when only the home switches are enabled.
Title: Re: limit switch problem
Post by: Hood on March 26, 2010, 09:24:40 AM
When you have enabled only home switches Mach will not go into reset if they become active as they are just home switches and not limits. That was why I asked if you could home correctly as I was thinking you had noise problems or bouncy contacts. If that was the case your homing would not work properly all the time as the switch would be seen before the axis actually got to it.
It still sounds however like it is your problem and it is just luck that when you home the switch is not being seen whilst doing so, easy way to test is remove the switches from the BOB and connect a wire in their place and enable the limits and home switches and see if you still have the issue, if you dont then you know the problem is in the switches or the switch wiring. If you do then its from the BOB  upwards to computer.
Hood
Title: Re: limit switch problem
Post by: CharliePatten on March 26, 2010, 01:06:24 PM
Hood:
Not sure you got my last post?   I now have a different problem. Neither my Y or Z axis moves either using the MPG or trying to do a homing move. The DRO's do index. I haven't changed any settings, however I can't continue to troubleshoot my previous problem until I solve this one. I have attached the most current XML file.
Thanks,
Charlie
Title: Re: limit switch problem
Post by: Hood on March 26, 2010, 03:46:17 PM
Quote
The DRO's do index.

What do you mean by that?

Hood
Title: Re: limit switch problem
Post by: Hood on March 26, 2010, 03:50:30 PM
Just looked at your xml, you have the MPG set to multi step mode and the step increment of 0.001 so you may not see it move much unless you wind the MPG quite a bit.
Hood
Title: Re: limit switch problem
Post by: CharliePatten on March 26, 2010, 04:18:49 PM

Changing this has no effect on the problem! The X axis still works fine with the MPG. It sounds like you are running out of suggestions! I do greatly appreciate all your help on this. Thank you. I will keep plugging away.
Regards,
Charlie
Title: Re: limit switch problem
Post by: Hood on March 26, 2010, 04:48:26 PM
Can you jog these axis from keyboard or tab page? Do you see the Y and Z Dros change when jogging either with MPG or Keyboard?
Hood
Title: Re: limit switch problem
Post by: CharliePatten on March 26, 2010, 05:04:06 PM
Only the X axis jogs with either the MPG, Tab page, or keyboard. The DROs do indicate movement on all 3 axis.
Title: Re: limit switch problem
Post by: Hood on March 26, 2010, 05:05:50 PM
Then I would say hardware is more likely to be at fault. Change the active state of your E-Stop and remove your port cable and test with a voltmeter directly on the parallel port pins.
Hood
Title: Re: limit switch problem
Post by: CharliePatten on March 27, 2010, 09:12:12 AM
Thanks Hood. I have located a faulty 25 cond. ribbon cable inside my control enclosure as the cause of the latest problem. Now that I have fixed that, I can get back to solving the previous problem.
Regards,
Charlie
Title: Re: limit switch problem
Post by: Hood on March 27, 2010, 12:25:37 PM
Thats good to hear Charlie. I still think your limit problem is hardware related as well as I think you said you get the Home LED occasionally flashing. If you can try like I suggested and connect a wire directly to your bob in place of the limit switches and see if the problem is still there even when you enable limits.

Hood
Title: Re: limit switch problem
Post by: CharliePatten on April 01, 2010, 08:31:20 AM
Hood:
I have finally located the source of the "noise" that was triggering my "reset" button, however the answer needs an explanation! I have all my limit switch (shielded) cables grounded on the limit switch end only. When I remove the ground wire, everything works normally with no triggering of the "reset" button. This is just the opposite of what you would expect. I have tested this both ways over an 8 hour period and feel confident that this was the problem. Any thoughts?
Charlie
Title: Re: limit switch problem
Post by: Hood on April 01, 2010, 12:05:28 PM
Sounds like your ground point may not be a ground?
Title: Re: limit switch problem
Post by: CharliePatten on April 01, 2010, 12:37:46 PM
Logical conclusion! I will look into that. Thanks.