Page 1 of 1

Posting in degrees

Posted: Tue Apr 04, 2023 4:19 pm
by n_spect_r
Running Linux Mint 20, Qcad/Cam 3.27.8
We would like to make a post that will output distance and degrees, vs traditional X-Y coordinates. I note that in the bottom window, this information is shown. Currently we are programming a lathe with live tooling using this display, it would be easier If I could write some post to do it for me. Attached pics. The dimensions I refer to is directly above the OBS box in the tray.

Thanks

Re: Posting in degrees

Posted: Tue Apr 11, 2023 8:09 pm
by CVH
n_spect_r,

QCAD/CAM export can indeed be fully customized.
As example it can export in DXF, HP-GL or HTML (structure) ... Aside several G-code dialects.

I understand a relative polar notation for G0 and G1.
What with I&J for G2/3 instructions?
What with motions in Z?

You could register two extra variables for pLength and pAngle.
The name RADIUS (arcRadius) is bespoken.

Then I would source the polar notation from this.currentEntity in the writeEntity based function.
Once these values are set it is a question of formatting the outputs of:
  • rapid moves
    linear moves
    circular moves
    tool compensations
    ....
Also refer to:
https://www.qcad.org/rsforum/viewtopic. ... 429#p28790

Regards,
CVH