Page 1 of 1

CAM tools improvement suggestion

Posted: Sun Jan 02, 2022 12:20 pm
by K0nrad
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"


Re: CAM tools improvement suggestion

Posted: Sun Jan 02, 2022 4:36 pm
by CVH

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:


Re: CAM tools improvement suggestion

Posted: Mon Jan 03, 2022 8:01 pm
by K0nrad
I didn't know that. Thank you very much for explanation and help.
Best Regards