Page 1 of 1

[solved] Interpolate arcs with line segments

Posted: Fri Sep 24, 2021 12:51 am
by JTI
Hello,
I try to use the "Interpolate arcs with line segments" in the CAM configuration, but the generated tool path around a simple circle is only half a circle. I have tried this with different postprocessors without any luck. Did I miss a setting to get a full circular toolpath?

Thanks in advance

Re: Interpolate arcs with line segments

Posted: Fri Sep 24, 2021 9:33 am
by andrew
I cannot reproduce this problem. Please attach your DXF file and the output file (e.g. .nc) and indicate which post processor you are using.

Re: Interpolate arcs with line segments

Posted: Sat Sep 25, 2021 2:47 pm
by JTI
Hello Andrew,
please find attached the following files:

circle.dxf - source file
Grbl_EASEL_MM.js - my modified postprocessor file (no line numbers)
LinInterpolationIsOff.nc - how the tool path should look like
LinInterpolationIsOn.nc - how the tool path looks if "interpolate arcs with lines" is switched on
CAM Config.jpg - screenshot of CAM Configuration.

Thanks for looking into this.

Re: Interpolate arcs with line segments

Posted: Mon Sep 27, 2021 9:53 am
by andrew
Thanks. I can confirm this is a bug.

As a workaround, you can add this to your post processor:

Code: Select all

Grbl_EASEL_MM.prototype.getArcInterpolation = function() {
    return Grbl.prototype.getArcInterpolation.call(this) && ((this.checkContext("CamOffset") && this.outputOffsetPath) || (!this.checkContext("CamOffset") && !this.outputOffsetPath));
};
This fix will also be included in the next QCAD/CAM release.

Re: Interpolate arcs with line segments

Posted: Mon Sep 27, 2021 6:49 pm
by JTI
Thank you Andrew.

Ich werde den work around heute ausprobieren.
Freut mich, dass ich helfen konnte.

Re: Interpolate arcs with line segments

Posted: Thu Sep 30, 2021 11:46 pm
by JTI
Hello Andrew,
the work around does not seam to work. The tool path looks the same as before.

Re: Interpolate arcs with line segments

Posted: Fri Oct 01, 2021 7:21 am
by andrew
Please attach your modified post processor file, thanks.

Re: Interpolate arcs with line segments

Posted: Fri Oct 01, 2021 7:57 pm
by JTI
Sorry I missed that.

Re: Interpolate arcs with line segments

Posted: Fri Oct 01, 2021 9:18 pm
by andrew
Please move the new function (Grbl_EASEL_MM.prototype.getArcInterpolation = function ...) to the end of the file, otherwise the line

Code: Select all

Grbl_EASEL_MM.prototype = new Grbl();
assigns a new prototype and deletes your function getArcInterpolation in the process.

Re: Interpolate arcs with line segments

Posted: Fri Oct 01, 2021 9:55 pm
by JTI
Thank you very much Andrew. This time it worked perfectly.