Skip to content

ClearNC v0.14.0 — Machine-Aware Tailstock & Shop-Floor Physics Safety Wave

Choose a tag to compare

@github-actions github-actions released this 01 Dec 11:46
· 7 commits to main since this release

Highlights

ClearNC v0.14.0 ships the Machine-Aware Tailstock & Shop-Floor Physics Safety Wave, adding OEM-accurate tailstock safety across all 12 lathe machines, full 2D turning insert-geometry & tool-hand physics (closing Issue #20, reported by @cher-dinesh), Euler–Bernoulli cantilever chatter/deflection checks, blind-hole tap bottoming protection against 118° drill point cones, and 3-axis relieved-neck / stepped holder clearance validation.

Machine-Aware Tailstock & Live-Center Safety (All 12 Lathe Profiles)

  • Declarative Machine Tailstock Profiles (TailstockMode): Populated factory-verified tailstock actuation specs across all 12 lathe machines (ProgrammableHydraulic M21/M22 on Syntec/Fanuc/Haas, M78/M79 on DN Solutions Lynx/Puma, M56/M55 on Okuma LB3000; ProgrammableServo M25/M26 + 1.5s pressure dwell on DMG MORI NLX Fanuc/Siemens; ManualOperator guided M00 stops on Jyoti DX200 & Siemens 828D) with per-op mode: auto | manual overrides.
  • All 4 Lathe Dialects + Guaranteed Spindle-Stop Sequencing: Implemented machine-aware tailstock emission, servo pressure dwells (G04 U1.5 ISO/Haas/Okuma, G04 F1.5 Siemens), and operator_stop / dwell across ISO, Haas, Siemens, and Okuma. Every tailstock move unconditionally stops coolant (M09), indexes to safe_index, and stops the spindle (M05) — verified independently by CNC-GC02 (gcode_tailstock_spindle_running).
  • 5 Compile-Time Live-Center Interlocks: Enforces prior center_drill/spot_drill (or explicit pre_centered: true / workholding.tailstock_pre_centered: true, CNC-L11), blocks face, bore_rough, bore_finish, part_off, id/face groove, and id thread while engaged (CNC-L03), and warns on double engage, inactive retract, or unretracted setup completion.
  • 15th Built-In Example: Added Slender Driven Shaft — Center Drill & Tailstock (examples/tailstock_shaft_lathe.cnc) verified across all 12 lathe controllers with 0 warnings, 0 crashes, and 0 gouges.

Turning Insert Geometry, Tool Hand & 2D Wedge Gouge Physics (Closes #20 — thank you @cher-dinesh!)

  • Strict ISO 1832 Insert, Hand, Approach & Mounting Validation: Rejects unknown hand values (right | left | neutral, CNC-U00), out-of-range approach angles (15deg..=165deg, CNC-U03), invalid ISO turning insert designations (CNC-U00), and invalid mounting (inverted | upright -> automatic M03/M04 spindle direction across all lathe & mill-turn dialects).
  • Compile-Time Insert Accessibility (CNC-L15): Validates every lathe and mill-turn turning/boring profile segment against the physical leading & trailing edge clearance angles and 2D insert/holder wedge envelope (catching Issue #20's square OD recess with right-hand CNMG 95° at Z=-15.00mm with actionable fix hints).
  • Accurate hand: left & hand: neutral Nose-Radius Compensation: Implemented corner-rolling Tip 4 (OD) / Tip 1 (ID) compensation for left-hand back-turning and Tip 8 (OD) / Tip 6 (ID) radial-only compensation for neutral-hand turning, plus TurningToolEnvelope roughing trailing-edge clearance, while keeping hand: right 100% byte-identical.
  • 2D Insert-Wedge & Holder Gouge Replay (CNC-GC06): Upgraded direct post-G-code & MotionPlan gouge verification on lathe and mill-turn to check the full 2D insert cutting/trailing wedge and holder envelope — catching Issue #20's square OD recess with accurate radial penetration depth and exact 1-based NC line numbers even if static validation is bypassed.

Shop-Floor Deflection, Chuck Grip, Tap Bottoming & Holder Clearance

  • Cantilever Chatter & Beam Deflection (CNC-L12) & Chuck Grip (CNC-L13): Evaluates Euler–Bernoulli radial push-off and live overhang L/D ratios on unsupported turning/grooving/threading cuts (cleared by tailstock or steady_rest: true), and flags insufficient chuck grip_len.
  • Blind-Hole Tap Bottoming (CNC-M11 / CNC-L14) & Drill Cone Breakthrough (CNC-M04): Checks cylindrical pilot depth accounting for the 118° drill point cone against tap depth + lead chamfer threads across 3-axis, 5-axis, lathe, and mill-turn, and warns when a drill point cone breaks through parallels_top_z.
  • 3-Axis Relieved Neck (neck_dia) & Stepped Holder Clearance (CNC-M12): Allows relieved-neck cutters cleanly up to reach, warns on non-relieved shank rubbing past flute_len, and blocks stepped holder_dia collisions in tight pockets/slots.

Verification

  • Rust Test Suite: 257/257 tests passing across 28 test binaries (0 failures, 0 compiler warnings).
  • Golden Controller Regression: 9/9 legacy controller hashes remain 100% byte-identical.
  • WebAssembly Studio & CLI Gate: 55/55 verified machines, 15/15 built-in examples, 0 errors, 0 crashes, 0 gouges (SHA256SUMS.txt attached).

Live Links