[solved] Interpolate arcs with line segments
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Indicate the post processor used.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Indicate the post processor used.
Attach drawing files and screenshots.
Post one question per topic.
[solved] Interpolate arcs with line segments
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
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
Last edited by JTI on Fri Oct 01, 2021 10:54 pm, edited 3 times in total.
Re: Interpolate arcs with line segments
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
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.
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.
- Attachments
-
- CAM Config.JPG (141.3 KiB) Viewed 9315 times
-
- LinInterpolationIsOn.nc
- (6.88 KiB) Downloaded 360 times
-
- LinInterpolationIsOff.nc
- (152 Bytes) Downloaded 362 times
-
- Grbl_EASEL_MM.js
- (1.17 KiB) Downloaded 379 times
-
- Circle.dxf
- (117.03 KiB) Downloaded 364 times
Re: Interpolate arcs with line segments
Thanks. I can confirm this is a bug.
As a workaround, you can add this to your post processor:
This fix will also be included in the next QCAD/CAM release.
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));
};
Re: Interpolate arcs with line segments
Thank you Andrew.
Ich werde den work around heute ausprobieren.
Freut mich, dass ich helfen konnte.
Ich werde den work around heute ausprobieren.
Freut mich, dass ich helfen konnte.
Re: Interpolate arcs with line segments
Hello Andrew,
the work around does not seam to work. The tool path looks the same as before.
the work around does not seam to work. The tool path looks the same as before.
Re: Interpolate arcs with line segments
Please attach your modified post processor file, thanks.
Re: Interpolate arcs with line segments
Sorry I missed that.
- Attachments
-
- Grbl_EASEL_MM.js
- (1.41 KiB) Downloaded 375 times
Re: Interpolate arcs with line segments
Please move the new function (Grbl_EASEL_MM.prototype.getArcInterpolation = function ...) to the end of the file, otherwise the line
assigns a new prototype and deletes your function getArcInterpolation in the process.
Code: Select all
Grbl_EASEL_MM.prototype = new Grbl();
- Attachments
-
- Grbl_EASEL_MM.js
- (1.41 KiB) Downloaded 443 times
Re: Interpolate arcs with line segments
Thank you very much Andrew. This time it worked perfectly.