Correction of drill speed calculation for grbl_G1 of 18.3

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
Jantek
Posts: 1
Joined: Tue Oct 01, 2019 10:25 am

Correction of drill speed calculation for grbl_G1 of 18.3

Post by Jantek »

This is a discussion for my PR for the calculation of the drill speed. See link to PR

In my case the patch changed the original output:

Code: Select all

(G81 X165.000 Y56.000 Z-3.000 F600.00 R10.000)
G0 Z10.000
G0 X165.000 Y56.000
G1 Z-3.000 F10.00 ;F is in mm/s -> wrong
G0 Z10.000
to the patched output:

Code: Select all

(G81 X165.000 Y56.000 Z-3.000 F600.00 R10.000)
G0 Z10.000
G0 X165.000 Y56.000
G1 Z-3.000 F600.00 ;F is in mm/min -> correct
G0 Z10.000
The problem with the original code is that it is producing a mixed gcode with mm/s and mm/min. With the patch there is only mm/min anymore.
Post Reply