DEV Community

Cover image for Parametric CNC Router Table Insert Plates in TypeScript: Kreg/Rockler Rabbets, 10-Point Leveling & Tabbed G-Code
CutPath CAD
CutPath CAD

Posted on

Parametric CNC Router Table Insert Plates in TypeScript: Kreg/Rockler Rabbets, 10-Point Leveling & Tabbed G-Code

Milling a router lift rabbet into a freshly laminated 32" × 24" MDF or Baltic birch benchtop is one of the highest-stakes cuts in a woodshop. Confuse Rockler's 8.25" × 11.75" R0.375" plate spec with the universal Kreg/JessEm/Incra/Woodpeckers 9.25" × 11.75" R0.750" footprint, omit +0.015" (+0.38 mm) thermal slip clearance, or route Rockler's tight R9.525 mm corners with a 1/2" bit, and a $400 anodized aluminum router lift either locks solid or rattles mid-cut.

When we built CutPath CAD's free browser-native Parametric CNC Router Table Insert Plate, Lift Rabbet & T-Track DXF Generator, we realized naive single-rectangle DXFs fail real cabinet shops in three subtle CAD/CAM ways. Here is how we solved every one of them in pure TypeScript — zero cloud round-trips, strict 100/100 AutoCAD R12 (AC1009) DXF output, 1:1 physical millimeter SVG, and 3-Op multi-depth tabbed CNC G-code.

1. The Single-Layer Nesting Trap vs. Matched 2-Panel Lamination Architecture

A single 3/4" (19 mm) sheet of MDF or birch sags over time under a 12 lb 3.25 HP router motor. The shop-floor gold standard is laminating two 3/4" sheets into a dead-flat 1-1/2" (36–38.1 mm) slab — leaving 28.6 mm (1-1/8") of rigid support ledge below a 3/8" (9.525 mm) lift rabbet.

If you dump the outer benchtop perimeter, outer rabbet rectangle, inner through-cutout, AND 10 leveling counterbores onto one flat 2D DXF sheet:

  1. Strict CAM/nesting inspectors flag 11 concentric depth >= 2 floating islands inside the rabbet loop.
  2. You need an extra-long 2" reach endmill to profile-cut through a pre-glued 1-1/2" slab without collet collision.

Instead, buildRouterTableLayout() emits two matched, dowel-registered 3/4" panels cleanly side-by-side (dx = topWidthMm + 45 mm) where every single closed polyline sits at nesting depth <= 1 (100/100 · 0 open · 0 islands):

  • Panel A (Top 3/4" Layer / Flush-Trim Template A): Outer benchtop perimeter + Stepped Lift Plate Rabbet (Z = -9.525 mm) + Front 3/4" Miter Track Dado + Dual Parallel 1/4"-20 Fence T-Track Dadoes + 4× Ø1/4" (6.35 mm) corner registration dowel holes.
  • Panel B (Bottom 3/4" Core / Template B): Matching outer perimeter + Inner Motor Through-Opening + 10 Brass Leveling Screw / Corner Magnet Counterbores centered along the support lip + identical 4× Ø1/4" registration dowel holes.

Cut both panels from a single 4×8 sheet with a standard 1/4" spiral bit (1" CEL), drop four 1/4" hardwood dowels into the corners, glue flat under cauls (±0.05 mm alignment), and drop your anodized lift plate flush on the first try.

2. Automated 5-Rule Lift Fit, Cutter Radius & T-Track Collision DRC

Before writing a single DXF byte, evaluateRouterTableDrc() validates five mechanical shop-floor invariants in real time:

const toolR = c.toolDiaMm / 2;
const rabbetWidthMm = c.plateWidthMm + 2 * c.slipFitPerSideMm;
const rabbetDepthMm = c.plateDepthMm + 2 * c.slipFitPerSideMm;
const rabbetCornerRadiusMm = c.plateCornerRadiusMm + c.slipFitPerSideMm;

const plateFrontEdgeY = spindleCyMm - rabbetDepthMm / 2;
const miterRearEdgeY = miterTrackCenterYMm + c.miterTrackWidthMm / 2;
const miterToPlateBridgeMm = plateFrontEdgeY - miterRearEdgeY;

const fenceInnerEdgeX = c.fenceTrackCenterSpanMm / 2 - c.fenceTrackWidthMm / 2;
const fenceToPlateBridgeMm = fenceInnerEdgeX - rabbetWidthMm / 2;
Enter fullscreen mode Exit fullscreen mode
  1. Corner Radius & Cutter Clearance: Ensures toolDia / 2 <= plateCornerRadius - 0.5 mm so a 1/2" spiral bit never silently undercuts Rockler's R0.375" corners.
  2. Remaining Ledge Rigidity: Flags single 3/4" benchtops (remainingLedge < 14 mm) for motor-weight sag while approving 1-1/2" laminated tops (28.6 mm solid lip).
  3. Zero-Rattle Thermal Slip Fit: Targets +0.30 to +0.50 mm (+0.015") clearance per side so summer humidity never binds anodized plates.
  4. Miter Track & Fence T-Track Bridge Web Guard: Enforces >= 19 mm solid bridge between the front 3/4" miter track dado and plate rabbet, and >= 25 mm lateral clearance between the dual 1/4"-20 fence T-tracks and the lift plate edge.
  5. Leveling Insert Wall & 4×8 Sheet Yield: Places all 10 leveling brass insert / magnet pockets safely inside the 12.7–15.88 mm support ledge and computes 4×8 sheet utilization.

3. 3-Op Multi-Depth Tabbed CNC G-Code (buildRouterTableGcode)

For users who want toolpaths directly out of the browser (GRBL, Mach3, LinuxCNC, Masso, Onefinity, Shapeoko), the engine also emits a verified 1,300+ move 3-Op .NC program:

  • Op 1 (RABBET_POCKET): Concentric stepped ledge passes down to exact Z = -9.525 mm (-3/8") using a 1/4" downcut spiral bit for chip-free laminate edges.
  • Op 2 (T_TRACK_DADOES + LEVELING_POCKETS): Parallel miter & fence T-track dado clearing plus helical counterbores for all 10 leveling inserts.
  • Op 3 (THROUGH_CUTOUT + OUTER_BENCHTOP): Multi-pass full-depth cuts with 4 automatic 3.2 mm holding tabs on the final pass so the center waste drop never kicks back into the spinning cutter.

Every generated .NC file opens directly in our browser-native 3D G-Code Backplotter, and every matched 2-panel R12 DXF hands off directly to WB-04 4×8 Sheet Nesting via sessionStorage.

Try It Free (No Signup, Zero Watermarks)

Top comments (0)