Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: miket161 on July 16, 2011, 07:25:44 PM

Title: Filpping the direction of the x-axis all by itself
Post by: miket161 on July 16, 2011, 07:25:44 PM
About once every half an hour to an hour the program reverses the direction of my X axis.

The way I know that it has happened is on the main screen, the yellow light flashes on the "Scale" for the X Axis, and the number switches from +1.0000
to -1.000.

The only way I have found to fix it is to shut down and restart the program. This is really slowing things down for me.

There seems to be no rhyme nor reason when it will happen. I haven't been making config changes.



Any suggestions?

Thanks!
Title: Re: Filpping the direction of the x-axis all by itself
Post by: BR549 on July 16, 2011, 10:33:13 PM
Yep I have seen it thappen many times , something corrupts the XML and you have to shut down Mach and reload to fix it. Sometimes you will see an ODD string of charectors in the scale dro.

There is a long list that needs to be fixed, (;-)

(;-) TP
Title: Re: Filpping the direction of the x-axis all by itself
Post by: Tweakie.CNC on July 17, 2011, 02:17:59 AM
It is something that has crept in during the last or last but one revision and the X Axis Scale DRO flips from +1.000 to -1.0000 when it encounters a minor error in the GCode.
For the time being all you can do is check your GCode for a bad instruction, possibly an M Code that is not on the approved list.

Tweakie.


Title: Re: Filpping the direction of the x-axis all by itself
Post by: budman68 on July 17, 2011, 06:16:59 AM
May I ask what version of Mach 3 you're using?

Thank you,
Dave
Title: Re: Filpping the direction of the x-axis all by itself
Post by: miket161 on July 17, 2011, 10:05:55 AM
It's version R3.043.022 that is current on your site.

It doesn't always happen on some bad code. I don't always notice exactly when it happens, but I'll try
to make notes on what I was doing when it does.
Title: Re: Filpping the direction of the x-axis all by itself
Post by: Hood on July 17, 2011, 10:46:18 AM
Can you attach your xml and some code that it happens with, will try to see if I can get it to do the same and maybe manage to work out why.
Hood
Title: Re: Filpping the direction of the x-axis all by itself
Post by: budman68 on July 17, 2011, 11:13:48 AM
It's version R3.043.022 that is current on your site.

It doesn't always happen on some bad code. I don't always notice exactly when it happens, but I'll try
to make notes on what I was doing when it does.

Thanks for that, and just a note, it's not "my site", I just help with cleaning up the "junk" around here when I can  ;)

Dave
Title: Re: Filpping the direction of the x-axis all by itself
Post by: miket161 on July 17, 2011, 10:25:22 PM
Can you attach your xml and some code that it happens with, will try to see if I can get it to do the same and maybe manage to work out why.
Hood

I'm new to this so I'm not sure where to find the XML code.

Also it will do this with no g-code loaded in. I am just jogging around checking things out and it will happen.
Title: Re: Filpping the direction of the x-axis all by itself
Post by: Hood on July 18, 2011, 03:53:12 AM
The xml is in your main Mach 3 folder on your drive and will have the name of the profile you use. If you open Mach and look at the lower right you will see the name of the profile. Look for a file with that name and a xml extension. To attach to the forum use the additional options button but you will likely have to copy and rename the xml first as the forum only accepts a file name once, so maybe rename to miket161.xml

Hood
Title: Re: Filpping the direction of the x-axis all by itself
Post by: budman68 on July 18, 2011, 06:14:36 AM
If it is just one axis, try changinging the cables with one of the other axis, do an "air cut" a few times, and see if the X still does it. If it doesn't, it could be a wiring flaw.

I had this happen when building a system and it turned out it was 2 of the direction wires slightly touching each other.

Dave
Title: Re: Filpping the direction of the x-axis all by itself
Post by: BR549 on July 18, 2011, 09:34:21 AM
Does it always light up the SCALE led and change the scale setting when it happens?

(;-) TP
Title: Re: Filpping the direction of the x-axis all by itself
Post by: miket161 on July 18, 2011, 01:53:43 PM
Does it always light up the SCALE led and change the scale setting when it happens?

(;-) TP

Always.
Title: Re: Filpping the direction of the x-axis all by itself
Post by: miket161 on July 18, 2011, 01:58:11 PM
If it is just one axis, try changinging the cables with one of the other axis, do an "air cut" a few times, and see if the X still does it. If it doesn't, it could be a wiring flaw.

I had this happen when building a system and it turned out it was 2 of the direction wires slightly touching each other.

Dave


Each wire has individually shrink tubing with no way to touch. I triple checked every wire before I plugged the motors in.
Title: Re: Filpping the direction of the x-axis all by itself
Post by: miket161 on July 18, 2011, 02:10:31 PM
Can you attach your xml and some code that it happens with, will try to see if I can get it to do the same and maybe manage to work out why.
Hood

Here's the XML code. Looks like a jumbles up mess to me  ???

Thanks
Title: Re: Filpping the direction of the x-axis all by itself
Post by: Hood on July 18, 2011, 02:52:56 PM
Have sent you a PM

Hood