Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 4 min read

Engineering a 1-Sheet Tab-and-Slot CNC Plasma Welding Cart in TypeScript: MaxRects & CG Physics

Retail MIG/TIG welding carts are notorious for thin 18-gauge folded sheet metal that wobbles as soon as you strap a 140 lb 125 CF Argon cylinder to the rear deckβ€”yet commercial heavy-duty carts run $419 to $800+. If you

Retail MIG/TIG welding carts are notorious for thin 18-gauge folded sheet metal that wobbles as soon as you strap a 140 lb 125 CF Argon cylinder to the rear deckβ€”yet commercial heavy-duty carts run $419 to $800+. If you own a 4Γ—8 CNC plasma table (Langmuir CrossFire Pro/XR, Arclight, Torchmate, or DIY gantry), a single sheet of 11-gauge mild steel (0.120" / 3.04 mm) costs roughly $132 and turns into a rock-solid, self-squaring tab-and-slot welding cart in 16 minutes of cut time.

The hard part is CAD geometry. Change your welder width by 1 inch, swap from 11ga to 14ga steel, switch from a single 125 CF tank to dual 9.25" Argon + back-purge tanks, or change from Harbor Freight 4" casters to 5" industrial 4"Γ—4.5" bolt platesβ€”and you'd normally have to redraw 11 interlocking plates and 30+ mortise slots by hand.

We just shipped our 51st free browser-native CAD/CAM utilityβ€”CutPath CAD Welding Cart DXF & G-Code Generatorβ€”written in pure zero-dependency TypeScript. Below is how the geometry kernel, sub-flush plug-weld tab solver, center-of-gravity tip-over physics, and 2D MaxRects 4Γ—8 sheet packer work under the hood.

1. Sub-Flush Plug-Weld Tab-and-Slot Math (Auto-Gauge Across 16ga to 3/16")

In CNC plasma tab-and-slot fabrication, two dimensions determine whether your 11 plates drop together by hand or need an hour with a die grinder:

  1. Mortise Slot Width: Because plasma kerf introduces a slight 3–5Β° bevel on 11ga–3/16" mild steel, cutting slots to exact nominal plate thickness causes binding. We compute:
    • slotWidth = plateThicknessMm + slotClearanceMm (default +0.35 mm slip-fit -> 3.39 mm slot for 11ga 3.04 mm plate).
  2. Sub-Flush Tab Protrusion: Flush tabs leave no weld puddle pocket, forcing you to grind proud welds flat before powder coating. Recessing each tab 0.45 mm below the outer skin (tabProtrusion = max(1.0, plateThicknessMm - 0.45), i.e. 2.59 mm on 11ga) creates an automatic MIG/TIG plug-weld trench that locks the chassis square with minimal grinding.

Every shelf (Bottom Deck, Mid Helmet Shelf, 10Β°-Tilted Top Welder Deck, Upper/Lower Bottle Cradles, Front Structural Apron, and Rear Push Handle) uses a shared parametric tab-pitch layout along its left/right edges, while both Structural Side Frames read the exact same coordinates to punch matching mortise slotsβ€”including trig-rotated slots for the ergonomic tilted top deck (cos(theta) / sin(theta) transform so the welder display faces the operator without binding!).

// Tilted mortise slot projected onto the left & right side frames
function buildTiltedRectSlot(
  cx: number,
  cy: number,
  lengthMm: number,
  widthMm: number,
  angleRad: number
): Pt[] {
  const c = Math.cos(angleRad);
  const s = Math.sin(angleRad);
  const hl = lengthMm / 2;
  const hw = widthMm / 2;
  const corners: [number, number][] = [
    [-hl, -hw],
    [hl, -hw],
    [hl, hw],
    [-hl, hw]
  ];
  return corners.map(([lx, ly]) => ({
    x: cx + lx * c - ly * s,
    y: cy + lx * s + ly * c
  }));
}

2. True 2D MaxRects Guillotine Nesting β€” Fitting All 11 Plates on ONE 4Γ—8 Sheet

Our initial row-shelf prototype needed 1.4 sheets for a standard 210A MIG cart because the two tall L-shaped Side Frames (34.5" Γ— 30.9") left unused rectangular cavities above their stepped rear bottle decks. Switching to a 2D Maximal-Rectangles (MaxRects BSSF) packer with 90Β° rotation testing packs every single one of the 11 plates (2Γ— Side Frame, Bottom Deck, Mid Shelf, Tilted Top Deck, 2Γ— Bottle Cradle, Front Apron, Push Handle, 2Γ— 5-Canister TIG Rod Rack) onto one single 48" Γ— 96" steel sheet at 60.93% net steel yield with an 8 mm thermal skeleton gap to prevent heat warpage:

Preset Configuration Plate Gauge Plates 4Γ—8 Sheets Net Yield Steel Weight Plasma Pierces Est. Cut Time
210A MIG Cart (Miller 215 / Lincoln 210 MP) 11ga (3.04mm) 11 1 Sheet 60.93% 95.3 lb 84 16.5 min
Budget Garage MIG (Titanium / Handler 140) 14ga (1.90mm) 9 1 Sheet 50.54% 49.4 lb 72 10.4 min
Plasma Cutter + Air Dryer Cart 11ga (3.04mm) 9 1 Sheet 56.02% 87.6 lb 75 14.0 min
Under-Bench Low-Profile TIG (16ga) 16ga (1.52mm) 11 1 Sheet 49.59% 38.8 lb 80 9.2 min
Dual-Bottle Pro TIG Cart (2Γ— Ø9.25") 11ga (3.04mm) 11 2 Sheets 38.76% 121.3 lb 85 17.2 min
Heavy Shop 3/16" 255A Rig (300 CF) 3/16" (4.76mm) 11 2 Sheets 41.00% 200.8 lb 84 24.9 min

And when you want to cut a shop batch of 3–5 carts across multiple sheets with kerf spacing and printable Shop Travelers, one click passes all 8 unique DXF templates (with exact quantities) straight into CutPath WB-04 Sheet Nesting.

3. Live Center-of-Gravity (CG) Tip-Over Physics & 5-Rule Plasma DRC

Nothing ruins a welding cart faster than wheeling across a concrete expansion joint and watching a 140 lb Argon bottle tip the cart backward onto its regulator. Because our generator knows exact steel plate density (0.00785 g/mmΒ³), welder mass (lb), and full-cylinder mass by bottle diameter (80 CF = 60 lb, 125/150 CF = 140 lb, 250/300 CF = 165 lb), it computes the combined 2D center of gravity (cgX, cgY) in real time:

  • Rear-Axle Stability Margin: Horizontal distance from the combined CG forward of the rear caster axle (default 210A MIG cart: 12.47" forward margin, 29.46Β° static tip angle).
  • 4-Caster Load Rating: Total loaded mass (250.3 lb) vs selected 4-caster hardware rating (1,200 lb for 4" shop casters -> 21% utilization).
  • Plasma 1.5Γ— Minimum Hole-to-Plate Rule: Verifies that caster bolt holes and keychain tie-down bores exceed 1.5Γ— steel thickness (Ø9.53 mm on 11ga = 3.1Γ—, clean vertical plasma pierce with minimal taper).
  • Closed-Contour & Zero-Island Verification: Runs our inspectDxfRaw verifier on every generated file to confirm 100/100 CAM readiness Β· 0 open contours Β· 0 floating islands in strict AutoCAD R12 (AC1009) format (LINE + closed POLYLINE, zero splines or LWPOLYLINE entities that choke older SheetCam / FireControl imports).

4. Interior-First Plasma .TAP G-Code + 3D Backplotter Handoff

Every exported .TAP program automatically sorts cut loops per plate so every mortise slot, caster bolt hole, keyhole chain tie-down, and vent cutout fires before the outer plate silhouetteβ€”preventing thin drops from tipping into the torch head. You can inspect all 84 M3 plasma pierces in 3D before walking out to the shop via the one-click handoff to our Free Online G-Code Viewer.

Try It Free (No Signup, Runs 100% Client-Side)

If you're building a custom cart for a Miller Multimatic, PrimeWeld TIG225X, or Hypertherm plasma cutterβ€”let us know what additional caster bolt patterns or bottle accessories you'd like to see in the preset bar!

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.