Cutter

G-code for a 3D printer converted into a wood CNC. Pick a pattern, set your bit, preview the toolpath, download.

How to run it
groove travel above stock X0 Y0 (front-left corner)
0:00
Show G-code

      

How to run it

  1. Clamp the stock flat to the bed. Measure it and enter its width (X, left to right) and depth (Y, front to back) under Stock and size.
  2. Home the printer (from its menu or G28), then raise Z well clear of the stock.
  3. Set the origin. Jog the bit over the stock's front-left corner and lower it until the tip just touches the top surface (a sheet of paper should drag). The program's G92 X0 Y0 Z0 makes that spot zero, so do not move the machine after this.
  4. Do an air cut first. Tick Dry run under Machine and run the file. The bit traces the whole job 1 mm above the wood, so you can check it stays on the stock.
  5. Cut. Untick Dry run, download again and start the print. With Manual spindle control the printer pauses (M0) so you can switch the router on, then resume from the printer's screen. Without a screen, send M108 from your host software to continue.

Starting numbers for wood

BitPass depthFeedPlunge
V-bit 30 to 60 deg, engraving0.3 to 0.5 mm300 to 600 mm/min50 to 100 mm/min
Flat end mill 3.175 mm, softwood0.5 mm300 to 500 mm/min50 mm/min
Flat end mill 3.175 mm, hardwood / MDF0.3 mm200 to 400 mm/min40 mm/min

Notes for printer conversions

  • M211 S0 turns off Marlin's software endstops so Z may go below the surface you zeroed. It is turned back on at the end.
  • Printer Z axes use lead screws and are slow. Keep Z travel around 300 mm/min unless you know yours is faster.
  • The frame flexes. Shallow passes cut cleaner than deep ones, and a slower feed beats a skipped step.
  • Wear eye protection, keep a hand near the power switch, and never leave a running router alone.