Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: hdoug5 on June 16, 2012, 12:01:20 PM

Title: y axis changing direction while running g code
Post by: hdoug5 on June 16, 2012, 12:01:20 PM
need a lil help, when running a program and it calls for x32.000 y5.350 the y axis will go there but then it will wander to the other side of the peice. I tried using the manual control and y axis will run positive when the positive button is pushed but when negative is pushed it will still run positive but hitt negative twice and the motor will change to run negative im running mach3 and have 24 volt power a tb6560 controller and 266 sanyo denki steppers ive changed the y stepper thinking it was the motor but still the same problem ive checked all my wiring but every thing is good there, ive even tried slowing the motor down or speeding up but nothing helps
I sure hope one of you can help with some info
Thanks in advance
Doug
Title: Re: y axis changing direction while running g code
Post by: Hood on June 16, 2012, 12:59:42 PM
Sounds like you may have a loose connection on your Dir pin but if you attach your xml I will check your config in case there is an issue in it.
Hood
Title: Re: y axis changing direction while running g code
Post by: hdoug5 on June 16, 2012, 01:00:48 PM
ok i can do that
Title: Re: y axis changing direction while running g code
Post by: hdoug5 on June 16, 2012, 01:08:40 PM
ok im lost how do i send it ?
Title: Re: y axis changing direction while running g code
Post by: Hood on June 16, 2012, 01:11:14 PM
You will need to copy it to your desktop and rename it before the forum will accept it, I suggest you call it hdoug5.xml as that will not have been used before so the forum will accept it.
To attach you use the additional options button on the reply page then browse to your desktop and choose the renamed file.
Hood
Title: Re: y axis changing direction while running g code
Post by: hdoug5 on June 16, 2012, 01:37:28 PM
ok here it is
Thanks in advance
Doug
Title: Re: y axis changing direction while running g code
Post by: Hood on June 16, 2012, 02:23:51 PM
Ok you have attached all the xmls so not sure which one you are using, if in fact you are using any of them. I opened the mill one and it seems to be a default setup but it may well be what you are using.
If it is then dont seen anything that would be likely to cause probs except you may need the Step Pulse and Dir Pulse set a bit higher, try 5, its on motor tuning page.
Hood
Title: Re: y axis changing direction while running g code
Post by: hdoug5 on June 16, 2012, 03:01:36 PM
im using the mill one, both dir and pulse are on 5--- im thinking my controller may be at fault i sent them a message hopefully they will return with some info
i had a router setup on my screen but it doesnt show in xml for some reason
Title: Re: y axis changing direction while running g code
Post by: Hood on June 16, 2012, 03:08:54 PM
The xml you attached was at 0 for both step and pulse so it may have been the wrong xml you attached. If you open Mach and lower right you will see the name of the profile you are using, that is the name of the xml you should look for.
Hood
Title: Re: y axis changing direction while running g code
Post by: hdoug5 on June 16, 2012, 03:20:00 PM
ok i found this in one of the xml folders  i believe this is the last updated one on here i hope this helps
Title: Re: y axis changing direction while running g code
Post by: Hood on June 16, 2012, 03:26:19 PM
Ok that looks a bit more like it :) Still dont see anything wrong though so probably is hardware.
What you could do is swap the pins in Mach for X and Y and see if it now happens on the X (Machs X)
Hood
Title: Re: y axis changing direction while running g code
Post by: hdoug5 on June 16, 2012, 03:36:54 PM
ok did the swap i do believe i have a hardware issue with my new controller, thank you for your help on this i really apreciate it
i'll let you know if a new controller fixes it
Title: Re: y axis changing direction while running g code
Post by: hdoug5 on June 18, 2012, 03:05:42 PM
ive changed drivers ive changed motors ive changed pc's nothing helps i did the swap with x&y axis and still the same problem with X being on Y's slot it will run straight for a few seconds but if it has to stop and do a lil jog it will reverse direction but the counter continues going as it was  like telling it to go 20 inches then stop to cut hole it will start ok but then it changes direction when it should be going as it started and the counter keeps going up
i hope this helps
Doug
Title: Re: y axis changing direction while running g code
Post by: Tweakie.CNC on June 19, 2012, 02:09:01 AM
Hi Doug,

The tb6560 controller works best with a 5Volt TTL signal, if your parallel port is only outputting a 3.3Volt TTL signal then this could be the cause of your problem. Check your X axis Direction pin with a voltmeter - it should switch between 0V and 5V (approx.) depending on the direction of motion.

Tweakie.
Title: Re: y axis changing direction while running g code
Post by: hdoug5 on June 19, 2012, 01:42:55 PM
heyyy thanks Tweeky
i will check that and see but isnt it ironic that two pc's would have the same problem ?
this just all of a sudden happened it was working great a week or so ago themotor will make a growling sound then take off in another direction (I think its haunted lol)
Title: Re: y axis changing direction while running g code
Post by: mactire on July 06, 2012, 05:56:02 PM
Hi,

I have just finished starting up my first small router, and I'm also using the TB6560 controller.

I have the exact same problem, and just wanted to know if you were able to solve it - or should I start looking for a new board :(

Thanks
Title: Re: y axis changing direction while running g code
Post by: hdoug5 on July 06, 2012, 09:39:27 PM
hi
the people that sold me the tb6560 took it back as defective and are replacing it with a new one
i also bought a quickcnc driver board works pretty good so far
Title: Re: y axis changing direction while running g code
Post by: Hood on July 07, 2012, 04:10:49 AM
mactire
Attach your xml and I will check your config in case it is a problem with it.
Hood