bug in grbl-proc peck drilling. PR9006

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
freman
Veteran
Posts: 2200
Joined: Tue Nov 27, 2018 10:30 pm

bug in grbl-proc peck drilling. PR9006

Post by freman »

Why has peck drilling started doing something other retracting to retract height?

Code: Select all

G0 X-12.000 Y-10.001
G0 Z60.000
(G83 X-12.000 Y-10.001 Z16.000 F120.000 Q3.750 R54.000)
G0 X-12.000 Y-10.001
G1 Z56.250 F120.00
G0 Z60.000
G0 Z56.438
G1 Z52.500 F120.00
G0 Z60.000
G0 Z52.688
G1 Z48.750 F120.00
G0 Z60.000
G0 Z48.938
Here's the job before the post processor. G98 specifies that the tool moves back to the initial plane after finishing a canned cycle operation. Not in between each peck.

Code: Select all

(5mmDrilling135)
(Begin Drilling)
G0 F0.000000 Z90.409167
G90
G98
G0 F0.000000 X-12.000000 Y-10.001000
G0 F0.000000 Z60.000000
G83 F2.000000 Q3.750000 R54.000000 X-12.000000 Y-10.001000 Z16.000000
G0 F0.000000 X-174.000000 Y-10.001000
G0 F0.000000 Z60.000000
G83 F2.000000 Q3.750000 R54.000000 X-174.000000 Y-10.001000 Z16.000000
G80
G0 F0.000000 Z78.409167
G0 Z90.409167
In the job 60mm is safety height. The G83 clearly is set to R54 , why is this NOT being used? This used to work fine.
http://www.solaire-chauffe-eau.info/cnc ... pecker.mp4

In this clip , see the retract height is just out of the work then, right at the end, it moves to higher Z to go to next hole.
Last edited by freman on Thu Mar 23, 2023 8:08 am, edited 5 times in total.
User avatar
freman
Veteran
Posts: 2200
Joined: Tue Nov 27, 2018 10:30 pm

Re: regression in grbl-proc peck drilling.

Post by freman »

This line does not seem correct. G98 is not about replacing retract height inside peck movements. It is about whether the tool returns to the plane it was at before the drilling op, once it is finished.

Code: Select all

    if DRILL_RETRACT_MODE == "G98" and CURRENT_Z >= RETRACT_Z:
        RETRACT_Z = CURRENT_Z
User avatar
freman
Veteran
Posts: 2200
Joined: Tue Nov 27, 2018 10:30 pm

Re: regression in grbl-proc peck drilling.

Post by freman »

Post Reply