Posting in degrees

Discussions around the CAM Add-On of QCAD.

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.

Post Reply
n_spect_r
Active Member
Posts: 44
Joined: Tue Jun 18, 2019 12:09 pm

Posting in degrees

Post by n_spect_r » Tue Apr 04, 2023 4:19 pm

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
Attachments
Qcad_degrees_2.png
Qcad_degrees_2.png (451.99 KiB) Viewed 8062 times
Qcad_degrees_1.png
Qcad_degrees_1.png (464.01 KiB) Viewed 8062 times

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

Re: Posting in degrees

Post by CVH » Tue Apr 11, 2023 8:09 pm

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

Post Reply

Return to “QCAD/CAM”