Legacy Export for Heidenhain TNC150

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.

prensel
Junior Member
Posts: 11
Joined: Thu Mar 21, 2024 5:57 pm

Re: Legacy Export for Heidenhain TNC150

Post by prensel » Sun Mar 24, 2024 8:49 am

Now my current Tnc150MM.js is working very good now (without toolcompensation) I would like to see if I can modify it using with toolcompensation.

Does QCAM use specific nc direction commands when selecting Side 'on' for the toolpath ?

Are these the ones to use (as declared in GCodeBase.js) ?

Code: Select all

 // tool compensation on:
    this.linearMoveCompensationLeft = [
        "[N] [F!]",
        "[N] G41 [X] [Y]"
    ];
    this.linearMoveCompensationRight = [
        "[N] [F!]",
        "[N] G42 [X] [Y]"
    ];

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

Re: Legacy Export for Heidenhain TNC150

Post by CVH » Mon Mar 25, 2024 7:07 am

Paul, because you added a question we can't filter on 'Unanswered'.
And it doesn't show up in new posts when already glanced at = read.
But I did recall that there was an additional question somewhere ... :wink:
prensel wrote:
Sun Mar 24, 2024 8:49 am
Are these the ones to use (as declared in GCodeBase.js) ?
Not really but yes, that is part of that.

One can mill 'On Shape' ... The cutter trajectory is the shape itself.
Or one can mill at the left or at the right of the shape ... The cutter trajectory is then an offset.

The offset can be QCAD generated (this.outputOffsetPath = true;)
Or it can be handled by the controller itself by G41/42 and then the above should be false.

Of course the side of offsets or when G41 or G42 is used also depends on the milling direction.
Milling 'On Shape' would be in mode G40 and without QCAD generated offsets.
That won't be reflected in the exported Cam entities and the text blocks that are being written.

As far as I can detect ...
Side is stored in CamSide
Direction is stored in CamDirection
One can query if the current toolpath has an offset path: this.hasOffsetPath();
That is true when this.getSide() does not equal to Cam.Side.None

Regards,
CVH

Post Reply

Return to “QCAD/CAM”