HACKER Q&A
📣 tbt43p

Book about understanding mathematics behind CNC


Can you suggest a book about the mathematics behind CNC toolpath generation by a computer? What algorithms are involved in outputting gcode starting with a CAD file as input? I always saw this as black magic, and I would like to read more about.

How is the sequence of work operations decided?


  👤 abe_m Accepted Answer ✓
The sequence of work operations is (as far as I've seen) always done by the "programmer", as in the person using CAM or text editor to write the g-code program the CNC machine executes.

I've looked around, and haven't come across much for books. There are a few open source attempts at path generation, and that's what I'd suggest for reference. FreeCAD's path workbench can generate a number of paths.

The other thing to look at is most (all?) pro-level CAM software write the tool paths to an intermediate format that is the "post-processed" into the final output format for a specific machine. The intermediate format is called APT. There isn't much on the web about it, but there is an open source project on sourceforge called aptos that has an implementation of APT.


👤 mardiyah
CNC Trade Secrets by James Harvey

CNC Programming Handbook by Peter Smid