CAM tools improvement suggestion

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
User avatar
K0nrad
Active Member
Posts: 44
Joined: Sun Jan 02, 2022 11:59 am
Location: Poland

CAM tools improvement suggestion

Post by K0nrad » Sun Jan 02, 2022 12:20 pm

Hi,
I started to use CAM module in QCAD. My CNC machine is controlled by grbl software therefore I declare grbl (offset) [mm] postprocessor.
I found that CAM configuration does not allow for much control of the generated g-code. I found that many g-codes are not necessary for rgbl controller.
Moreover, numbering of the lines causes that the code can not be simulated in CAMotics software.
I would like to ask to add the following options in the "CAM configuration" dialog:

- "do not number lines of code"
- "Do not use G80 at the beginning of the code"
- "Do not use G49 at the beginning of the code"

Best
Konrad

CVH
Premier Member
Posts: 3364
Joined: Wed Sep 27, 2017 4:17 pm

Re: CAM tools improvement suggestion

Post by CVH » Sun Jan 02, 2022 4:36 pm

Konrad,

You could configure a custom grbl postprocessor ...
What is extra in the "CAM configuration" dialog is also configured in a postprocessor. :wink:


In a copy of GrblMM.js e.g. GrblMM-noLN.js
G80 and G49 can be cleared from this.header = [...]

Line numbers can be cleared by removing the [N] placeholders.
But you are not out of the woods if you only do that in your custom post.
All because GrblMM.js is based on Grbl.js and that is based on GCodeBase.js
One should never edit the build in posts directly :!:
These are overwritten by installing a new release ... :wink:

Instead have a look at LaserGrbl.js
Including this in your custom post would render line numbers to an empty string:

Code: Select all

    // disable line numbers:
    this.empty = "";
    this.registerVariable("empty", "N", true, "", 0);
Ensure that you adapt the display name too. :wink:

Regards,
CVH

User avatar
K0nrad
Active Member
Posts: 44
Joined: Sun Jan 02, 2022 11:59 am
Location: Poland

Re: CAM tools improvement suggestion

Post by K0nrad » Mon Jan 03, 2022 8:01 pm

I didn't know that. Thank you very much for explanation and help.
Best Regards
Konrad

Post Reply

Return to “QCAD Suggestions and Feedback”