Machsupport Forum

Third party software and hardware support forums. => CS-Lab => Topic started by: jofriedl on June 09, 2016, 07:13:53 PM

Title: Jerky movement between strait movements and curves.
Post by: jofriedl on June 09, 2016, 07:13:53 PM
Hey there guys,

    I've got a matsuura mc500v thats running under mach3 control with a csmio/ip-a controller and I can't seem to get the machine to smoothly transition between straight lines and curves. It's really always had this problem but I am needing to run it faster than I have been and the jerk is so bad that I'm tripping a following error (have my max following error set to 10000).

I'm using mastercam to generate the G-code. Here is a sample below. I can run the code, but only at a rate of 75 ipm. Mach will run smoothly until it gets to the G02 and g03 and suddenly there's a jerk than I can hear clear across the shop. It I try at 150ipm the machine will oscillate like crazy, throw a following error and trip my reset. Its almost as if Mach isn't looking ahead at the circular portions of the path. Or that when the machine arrives at a G02 or G03 command the machine ignores the axis max acceleration settings. ANy thoughts? Thanks for any and all help!

X-3.2416 Y-4.4236 Z.2779
X-3.2487 Y-4.4109 Z.2753
X-3.2552 Y-4.3979 Z.2727
X-3.2608 Y-4.3845 Z.2702
X-3.3469 Y-4.1632
X-3.3617 Y-4.1251
G3 X-3.3646 Y-4.1183 R.1125
X-3.387 Y-4.0863 R.1125
G1 X-3.4046 Y-4.0547
X-3.4184 Y-4.0237
X-3.4276 Y-3.9972
X-3.4336 Y-3.9743
X-3.4376 Y-3.9542
X-3.4423 Y-3.9199
X-3.4446 Y-3.8896
Title: Re: Jerky movement between strait movements and curves.
Post by: Mogal on June 09, 2016, 07:59:48 PM
Is the exact stop checked in Mach settings?
(You'll want to use CV (constant velocity) but may lose detail depending on your speed and acceleration)
Title: Re: Jerky movement between strait movements and curves.
Post by: jofriedl on June 09, 2016, 08:18:58 PM
I suppose I should have mentioned the obvious. The machine is definitely in constant velocity mode. And all other constant velocity settings are unchecked
Title: Re: Jerky movement between strait movements and curves.
Post by: Hood on June 20, 2016, 06:06:50 AM
Sounds a bit like bad tuning or maybe you just have the acceleration a bit on the fast side although if that was the case then I would have thought doing a straight line 90 degree change would have been an issue as well. What kind of following error are you getting in the PID Tuning page and what is the steps per unit.
Hood
Title: Re: Jerky movement between strait movements and curves.
Post by: jofriedl on June 20, 2016, 11:12:40 PM
Hood,

 I'm not sure. I'm sure my servos could be tuned a little better, but truth be told I've tuned them so many times I'm almost to the point where I'm over it. Back when the machine was missing steps due to the optocouplers they were more difficult to tune, so the new encoders have helped quite a bit. But I think the feedback from the servos to the drives are whats getting me know. I've adjusted the three potentiometers on the front of the servo drive to no avail.

The thing is, I had it running fairly well before I tried to reconfigure Mach for ridgid tapping. In the process of switching the spindle to the control of the ipa rather than the plc, I accidentally deleted my M6 macro and tried to recover it by reinstalling mach3. Ever since the reinstall, the machine has been having trouble. Its like its not capable of look ahead anymore. If I'm running a program at 45ipm and each point is only a few thou away from the next, say in the case of a helical plunge, the machine never has the chance to accelerate to the next point. So while the machine is commanding the drives to move at 45ipm its actually moving at 1 to 3 ipm. CS labs suspects that my mach3 file is corrupt. Don't know how that would happen, but I'll try downloading and reinstalling a fresh copy. I would make the jump to mach4 but rigid tapping isn't supported there and I've grown fond of rigid tapping.
Title: Re: Jerky movement between strait movements and curves.
Post by: Hood on June 21, 2016, 03:10:04 AM
What version did you install, if 066 then get rid of it and go back to 062 or earlier, Ver 066 is screwed up.

Presume you have the look ahead set to a reasonable value?

No need to reinstall Mach if just wanting to make a new xml, just make a new profile but do not copy it from your current one in case the corruption (if it is corrupted) gets transferred, so just choose a default profile box and a new name then enter the values manually.

Hood
Title: Re: Jerky movement between strait movements and curves.
Post by: jofriedl on June 22, 2016, 08:01:58 PM
Thanks Hood. I do have the 066 version of mach. Is there somewhere I could download an older version? Under the download page for Mach3 they only seem to have the 066 version and vista version.
Title: Re: Jerky movement between strait movements and curves.
Post by: Tweakie.CNC on June 23, 2016, 02:12:49 AM
 If it's any help, the most popular version appears to be R3.043.062 and this can be downloaded from here;
http://ftp://anonymous:guest@machsupport.com/Mach3/Mach3Version3.043.062.exe

Tweakie.
Title: Re: Jerky movement between strait movements and curves.
Post by: jofriedl on June 24, 2016, 10:25:56 AM
Hi, Tweakie.


That link doesn't seem to work for me. Is there an alternative? Thanks!

Jonathon
Title: Re: Jerky movement between strait movements and curves.
Post by: jofriedl on June 24, 2016, 12:31:34 PM
Tweakie, I just realized that's an FTP link, so I think I just need to wait for you to be online, is that right? Thanks!

Joathon
Title: Re: Jerky movement between strait movements and curves.
Post by: Hood on June 24, 2016, 02:56:25 PM
Try this
ftp://anonymous:guest@machsupport.com/Mach3/Mach3Version3.043.062.exe (ftp://anonymous:guest@machsupport.com/Mach3/Mach3Version3.043.062.exe)

Hood
Title: Re: Jerky movement between strait movements and curves.
Post by: jofriedl on June 24, 2016, 07:52:15 PM
Thanks, Hood! You are, by far, my favorite Scotsman!
Title: Re: Jerky movement between strait movements and curves.
Post by: jofriedl on June 25, 2016, 12:13:24 AM
 I have reinstalled mach3 and rebuilt the xml file. I also reinstalled the firmware from Cs labs. I tuned the servos MANY times. I lowered the acceleration rate down to 5/sec/sec which is very low. Still, nothing seems to help.

When the program runs from a linear movement into a circular movement there is a VERY distinctive jerk. The jerk is harder the faster the machine is moving. If I'm moving at 85ipm and my max following error is set high, the machine jerks but keeps moving through the program. If I have my following error set low then the machine just triggers a PID error. If I am running at a higher speed like 150ipm then the jerk is even more distinctive and the machine triggers a PID error. Basically, my machine only works at low feed rates and rapids. I need this machine to move fast for production. Any suggestions?

part of me suspects there is a bug in the controller itself, but I can't be sure.

I'd love to test a bit of code out on another machine running under an IPA if I could.
Title: Re: Jerky movement between strait movements and curves.
Post by: Hood on June 26, 2016, 04:43:05 AM
Attach the code and when I get back to the workshop I will give it a run and see.
Hood