Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: TheGreenMachine on May 06, 2010, 02:10:42 PM

Title: Homing Problem
Post by: TheGreenMachine on May 06, 2010, 02:10:42 PM
I am finishing the setup of Mach and I am having a problem homing the machine.  When I home the axes it starts with the Z, moves the axist until it touches the limit switch then backs of a small amount, this seems just fine.  Then it moves the Y but when it touches the limit switch the machine just enters a e-stop condition, it never backs off the switch.  I set the debounce to 2000 but that didn't help.  Any ideas?
Title: Re: Homing Problem
Post by: Hood on May 06, 2010, 02:17:57 PM
Does the axis zero? If so then you are likely to have a bad switch. It would seem that the action of the switch is not positive so as it is triggered Mach sees it, starts to reverse but instantly sees the switch close again so sets zero but the switch opens again so Mach sees a limit triggered.
Hood
Title: Re: Homing Problem
Post by: TheGreenMachine on May 06, 2010, 02:30:03 PM
The Z axis zeros but the Y axis never zeros, and the X never has a chance.
Title: Re: Homing Problem
Post by: Hood on May 06, 2010, 02:31:39 PM
Can you attach your xml please.
Hood
Title: Re: Homing Problem
Post by: TheGreenMachine on May 06, 2010, 02:49:36 PM
Here is my XML
Title: Re: Homing Problem
Post by: Hood on May 06, 2010, 03:02:54 PM
I think I have seen this problem before with that port address, will search and see if it is the same but if it is, for some reason it seems to screw some pins up.
If you look on the Diagnostics page do you see the Y Limit and Home switch LEDs work correctly when you manually trigger the switch?
Hood
Title: Re: Homing Problem
Post by: Hood on May 06, 2010, 03:14:05 PM
Could you rewire to pin 10 and set that up for the Y axis home and limits and test it out, pin 11 seems to be weird with that port address here and this is just in simulation so it is very strange.
Hood
Title: Re: Homing Problem
Post by: TheGreenMachine on May 06, 2010, 04:23:19 PM
On the Diagnostics page all the limits/homes worked properly according to the LEDs.  Port 1 Pin 10 was taken to I moved the Y to port 2 Pin 10.  The Z and Y are now homing but the X now has the same problem, it hits the limit switch and the machine e-stops.  I moved the X axis limit/home switch to all the open pins and it would function as a limit switch on all of them but it would not home.
Title: Re: Homing Problem
Post by: Hood on May 06, 2010, 05:05:13 PM
It definitely seems to be a problem with your port address, its the correct address but for some reason that address seems to cause problems.
You say Pin 10 is taken, I didnt see that in your XML. You did have pin 10 used for E-Stop but you have that set to Port 0 so I presume you dont actually have an E-Stop.

Hood
Title: Re: Homing Problem
Post by: TheGreenMachine on May 06, 2010, 05:09:59 PM
I do have a E-stop and it works, on my board pin 10 is jumped to +24v.  I bought my system as a package and it came like this so I can't tell you why. 
Title: Re: Homing Problem
Post by: Hood on May 06, 2010, 05:13:49 PM
You dont have the E-Stop set up to Mach, or at least not in the  xml you attached. I am presuming then that your E-Stop is solely connected to hardware and Mach does not know that you have pressed it, either that or it in some way hooks in to your limit switches.

Do you have a link to any documentation that came with your machine?

Hood
Title: Re: Homing Problem
Post by: TheGreenMachine on May 06, 2010, 05:20:29 PM
Hood, this is a manual for the breakout board. 

http://www.machmotion.com/pdf/IO6_Board_PP.pdf
Title: Re: Homing Problem
Post by: Hood on May 06, 2010, 05:32:42 PM
Ok from first glance it seems pin 10 is a dedicated pin for E-Stop  so that will be why you have it connected to the voltage with a link.
Do you have any spare pins on your second port you can connect the X switches to?
Do you have another PCI port that you could install and set up as Port 1 instead of the one you are using?
Hood
Title: Re: Homing Problem
Post by: TheGreenMachine on May 06, 2010, 05:50:47 PM
All the pins on my second port are open, I tried connecting the X up to each one of them and the same problem persisted.  I'm not sure about the PCI port, the mother board is tucked away inside this unit.  Before I start opening up the hardware and CPU I will give the manufacture a call.  Thanks for all your help.
Title: Re: Homing Problem
Post by: Hood on May 06, 2010, 06:00:12 PM
Yes, Mach Motion will be the ones to talk to if you also bought the computer from them.

Hood
Title: Re: Homing Problem
Post by: TheGreenMachine on June 02, 2010, 05:23:36 PM
I just wanted to let everyone know that I called Mach Motion and we got the problem resolved in a couple minutes.  I had to put M79 into MDI and it opened a setting screen which I then saved.  I don't really know what that did but I am now able to home the machine.  I highly reccomend Mach Motion, I feel that they have the best hardware setup around and their customer service is top notch.
Title: Re: Homing Problem
Post by: Hood on June 02, 2010, 05:43:51 PM
Glad you got it sorted :)

Hood