Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: factory5150 on January 20, 2013, 12:52:46 PM

Title: Machine hesitates then loses position
Post by: factory5150 on January 20, 2013, 12:52:46 PM
Hello everyone,


I have been having a problem for the past 2 weeks with my machine running a program while doing a finishing cycle on some pickup cavities on a guitar body. It will run along just fine then the machine hesitates then continues do run the cycle, however mach3 thinks it never hesitated and therefor it loses position. The strange thing is when I home the machine out, my offsets for the fixture are still what they were before the machine did that hesitation. I have scrapped a few bodies out because it appeared as though the machine just wanted to do its own thing.

I have been running without a hiccup for 2 years and it just started to do this to me. The only thing that has changed was I attached my home switches to my machine 2 weeks ago. Before they were taped to my desk and I would tap them when an axis was close to its travel when starting up mach. Now that I have a consistent home position this problem started.

After I attached those home switches, I changed my look ahead to 100 lines instead of the default 20 and that's when I started seeing the issues happen. I changed it back to the default and it helped but now its hanging up in another section of the piece. Prior to changing my look ahead back to default it was hanging up in the exact same position over and over. Now that its back to default it is able to run the cavity at the first depth but hesitates during the second depth cut.

I unhooked my limit switches and set all config settings back to default and I still have issues. I had thought maybe my home switches were causing noise interference due to the fact the wire is unshielded but during my test I discovered that as not the case.

I know this is very confusing to read, and I can take a video if you would like.

I am still running the same version of mach3 that was originally downloaded several years ago.

Would uninstalling and reinstalling do anything?

I am at my wits end with this.

Specs are as follows if it means anything?
Gecko G540
P4 2.6 GHz processor
1GB of ram
nothing else on the computer, dedicated CNC computer.

Please help.
Chris
Title: Re: Machine hesitates then loses position
Post by: Picengraver on January 20, 2013, 07:20:45 PM
Chris,

A video may give someone a clue.  It is a little confusing since you say it loses position, but also that it zeros back to the fixture.  Strange.  As a wild guess, are you running your gcode file from a drive other than your hard drive?

John Champlain
Title: Re: Machine hesitates then loses position
Post by: factory5150 on January 23, 2013, 06:03:00 PM
John,

http://www.youtube.com/watch?v=-DwrXKvqqOY (http://www.youtube.com/watch?v=-DwrXKvqqOY)

There is a video showing what the machine is doing.

Like I said earlier, everything was working and performing as it should have until about 2 weeks ago. I know my motor wiring and mach settings are good, however I will attach my xml file for you guys to proof read if need be.

My only change was physically attaching my home switches to the machine. Before they were wired up setting on my desk and I would activate them when an axis was close enough. I wanted to start using fixtures so I needed a consistent machine zero and that's when I drilled and tapped some holes. The home switches do not have any shielded wire, but I unhooked them from the power supply over the weekend and the machine was still losing steps/stalling.

There are no binds on the Y axis to cause the motor to stall and my acceleration and velocity settings have been the same for a year.

I can try swapping parallel cables to see if that helps but I doubt it will.

Videos speak louder than words.

Any help is greatly appreciated.
Chris
Title: Re: Machine hesitates then loses position
Post by: Hood on January 23, 2013, 06:24:17 PM
Can you attach your xml.
Hood
Title: Re: Machine hesitates then loses position
Post by: factory5150 on January 23, 2013, 07:48:01 PM
I'm also running V3.042.040 for what its worth.

Thanks,
Chris
Title: Re: Machine hesitates then loses position
Post by: Hood on January 23, 2013, 08:01:14 PM
Ok I see you have the kernel set to 60KHz but the most you need is 42KHz so could you try setting to  45KHz and restarting Mach.
Also can you tell me what the Time in Int and Frequency are before you change the kernel please.
I probably wont get your reply until the morning as its late, or rather early, here.
Hood
Title: Re: Machine hesitates then loses position
Post by: Hood on January 23, 2013, 08:09:04 PM
One other thing, can you disable backlash comp to test and see if it improves.
Hood
Title: Re: Machine hesitates then loses position
Post by: factory5150 on January 24, 2013, 05:20:42 PM
I am going to create a new profile and change the kernal to 45Khz so I can revert back if need be.

Current Time in Int is +4.2 but it cycles up to 7.5

The numbers move so quick its hard to see what it is, but +4.2 is the lowest it goes and +7.5 is the highest. Frequency is 62442

I will start doing some changes while you guys instruct me on what to do next.

Thanks,
Chris
Title: Re: Machine hesitates then loses position
Post by: Hood on January 24, 2013, 05:28:02 PM
Ok Time in Int should be ok but your frequency is a bit out although it sounds like its stable.
Might be worthwhile looking while you are running code however to see what its like. Also have a look at CPU usage when running code and see what its like (Ctrl Alt Del)
Definitely disable backlash and see if that helps.
Run the driver test (with Mach closed down) and try it at 60KHz and see if there is a nice flat line, also try at 45KHz and see what its like.
Hood
Title: Re: Machine hesitates then loses position
Post by: factory5150 on January 24, 2013, 05:57:36 PM
Disabled backlash compensation and the problem has gone away. Everything works like a champ now.

I ran a driver test before I set it at 60KHz over a year ago and I was green across the board and everything seemed to check out.

I will make a new profile using 45Khz and maybe it will be even more stable.

But I am so happy that I ran without one issue and the machine sounded much smoother.
I think I enabled backlash compensation before I attached my home switches thinking that it was the reason my circles were not coming out perfect. I think my feed rate was too fast and that's why the small circles weren't coming out good. I was using a 1/16 end mill to profile 3/32 and 3/16 holes at 60IPM.

Thank you Hood for helping me out!
Chris
Title: Re: Machine hesitates then loses position
Post by: Hood on January 24, 2013, 06:01:21 PM
Good to hear :)
I think you may have your backlash speed too high, I dont use backlash myself but its at 100% in your xml and maybe that is just too much. If you dont really need it however best with it disabled and to be honest on a wood cutting machine it would have to have a fair amount of play before backlash would become an issue.
Hood
Title: Re: Machine hesitates then loses position
Post by: factory5150 on January 24, 2013, 06:08:58 PM
I have ballscrews with anti backlash nuts on all axis'. Why I thought I needed backlash compensation is beyond me.

I never used it before, but like I said I thought maybe it was my solution to circles coming out slightly square so that's why I enabled it prior to me encountering my lost steps.

Maybe the circle thing is a CV issue. I have no troubles with any complex designs or square pockets but that is a topic for another day.

Thanks again!
Title: Re: Machine hesitates then loses position
Post by: Hood on January 24, 2013, 06:14:59 PM
Maybe just flex with the small diameter cutter? Tried taking small depth of cuts to see if its better?
Hood
Title: Re: Machine hesitates then loses position
Post by: factory5150 on January 24, 2013, 06:40:50 PM
I think my depth of cut is like .015 using 20% step over? Its not a big deal, I only use that particular tool path to locate a hole that I finish drill on the drill press.
Title: Re: Machine hesitates then loses position
Post by: Hood on January 24, 2013, 06:50:36 PM
Well that small a cut will not deflect anything, thats for sure :)
Hood