New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Acceleration violations in linuxCNC 2.7 and 2.8 #546
Comments
I discovered that AFAICT this bug is triggered by very small G64 PXXX values |
I think we have ran across that bug before...
…On Tue, Jan 1, 2019 at 10:05 AM pcw-mesa ***@***.***> wrote:
I discovered that AFAICT this bug is triggered by very small G64 PXXX
values
The example files provided on the forum had G64 P0.001 in mm
if this is set to .003 or greater the acceleration constraint is not
violated
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#546 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQ8TQk28HT5x1BoXZD9zr4vX4-VZO-OXks5u-4dOgaJpZM4ZlDJR>
.
|
Yes I remember. This (tiny G64 Pxxx values) seem to mainly effect configs with high velocity/acceleration. It looks like the forum posters issue is not the same, I can duplicate it here with a mm LinuxCNC 2.8 config: http://freeby.mesanet.com/fe28.png Axis A (Joint3) has a maximum velocity of 200 degrees per second and acceleration of 2000 degrees |
Thanks for providing the scope traces and test program. It was possible to slice out a short (20 line) portion of it to reproduce the issue in sim. Would you mind giving my fix branch a try to see if the fix works on your platform? |
Sure, how do I get you patches? bear with me, I have a terrible flu so keep it simple :-) |
You can get the branch from my github mirror of linuxcnc here:
https://github.com/robEllenberg/linuxcnc-mirror
the branch name is *bug546-tangent-segment-acceleration-corner-cases*
|
OK tested that branch, I does seem to fix the "small G64PXXX value" problem http://freeby.mesanet.com/a-err.png (bottom trace is acceleration, ini file constraint is 2000 but acceleration reaches ~3000) |
Is that at the end of the program? It looks like it's coming up to the last segment too fast; possible an issue with the optimizer. Is 1_wrap.ngc different from 1.ngc linked above? If so, could you post a link to it? I'll try to reproduce it with the debug output on and see where it's failing. |
Sorry I didn't include that, here it is http://freeby.mesanet.com/1_wrap.ngc With my config I get the fault around line 420 |
Thanks! I was able to reproduce it by doing a find / replace of "Y" with "A" in the original file as well. I just pushed a fix to that same branch (currently running in sim locally without violations so far). There was a parabolic blending case where it wasn't reducing acceleration correctly, causing the violation you saw. |
Yay! and thanks! both bugs fixed AFAICT |
We believe this is fixed in 2.7 and newer: 04d7be9 |
Both current versions of LinuxCNC have acceleration constraint violations in some circumstances
While testing a forum posters gcode files ( https://forum.linuxcnc.org/9-installing-linuxcnc/35744-not-a-bug-report ) i found that I could get acceleration violations with one of the test files: \
http://freeby.mesanet.com/1.ngc
I have aggressive velocity and acceleration limits on my test configuration: 20 IPS and 200 IPS^2
and that may play a part, but this error is reproducible in both 2.7 and 2.8 (first error around line 920)
http://freeby.mesanet.com/28ferror.png
http://freeby.mesanet.com/28ferrorb.png
The second plot has the ferror limits widened enough so the following error fault is not generated
The text was updated successfully, but these errors were encountered: