Digital fabrication · Part 34 of 36
CNC routing: CAD, CAM, feeds and G-code
Expert 22 min
From drawing to toolpath to G-code; chip load and feed rate, climb vs conventional milling, workholding and tabs.
What you will learn
- You can describe the CAD → CAM → G-code workflow.
- You can calculate a feed rate from chip load.
- You can choose toolpaths, tabs and workholding for a part.
The workflow
- CAD: you draw the part (2D outlines or a 3D model).
- CAM: you choose tools and operations — profile (cut around a shape, outside or inside the line), pocket (clear an area to a depth), drill, V-carve, 3D roughing and finishing — and the software computes toolpaths.
- Post-processor: converts toolpaths into G-code for your machine's controller.
- Machine: set the zero point (work coordinate), secure the material, run, watch.

G-code in a nutshell
G-code is a line-by-line instruction language (ISO 6983 / RS-274):
G21millimetres,G90absolute coordinates,G54work offset.G0 X10 Y10 Z5rapid move (not cutting!).G1 Z-3 F600cut down to 3 mm deep at 600 mm/min.G1 X100 F2400straight cut at 2400 mm/min.G2/G3clockwise/counter-clockwise arcs.M3 S18000spindle on at 18,000 rpm,M5off,M30end.
Read your file before running it — Kerfwise's G-code inspector visualises toolpaths and flags problems such as rapids through material.
Feeds and speeds: make chips, not dust
A router bit cuts properly when each cutting edge takes a chip of a certain thickness — the chip load (feed per tooth):
feed (mm/min) = rpm × number of flutes × chip load (mm)
Too low a feed for the rpm → the edge rubs, makes fine dust and heat, dulls quickly and can scorch or even ignite wood dust. Too high → the tool deflects or breaks. Manufacturers publish chip-load charts by material and tool diameter; for a 6 mm two-flute bit in plywood typical chip loads are around 0.2–0.3 mm. At 18,000 rpm that's roughly 7,000–11,000 mm/min — faster than most beginners dare. Depth per pass: often 0.5–1 × the tool diameter for wood with good machines, less for small or hobby machines. Use the lab to explore the numbers.
Try it: CNC feed rate lab
Pick material, cutter and spindle speed; see the chip load and feed rate a CNC router needs to cut chips instead of burning dust.
Turn on JavaScript to use this lab. Worked example:
A 6 mm two-flute cutter at 18,000 rpm in plywood with a chip load of about 0.26 mm feeds at about 9,450 mm/min. Halving the feed at the same rpm halves the chip load and makes dust and heat instead of chips.
Climb vs conventional
In conventional milling the cutter rotates against the feed direction; in climb milling with it. Climb gives a better finish on many materials and is standard on rigid CNC machines; on flexible hobby machines conventional cuts can be more predictable. Many jobs rough in one direction and finish with a light climb pass.
Holding the work
- Screws in waste areas, clamps, double-sided tape for small parts, or a vacuum table.
- Tabs: small bridges left on profile cuts so parts don't break free and get thrown at the end. Remove them with a chisel or flush-trim bit afterwards.
- Onion skin: leave a thin layer at the bottom and finish with a final light pass.
- A spoilboard under the work protects the machine table; surface it flat.
Key points
- CAD → CAM (operations and toolpaths) → post-processor → G-code → machine.
- Key G-codes: G0 rapid, G1 cut, G2/G3 arcs, F feed, S spindle speed, M3/M5 spindle on/off.
- Feed = rpm × flutes × chip load; too slow burns and dulls, too fast breaks tools.
- Tabs, onion skins, clamps or vacuum hold parts; a spoilboard protects the table.
- Never leave the machine unattended; air-cut new programs.
Flashcards
- Question: What does G0 do?
- Answer: A rapid, non-cutting move.
- Question: Feed rate formula?
- Answer: Feed = rpm × flutes × chip load.
- Question: What happens if the feed is too slow for the rpm?
- Answer: The bit rubs, overheats, dulls and makes dust — fire risk.
- Question: What are tabs?
- Answer: Small bridges that keep cut parts attached to the sheet until the end.
Check yourself
Think about your answer, then open it. In the app the quiz is interactive, earns points and brings back what you missed.
18,000 rpm, 2 flutes, chip load 0.25 mm. Feed rate?
Show the answer
9000 mm/min (± 1 mm/min)
18,000 × 2 × 0.25 = 9,000 mm/min.
Source: MIT OCW 2.008
Match the G-code with its meaning.
Show the answer
G0 = rapid move; G1 = linear cutting move; G2 = clockwise arc; M3 = spindle on clockwise
Standard RS-274 / ISO 6983 codes.
Source: LinuxCNC G-code documentation
Order the digital fabrication workflow.
Show the answer
CAD drawing → CAM toolpaths → Post-processor → G-code on the machine
Design, plan the cuts, translate for the controller, run.
Source: MIT How to Make (Almost) Anything
Your router leaves burnt edges and fine dust in plywood. Likely cause?
- Feed too slow for the spindle speed
- Feed too fast
- Too many tabs
- Wrong G21
Show the answer
Feed too slow for the spindle speed
A tiny chip load makes the edge rub instead of cut.
Source: MIT OCW 2.008
Why do you leave tabs on profile cuts?
- So parts don't break free and get thrown
- To save time
- To mark the zero point
- For decoration
Show the answer
So parts don't break free and get thrown
Loose parts can be caught by the cutter.
Source: LinuxCNC G-code documentation
Sources
- G-code overview, LinuxCNC documentation, 2024
- How to Make (Almost) Anything — MIT Center for Bits and Atoms course, Massachusetts Institute of Technology, 2024
- MIT OpenCourseWare 2.008 Design and Manufacturing II, Massachusetts Institute of Technology, 2025
Facts checked on 2026-11-30. Skillgrove lessons are free learning material — no certificate and no accreditation.