Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: inivator on June 19, 2008, 03:43:58 PM

Title: Limit Switch Problems
Post by: inivator on June 19, 2008, 03:43:58 PM
I have wired all of the limit switches in series, X,Y,Z, checked them with Ohm meter, readings are as they should be, wired to breakout board Grnd. to Grnd., the other to pin 12.  How do I set up the pins and ports on the software for them to work.

Inivator
Title: Re: Limit Switch Problems
Post by: Hood on June 19, 2008, 03:48:43 PM
Set up all of the X Yand Z limits and Home to pin 12 port 1.
Hood
Title: Re: Limit Switch Problems
Post by: inivator on June 19, 2008, 04:00:53 PM
I did as you said, but now I can't reset the E Stop from the screen.  There is no physical E Stop switch.

Dumb as usual...........

Inivator
Title: Re: Limit Switch Problems
Post by: Hood on June 19, 2008, 04:02:41 PM
OK could be that your breakout needs a 5V and its input pin is the ground, check your breakouts manual.
Hood
Title: Re: Limit Switch Problems
Post by: inivator on June 19, 2008, 05:29:52 PM
I have done what you said. I have discovered that with all the axis homes enabled, I can reset.  As soon a I enable anything else, I can not reset, even with the limit switches disconnected.

Inivator
Title: Re: Limit Switch Problems
Post by: Hood on June 19, 2008, 05:39:21 PM
what make of breakout do you have? Are your switches normally closed switches?
Hood
Title: Re: Limit Switch Problems
Post by: inivator on June 19, 2008, 05:43:21 PM
I have a parallel port breakout board, Probotix, switches are wire to NC.

Inivator
Title: Re: Limit Switch Problems
Post by: Chip on June 19, 2008, 09:34:52 PM
Hi, Inivator

Switches wired all NC in "Series",

One end, "Pin 12-BOB_____C swX- NC_____C swX+ NC_____C swY- NC_____C swY+ NC_____C swZ- NC_____C swZ+ NC_____ other end (#) see Below".

If your BOB Pin 12 is +5 volts (Held High) Then other end (#) = Gnd, Active Lows "X".

If your BOB Pin 12 is 0 volts (Held Low) Then other end (#) = +5 volts DC, Active Lows "Checked".

I may have the Active Low setting backwards, But thy will be set to the same State.

Hope this Helps, Chip
Title: Re: Limit Switch Problems
Post by: jimpinder on June 20, 2008, 01:00:22 AM
We are getting complicated here -

Inivator - I am quite sure that you have wired these correctly. Go to the dianostic screen and have a look how they perform. IF, on the diagnostic screen there is nothing, and when you switch one of the switches they all light up, then fine - you have done it. I think, however, your configuration is incorrect - and I have a feeling that your switches will be active all the time, and switch off when you activate them.

Are you also saying that even if you disconnect the wire from pin 12, it also sets "Reset".

If they are all on, and should be off, go into Ports and Pins/Input Signals and change all the signal pins (including "homes") to active low. I have a feeing the Probotix boards changes the polarity of input signals.
Title: Re: Limit Switch Problems
Post by: inivator on June 20, 2008, 07:39:56 AM
Without any limits switches wired to the breakout board, with All homes enabled, I can reset from the screen.  When I enable any other, I can't reset.  With the l-switches, wired or unwired, when I enable any axis ++ or --, I can't reset.  I tried just wiring in one (1) NC switch.  The reset action did not change.  Even if I had no limit switches, once I enable any axis + or -, even with or without (active low/high), the reset action is the same, can't reset.

Inivator
Title: Re: Limit Switch Problems
Post by: Hood on June 20, 2008, 08:09:13 AM
If you have your limits enabled , the switches NOT connected and active low checked then you should be able to reset, is that the case?
 We need to start over, first thing you need to find out whether your breakout is sinking or sourcing on its inputs, that determines whether you need the end not on the breakout connected to a +5v or a 0v.

Hood
Title: Re: Limit Switch Problems
Post by: inivator on June 20, 2008, 08:56:49 AM
With the switches enabled, can not reset.  When I enable (Axis Homes), I can reset, but if I enable anything else, I can not reset.  The breakout board measures +5 volts at pin 12 and ground.

This action on the reset is the same, with or without LSwitches involved.

Inivator
Title: Re: Limit Switch Problems
Post by: Hood on June 20, 2008, 09:34:05 AM
OK so change the active state to unchecked and see if you can reset. The reasons the homes are not affecting it is because Mach only looks at the home switch when homing, all other times it looks for limit switches.
 Also please attach your xml.
Hood
Title: Re: Limit Switch Problems
Post by: inivator on June 20, 2008, 10:03:29 AM
When I enable any axis, other than Home, active state check or unchecked, I can not reset from the screen.  Even with nothing wired. :'(
Title: Re: Limit Switch Problems
Post by: Hood on June 20, 2008, 01:45:41 PM
Try with the parallel port cable first removed from the breakout board and then if still having the problem remove it from the parallel port itself. When doing this you will want the Active Low checked.

Hood
Title: Re: Limit Switch Problems
Post by: inivator on June 20, 2008, 02:47:02 PM
Thanks, I'll try that.  I'm not at the location now, but will try later the afternoon.

Sorry, to be so much trouble

Inivator
Title: Re: Limit Switch Problems
Post by: Hood on June 20, 2008, 02:49:25 PM
No trouble at all, the only thing of concern to everyone is that you get things sorted :) If it takes another 100 posts then so be it but hopefully it wont take anything like that :D

Hood
Title: Re: Limit Switch Problems
Post by: inivator on June 21, 2008, 12:04:04 PM
I GOT EVERYTHING WORKING. BUT THE RESET COMES ON AFTER ABOUT 30 TO 45 SECS.

WHAT COULD BE CAUSING THAT TO HAPPEN.

INIVATOR
Title: Re: Limit Switch Problems
Post by: Overloaded on June 21, 2008, 12:07:59 PM
Try setting the Debounce Interval to 100. Might help
RC

Also, is your limit sw. wire sheilded and grounded at the control end ?
Title: Re: Limit Switch Problems
Post by: inivator on June 21, 2008, 12:15:35 PM
THANK YOU, LOOK LIKE THE DEBOUNCE TOOK CARE OF IT...

AGAIN, THANKS FOR THE HELP
INIVATOR