Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: ders on April 30, 2010, 05:40:07 PM

Title: Homing Trouble KX1
Post by: ders on April 30, 2010, 05:40:07 PM
I am setting up a new KX1 mill. The Y axis homes properly by hitting the switch and backing off but the X hits the switch and stops with no backing off. Help!
Title: Re: Homing Trouble KX1
Post by: Hood on April 30, 2010, 05:44:39 PM
Usually a sign of a bouncy switch, try setting a Debounce Interval of 2000, its on General Config page. If that helps then best solution would be to get another switch as debounce is really just masking the problem and not curing it.
Hood
Title: Re: Homing Trouble KX1
Post by: ders on April 30, 2010, 05:50:32 PM
I don't think its the switch. When I home and hold the y switch down it reverses the direction and zeros the axis when I let go. In X when I manually hold the switch down it just stops and never reverses direction.
Title: Re: Homing Trouble KX1
Post by: Hood on April 30, 2010, 05:55:31 PM
If the switch is bad it will momentarily trigger then release then trigger then release etc etc etc, you may see the LED stay on in the diagnostics page but Mach itself is much faster than the screen graphics so you will not see it switching on and off.

Hood
Title: Re: Homing Trouble KX1
Post by: Hood on April 30, 2010, 05:56:42 PM
One sure fire way to know if it is the problem is if the X DRO zeros in machine coords when the switch is hit.
Hood
Title: Re: Homing Trouble KX1
Post by: ders on April 30, 2010, 06:01:12 PM
When the x switch is hit the DRO keeps running because it is waiting to be released. But since the axis is not reversing it is not being release.
Title: Re: Homing Trouble KX1
Post by: Hood on April 30, 2010, 06:03:47 PM
Ok so the switch is not being seen by Mach at all then, double check you have it set correctly in Ports and Pins and also look on the diagnostics page to see if you get the X Home LED lighting.
Hood
Title: Re: Homing Trouble KX1
Post by: ders on April 30, 2010, 06:05:18 PM
Set the debounce to 2000 and one of the switchs on X will cause it to reverse and zero and the other switch wont even though they are basically wired to the same input (Mach shouldn't know the diferance between the two) The screwy thing is after the X resets the value of Y the changes for no reason.
Title: Re: Homing Trouble KX1
Post by: ders on April 30, 2010, 06:05:50 PM
X homeing LED working fine
Title: Re: Homing Trouble KX1
Post by: Hood on April 30, 2010, 06:06:19 PM
Please attach your xml

Hood
Title: Re: Homing Trouble KX1
Post by: ders on April 30, 2010, 06:12:12 PM
If I reverese the homing direction the the other switch on X will work.

Here is the file. THANKS FOR YOUR HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Title: Re: Homing Trouble KX1
Post by: Hood on April 30, 2010, 06:16:23 PM
That would to me suggest a bad switch then. Why you see it showing on diagnostics page I do not know. Will look at your xml and see if I can find a problem.

Hood
Title: Re: Homing Trouble KX1
Post by: ders on April 30, 2010, 06:20:53 PM
I'll try to explain this. If I home posiitive and push the switch that the machine would hit in the negative direction it will work and vis versa. Seems like I need to reverse the switches? I'm I making any since?
Title: Re: Homing Trouble KX1
Post by: Hood on April 30, 2010, 06:23:53 PM
xml looks fine and seems to be working fine here in simulation.
Dont understand how reversing the homing direction would affect things as you have your switches wired in series so Mach doesnt know which switch is being seen.
Hood
Title: Re: Homing Trouble KX1
Post by: ders on April 30, 2010, 06:30:56 PM
That is what I was thinking. Any Ideas?
Title: Re: Homing Trouble KX1
Post by: Hood on April 30, 2010, 06:35:41 PM
Afraid not, only thing I can suggest is download Mach again and install over the top of itself.
Worst comes to the worst you could home the opposite way and just set a Home Off value.

Hood
Title: Re: Homing Trouble KX1
Post by: ders on April 30, 2010, 06:37:31 PM
GOT IT... I reversed the wires on the curcit board labeled X+ and X- that are wired to the limit switches and we have lift off. Thanks for the help.
Title: Re: Homing Trouble KX1
Post by: Hood on May 01, 2010, 05:45:49 AM
Not really sure I follow as you have al X wired in series  so no matter which wire is  which it should not matter, they are only acting as a closed circuit when non activated and an open circuit when activated.

Main thing, I suppose,  is you now  have things working.

Hood
Title: Re: Homing Trouble KX1
Post by: cmcmanager on May 02, 2010, 01:29:47 AM
Hi all!

When our cnc machine automatically traveling to home position(after end of gcode work ),the x & Y axis is properly stop at 0,0 position but the z axes hits the work table at (-50) position(for example). Please Help me!

Thanks,
mostafa
Title: Re: Homing Trouble KX1
Post by: Hood on May 02, 2010, 02:41:50 AM
Sounds like you are losing steps, try detuning your Z axis a bit, also check the axis for any roughness or binding.
Hood
Title: Re: Homing Trouble KX1
Post by: cmcmanager on May 02, 2010, 05:05:32 AM
Dera Hood,

Thanks for your reply,

I don't understand losing steps in z axes!please guide me further If possible.
Why does  when machine is duration of work we don't have any losing step!!?
And I think we don't have any roughness or binding.

I'll wait for your early reply.





Title: Re: Homing Trouble KX1
Post by: Hood on May 02, 2010, 06:25:42 AM
Ok maybe I misunderstood your question, can you try and explain a bit clearer what is happening.
Does the Z DRO in Mach show the position the tool is at or does the DRO show where the tool should be?

Hood
Title: Re: Homing Trouble KX1
Post by: cmcmanager on May 02, 2010, 02:26:43 PM
Ok , I've to explain you again:

Our machine was worked for long time with any problem.

But 3 days a go this problem was happened:
When the cnc machine complete the hacking work, automatically traveling to home (the gcode line number is final line & the gcode traveling position is x=0/y=0/z=0).
Hence, x & y axes travleing to "0" position but z axes crossing the "0" position and hits the table.for example the position of z at this time is "-50" but It should be "0" position.
And finally the counter display of mach3 showing{ x = 0,y = 0,z = -50}!!
Title: Re: Homing Trouble KX1
Post by: Hood on May 02, 2010, 04:52:55 PM
Please attach your code and your xml and also the fixtures.dat and tools3.dat, you will find the last two in the macro folder of the profile you are using.
Hood