Repository navigation
ClearNC v0.14.0 — Machine-Aware Tailstock & Shop-Floor Physics Safety Wave
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 (ProgrammableHydraulicM21/M22on Syntec/Fanuc/Haas,M78/M79on DN Solutions Lynx/Puma,M56/M55on Okuma LB3000;ProgrammableServoM25/M26+1.5spressure dwell on DMG MORI NLX Fanuc/Siemens;ManualOperatorguidedM00stops on Jyoti DX200 & Siemens 828D) with per-opmode: auto | manualoverrides. - All 4 Lathe Dialects + Guaranteed Spindle-Stop Sequencing: Implemented machine-aware tailstock emission, servo pressure dwells (
G04 U1.5ISO/Haas/Okuma,G04 F1.5Siemens), andoperator_stop/dwellacross ISO, Haas, Siemens, and Okuma. Every tailstock move unconditionally stops coolant (M09), indexes tosafe_index, and stops the spindle (M05) — verified independently byCNC-GC02(gcode_tailstock_spindle_running). - 5 Compile-Time Live-Center Interlocks: Enforces prior
center_drill/spot_drill(or explicitpre_centered: true/workholding.tailstock_pre_centered: true,CNC-L11), blocksface,bore_rough,bore_finish,part_off,id/facegroove, andidthreadwhile 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
handvalues (right|left|neutral,CNC-U00), out-of-rangeapproachangles (15deg..=165deg,CNC-U03), invalid ISO turninginsertdesignations (CNC-U00), and invalidmounting(inverted|upright-> automaticM03/M04spindle 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-handCNMG95° atZ=-15.00mmwith actionable fix hints). - Accurate
hand: left&hand: neutralNose-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, plusTurningToolEnveloperoughing trailing-edge clearance, while keepinghand: right100% 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 orsteady_rest: true), and flags insufficient chuckgrip_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 throughparallels_top_z. - 3-Axis Relieved Neck (
neck_dia) & Stepped Holder Clearance (CNC-M12): Allows relieved-neck cutters cleanly up toreach, warns on non-relieved shank rubbing pastflute_len, and blocks steppedholder_diacollisions 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.txtattached).
Live Links
- ClearNC Studio (Live Web IDE): https://primeformlabs.github.io/clearnc/studio.html
- Release Changelog: https://primeformlabs.github.io/clearnc/changelog.html#v0.14.0
- Interactive 9-Lesson Tutorial: https://primeformlabs.github.io/clearnc/tutorial.html