Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: ClintK on February 05, 2008, 12:52:08 PM

Title: Fast Jog but it skips on G-Code
Post by: ClintK on February 05, 2008, 12:52:08 PM
???I have my motor tuning set to 50 ipm and it runs fine with the jog controls.  But when you run G-Code and the computer takes over, it skips steps on anything greater than 16 ipm.  There basically is no load on my router.  I'm just using a V-bit to carve in wood and only going 1/16" deep.  What is even more strange is that when I change my motor tuning to anything less than 50 ipm it skips when you jog.

Is there any way to get a faster cut speed?  I'd like to go up to at least 25 ipm.  I'm using HobbyCNC kit that includes the driver board and motors.

Thanks,
Clint

Title: Re: Fast Jog but it skips on G-Code
Post by: cjmerlin on February 05, 2008, 01:26:50 PM
Hi, Try increasing the drives acceleration time. The same thing happened when I set my machine up and this cured it.

If it doesn't, Try posting info on your power supply voltage and mechanical setup to help diagnose your problem.

Hope this helps.
Title: Re: Fast Jog but it skips on G-Code
Post by: ClintK on February 05, 2008, 03:55:53 PM
Thanks for your reply.  What is a good acceleration number?  I noticed that mine is set to 4.  My power supply is producing 33.4v to my steppers which are rated 3v 3A.  I was told that that was a good number.  I have HobbyCNC's 208 oz-in steppers.

Thanks,
Clint
Title: Re: Fast Jog but it skips on G-Code
Post by: cjmerlin on February 05, 2008, 05:24:24 PM
Hi, i'm not familiar with your setup but the voltage should be ok, try an accel value of 3, see what happens and if you get a good result increase in small increments.
Title: Re: Fast Jog but it skips on G-Code
Post by: ClintK on February 05, 2008, 05:52:11 PM
Thanks, will do.

Clint
Title: Re: Fast Jog but it skips on G-Code
Post by: ClintK on February 06, 2008, 01:08:43 PM
Just an update.  I set the acc. from 1 to 50 and it didn't seem to make any difference.  I set the ipm down to 45, the acc to 5 and the feed rate to 16.  I managed to run it without a skip for a couple of times.  Sure wish there was a way to up the feed rate.  Anyone have any suggestions.

Later,
Clint
Title: Re: Fast Jog but it skips on G-Code
Post by: cjmerlin on February 06, 2008, 03:30:41 PM
Hi Clint, I seem to have more questions than answers, let me get this straight. Your rapid speed is now set to 45 with accel set to 5, so your ramp-up time is 0.15 secs. At this setting you have run it without skipping.

Does it skip when on feed or rapids?

If the answer is at the very beginning of rapid moves during the ramp up period then you'll have to reduce the acceleration number. This is ok it'll just take a bit longer to get up to speed.

If it skips during the middle of a rapid move then basically the stepper cannot go that fast, you'll have to reduce the velocity.

A stepper motor on an axis can be made to go faster by,

Raising the drives voltage (make sure your drive can handle the voltage increase)
More powerful stepper motor. (If your existing motor is struggling to provide enough torque to overcome mechanical friction)
If your drive is uni-polar then changing to a bi-polar drive will increase the existing motors torque and speed.

If it skips during feeds then the problem could be,

Your computer is too slow (Computer's resources are at a minimum and has to do other tasks) I recommend no slower than 1200Mhz
Electrical noise (All your step and direction cables should be sheilded with only one end of the sheild connected to 0v)
A problem I havn't thought of. (Others chip in please to help this guy out)


Hope this helps.

Title: Re: Fast Jog but it skips on G-Code
Post by: ClintK on February 06, 2008, 07:13:54 PM
What happens is this.  When I set the motor tunings to 50ipm and acc. of 4 ( and I think 5 or whatever) I am able to use the jog controls without missing steps.  But when the computer runs the g-code, that is when it misses steps.  If you are able to jog at a given rate, why can't the computer run g-code at that rate, especially when there is no load on the steppers?

I guess that is my question.  When I set it to 45 (or 50) ipm and the feed rate to 16 ipm it seems to work, but I would like to cut faster than 16 ipm.

Thanks for your help.
Clint
Title: Re: Fast Jog but it skips on G-Code
Post by: Chaoticone on February 06, 2008, 08:21:51 PM
Are you rapid jogging and it doing good? Hold down the shift key and then jog. Another thing is this, Mach can change directions faster running code than you can with the keyboard.

Brett
Title: Re: Fast Jog but it skips on G-Code
Post by: Chip on February 06, 2008, 11:25:53 PM
Hi, Clint

I think what maybe causing your problem is as follows,

Mach default's on start-up to F6 feed (Feedrate 6.00), If you use the Jog key's to setup Motor Tuning, Velocity & Acceleration, Thy will be way off.

On the Program Run Screen, Click on the Feed-rate DRO line, Type in 100 then "Enter", Feed-rate is now 100.00, Units/Min will show Your Velocity setting.

OK now check the % Jog setting, Press the TAB key for "Pop-out Jog Window", Set the Slow Jog Rate to 100 %.

Now set up your Velocity & Acceleration and then give your G-code a try.

Hope this Helps, Chip
Title: Re: Fast Jog but it skips on G-Code
Post by: ClintK on February 07, 2008, 11:35:56 AM
First off, thank you all for your help.  It is appreciated.  Here is the latest data I have.  Some things are better and some things are stranger.

Chip,  your advice helped a bunch.  The feed rate was set to 6 and the percentage to +5% or something like that.  I changed both of them to 100.  It ran better but it still wanted to skip.  I set it to 50 ipm on all axises and, here is the strange part, I had to set the acc. for Z to 1, Y to 2 and X to 3.  Then I set the feed rate in my g-code to 50.  It worked beautifully.  It was fast but the quality suffered a little.  Now when I change the feed rate to anything else than 50 it skips again.

Anyone have any more ideas.

Thanks
Clint
Title: Re: Fast Jog but it skips on G-Code
Post by: Chip on February 07, 2008, 02:00:14 PM
Hi, Clint

In motor tuning set the Step&Dir Pulse's to 5, This will give your stepper control more time to see the Pulse's

Setting up Vel. & Accl. is a balancing Act !!, It's primarily used for Rapid Moves (G00) Your F?? set's your Cut Speed's and will override Vel./Accl.

Set the Vel. Up to a speed that it start's lousing steps then back it down by about 10%, Do the same process for the Accl.

Use a distance that will allow you to see the top Vel. and then return to a stopped condition, G00 moves.

I think your accl. may be set to low.

Have you run the Driver Test, It's located in C:\Mach3 Folder, Run it and see what it shows.

If you have large spikes in the graph you may need to clear up Windows.

Thanks, Chip
Title: Re: Fast Jog but it skips on G-Code
Post by: ClintK on February 11, 2008, 08:58:57 AM
One last post (I hope).  Thank you all for your help.  After a lot of experimenting I have come to the conclusion that the problem isn't all Mach3.

Just a note for those who use the HobbyCNC package.  Set your board to 1/4 stepping.  Doesn't make sense but it works.  Using a 1/4-20 rod you end up with 16000 steps per inch.

Then I changed my motor tunings to 45 ipm and acc. of 10.  When I changed my settings to this it seems to work.

I have cut 3 complicated pieces and it never skipped.  Changed my feed rate from 30 to 16 and it still never skipped.  So thanks a lot everyone for your help.

Thanks,
Clint