Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: A.Davis on April 01, 2013, 08:19:37 AM

Title: limit switches and home switch help!!!
Post by: A.Davis on April 01, 2013, 08:19:37 AM
I have just built my first machine and with the help from all these forums its been great.
I now have my machine up and running but my issue is getting it to home out woithout destroying a switch.
I have my limit switches all on a daisy chain scenario and they work well except when homing.
I am starting to believe that its all to do with the pin assignment.

Should I have the pin assignment for the X home ,Y home and Z home be the same?

I have attached a couple of pics of my settings

If anyone can help it would be much appreciated.

Adrian
Title: Re: limit switches and home switch help!!!
Post by: Hood on April 01, 2013, 08:56:09 AM
If you have the X switches all in series, the Y all in Series and Z all in series then you have the pin asignment correct but what you have wrong is the active state of some of them. It will depend on how your breakout board is set up but it looks like your home switches are the wrong state.
Hood
Title: Re: limit switches and home switch help!!!
Post by: A.Davis on April 01, 2013, 09:13:56 PM

many thanks the limit switches are all on the same line not seperates .
Off of pins 1 and 6 on the DB9
Adrian
Title: Re: limit switches and home switch help!!!
Post by: Hood on April 02, 2013, 02:55:47 AM
I am not sure what your DB9 connects to so cant really say which pin number it will be in Mach  but if all limits/home switches are sharing a single input then the port and pin numbers should be the same for each as should  the active state of these pins.
Hood
Title: Re: limit switches and home switch help!!!
Post by: A.Davis on April 02, 2013, 08:23:56 PM
WooHoo it lives.

It homed itself turned it off came back to the same position after re-boot.
It went up/down/left/right,forwards,backwards round in bloody circles and never forgot where it should be.
Next task gain control of the spindle connected to my inverter....

Many thanks Hood