Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: martin on May 11, 2017, 03:21:02 PM

Title: Axis direction doesn't always change
Post by: martin on May 11, 2017, 03:21:02 PM
Friend of mine's computer died & I had one that I had been using before making some upgrades, machine is running windows 7 32bit via the parallel port & has been optimised to run mach3. This computer had been running my CNC for a couple of years without any problems. I removed myself as a user & deleted all my files, removed my licence file for mach3 & installed my friends licence code & the profile that he had been using with his old computer. Those were the only changes to the computer.

Now it is hooked up to his cnc machine the Y & Z axis seem to be working as normal but there seems to be a random problem with the X axis. If you press the left arrow key the machine moves to the left as it should or if you press the right arrow key it moves to the right as it should. The problem is that on occasions if you move to either the right or left (doesn't seem to matter) then move in the opposite direction the machine carries on moving the way it had previously been moving rather than changing direction  :)
I thought this may be a keyboard problem but I have now tried 3 different keyboards & same thing happens with them all, every now & again the axis doesn't change direction when it should. Haven't tried cutting anything to see if it does the same thing when cutting just in case there was a problem  
Title: Re: Axis direction doesn't always change
Post by: ger21 on May 11, 2017, 06:05:26 PM
It's most likely the voltage on the direction pin.
Title: Re: Axis direction doesn't always change
Post by: martin on May 12, 2017, 06:00:20 AM
OK I can check that thanks ger21 but what would cause the voltage to be different on just one pin & is there anything that could have caused it to change, I never had a problem like this when I was using the computer with my machine. Only reason I changed my computer was because I had a spare one & set that up to work with an ethernet motion controller. Using a different comtuter meant that if I hit a problem I knew I could always switch back if I had a problem  :)
His cnc electronics are different to mine, BOB, drivers & power supply but I wouldn't have thought that would make a difference.
Title: Re: Axis direction doesn't always change
Post by: bobdon on June 18, 2017, 02:01:23 PM
I had a router for about two years and from the day i got it i had a problem with Y axis running rough and changing direction. About two weeks ago i found a lose wire on the control board which fixed all of my problems for the past 2 years. I hope your problem is that easy to fix.

good luck
Bob
Title: Re: Axis direction doesn't always change
Post by: martin on November 08, 2017, 08:05:21 PM
I forgot I had asked this question lol, the guy had an accident (welding) & hadn't been near the machine since I asked this question the first time round. He now wants to try & get things moving so he can use it again. voltage on that particular pin seems to be fine.
Tried several keyboards just in case it was a keyboard error & still the same problem, sometimes it jogs the right way & sometimes it doesn't. There doesn't seem to be any consistency to it. Even if you just keep jogging in the same direction at some point it starts to travel the other way.
Ran a gcode file that I knew was good & he had cut before with the old computer & it does exactly the same thing so not just a problem with jogging from the keyboard.
Sure someone must have experienced this problem in the past lol
Title: Re: Axis direction doesn't always change
Post by: joeaverage on November 09, 2017, 02:04:32 AM
Hi,
sounds like noise to me. Try Config/General Config... upper right corner 'Debounce Interval' , make it 20 and see what happens.

Craig
Title: Re: Axis direction doesn't always change
Post by: martin on November 09, 2017, 04:34:58 AM
Will give that a try Craig & report back, the machine has shielded cables, is correctly earthed & was running fine prior to the old compute melt down but anything is worth trying lol
It is just the one axis as well, what I haven't done which might be worth trying is switching the cables for X & Y axis to see if the problem moves.
Title: Re: Axis direction doesn't always change
Post by: Tweakie.CNC on November 09, 2017, 08:05:10 AM
Hi Martin,

You need to leave the voltmeter connected to the axis direction pin. Make a note of the voltage for each direction of the axis movement when jogging. When it goes in the wrong direction is the voltage correct for that axis direction ?

Tweakie.
Title: Re: Axis direction doesn't always change
Post by: martin on November 09, 2017, 09:18:59 AM
Hi Martin,

You need to leave the voltmeter connected to the axis direction pin. Make a note of the voltage for each direction of the axis movement when jogging. When it goes in the wrong direction is the voltage correct for that axis direction ?

Tweakie.

I did check the voltages with the axis moving for both X & Y axis but it was just a quick check & I honestly don't know if the axis was moving the right or the wrong way so will check that again but be a bit more thorough lol, what would cause the voltage to change & what would the fix be if I found there was a difference ?
Would like to go back & be able to sort this rather than keep having to make trips out to see him.

Title: Re: Axis direction doesn't always change
Post by: ger21 on November 09, 2017, 10:40:12 AM
The direction voltage is 0V in one direction, and 5V in the other direction.
If it's not, it could be a lot of things. If it's 0 and 3.3V, then that could mean you have a 3.3V parallel port. In that case, you'd need a breakout board that works with 3.3V.
Title: Re: Axis direction doesn't always change
Post by: Tweakie.CNC on November 09, 2017, 10:46:31 AM
Hi Martin,

I think Gerry has mentioned the most likely cause of the problem - 3.3V TTL signals where 5V TTL is expected.

Tweakie.
Title: Re: X and Y Jogging the wrong way !!
Post by: Jacko on March 27, 2022, 05:03:49 AM
Hi all,
       Just finished converting a Warco mill to CNC and after the usual tuning all works fine and produces a good result apart from the jog keys send the X & Y in the wrong direction!!
When I toggle the dir active in motor tuning the jog keys then work as they should but when I  machine a part with these settings it comes out a mirror image and upside down.
I am using  Mach 3 with a Windows 10 laptop for the first time with a genuine UC100 controller direct from CNC drive in Hungary.
Any ideas how to reverse the jog keys so they work correctly without changing anything else?
Many thanks
JH