Repository navigation
Releases
ClearNC v0.15.0 — Cutting-Load Safety, Tool Crib & Pluggable STEP Import (#23)
ClearNC v0.15.0 — Cutting-Load & Milling Clearance Safety + Local Tool Crib, Pluggable STEP WASM Import & Live STEP Match % (#23)
Highlights
1. Pluggable External STEP-to-ClearNC WASM Infrastructure & Live STEP Match % (Resolves #23)
- Zero-Bloat Pluggable STEP Provider Architecture: Drop or select
.step/.stp3D CAD files in ClearNC Studio to invoke a lazy-loaded, zero-import external WebAssembly STEP provider inside an isolated Web Worker (alloc,free,result_ptr,result_len,step_to_nc_eval). Supports HTTPS provider URLs (pre-wired tohttps://cdn.primeform.in/step-provider/v0.2.0/clearnc-step-provider.wasm), local.wasmdrop-in with optional IndexedDB caching, embedder API (<clearnc-studio step-provider-url>/studio.setStepProvider(...)), and a lightweight offline Mock provider. - Interactive 3D STEP Preview: Inspect uploaded
.step/.stpsolids directly inside the Import modal (orbit/zoom,Iso/Top/Front/Sidepresets, bounding dimensions, triangle count, and auto-detected machining process) before generating ClearNC code. - Default-Off STEP Overlay + Live STEP Match % & Deviation Heatmap: Studio always renders pure ClearNC machined output by default. When a STEP model is imported, Studio computes a live area-weighted STEP Match % (Matched %, Uncut Rest Stock %, Overcut/Gouge %, Op 2/Workholding Side %, and exact mismatch locations) and provides opt-in STEP Overlay (translucent original STEP CAD) and color-coded Green/Blue/Red STEP Diff heatmap toggles for both 3-axis milling and 3D lathe cutaway views.
- Local-First Tool Crib & Workholding Setup Manager: Full Mill Magazine & CNC Lathe Turret Tool Crib manager with curated metric starter toolkits, add/edit/duplicate/delete, search/filter, JSON export/import, Material/Stock/Workholding presets, and live decoupled
T/H/D(tool_offsets) compiler integration persisted locally in browser IndexedDB. - Third-Party Provider Documentation: Full ABI, linear-memory safety, and
v0.2.0cad_meshcontract documented indocs/step-provider-abi.md.
2. 3-Tier Turning & Milling Cutting-Load & Spindle-Power Safety
-
Tier 1 Hard Errors (
CNC-L16,CNC-M13): Blocks physically impossible cuts (e.g.3.0 mm/revon an R0.8 mm insert, radial DOC > 85% of ISO insert edge length, excessive parting/grooving plunge feeds, excessive drill feed-per-rev, milling chip-per-tooth > 25% of cutter diameter, and declared manufacturer tool-crib box limitsmax_doc/max_feed/max_fz/vc_min/vc_max). -
Tier 2 Shop-Floor Warnings (
CNC-L17,CNC-M14): Machine-specific spindle kW overload checks (comparing estimated cutting kW against each machine's rated spindle power across all 55 profiles), material-aware feed/speed overload, stainless/titanium work-hardening rubbing warnings, and theoretical turned surface roughness ($R_a > 6.3\ \mu\text{m}$ ). -
Tier 3 Shop Overrides: Supports
wiper: true,high_feed: true, and explicit manufacturer tool-crib box limits so high-productivity specialty tooling passes without false blocks.
3. Milling & 5-Axis Clearance Safety
- Chamfer Mill Cone Clearance (
CNC-M15): Validates bevel capacity, detects cone tip-to-floor/jaw collisions below the chamfered edge (floor_z,tip_offset,tip_dia), and detects upper-cone wall collisions inside tight internal contours. - 3-Axis Multi-Stage Stepped Tool-Holder Clearance (
CNC-M12): Checks multi-stageholder_stagesradially against deep pockets, narrow slots, inside profiles, and active strap clamps. - 5-Axis Tilted Work-Envelope Travel Limits (
CNC-5X06): Transforms workpiece + riser bounding envelopes through every tilted work plane(A, B, C)and verifies the resulting span fits inside the selected 5-axis machine's X/Y/Z travel envelope.
Verification
- 268/268 Rust tests passing (0 warnings, 9/9 legacy golden hashes unchanged)
- 55/55 verified CNC machines and 15/15 built-in examples verified in WebAssembly (0 errors, 0 crashes, 0 gouges)
- Automated Tool Crib, zero-import STEP WASM C-ABI fixture, and STEP-vs-Machined deviation analysis verification passing
- Live browser E2E verified against live
v0.2.0external STEP provider for both 3-axis milling and multi-feature CNC lathe parts
ClearNC v0.14.1 — Animated 2D/3D Tailstock Playback & Op 2 Flipped Carryover
Highlights
ClearNC v0.14.1 delivers major 2D/3D lathe and multi-setup milling simulation fidelity upgrades, closing Issue #21 and Issue #22 — thank you @cher-dinesh for the detailed shop-floor feedback and exact reproduction cases!
Step-by-Step Animated 2D & 3D Lathe Tailstock Playback (Closes #21 — thank you @cher-dinesh!)
- Frame-Accurate Tailstock Timeline Events: The lathe simulator now emits exact
tailstock_eventsand timeline segments (tailstock_engage/tailstock_retract) with resolved machine-specific OEM M-codes (M21/M22,M78/M79,M56/M55,M25/M26) orM00manual operator checkpoints, plus chuck grip & stick-out metadata. - Animated 2D Lathe Section & 3D Lathe Cutaway: Both the 2D Section and depth-buffered WebGL 3D Cutaway smoothly slide a realistic 60° live-center cone, bearing nose collar, graduated telescoping quill, and cast tailstock body in and out at the exact engage/retract frames — complete with spinning cues while engaged, chuck grip/stick-out callouts, and pulsing red collision highlighting.
- Playback HUD, Timeline Markers & Manual Auto-Pause Checklists: Live
TAILSTOCK:status pill (RETRACTED/APPROACHING/ENGAGED/MANUAL STOP (M00)/COLLISION), clickable engage/retract tick markers on the timeline scrubber, and automatic operator pause checklists for manual tailstocks (while programmable hydraulic/servo tailstocks play smoothly without interruption).
Op 1 -> Op 2 Flipped Feature Carryover in CAD Solid & Voxel: High (Closes #22 — thank you @cher-dinesh!)
- Op 2 CAD Solid Non-Circular Through Cuts (
inherited_through_pockets): Flipped Op 1 through-slots, rectangular cutouts, and polygon through-pockets now carry over cleanly into Op 2 CAD Solid — remaining capped beneath the unfaced carrier tab before facing, then punching all the way through top & bottom faces with crisp inward-facing walls once faced off. - Op 2 Voxel: High Carryover & Live Breakthrough Peeling (
breakthrough_z_b64): Upgraded Op 2 height grids and WebGL solid-height rendering so flipped Op 1 through-holes, through-slots, and trimmed outer-profile silhouettes open cleanly in real time as Op 2 faces away the carrier tab.
Verification
- Rust Test Suite: 261/261 tests passing across 29 test binaries (0 failures, 0 compiler warnings), including dedicated Issue #21 & #22 regression tests.
- 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.1
- Interactive 9-Lesson Tutorial: https://primeformlabs.github.io/clearnc/tutorial.html
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
ClearNC v0.13.0 — 5-Axis & Lathe Safety Hardening, CAM Geometry Upgrades & Datasheet Studio Redesign
ClearNC v0.13.0 — 5-Axis & Lathe Safety Hardening, CAM Geometry Upgrades & Datasheet Studio Redesign
Live Studio: https://primeformlabs.github.io/clearnc/studio.html
Interactive Tutorial (9 Lessons): https://primeformlabs.github.io/clearnc/tutorial.html
Changelog: https://primeformlabs.github.io/clearnc/changelog.html
A huge thank-you to @warun7 (PRs #9–#17) and @cher-dinesh (Issues #18 & #19) for the extraordinary engineering contributions, deep controller audits, and reproducible safety test cases that made this release possible!
Highlights
1. 5-Axis & Mill-Turn Post-Processor, Plane Math & Gouge Verification (PRs #11, #13, #17 · @warun7)
- Exact
G68.2Z-X-Z Euler Tilted Work Planes & SiemensCYCLE800_MODE 27: Fixed tilted work-plane Euler angle generation and verifier replay across Fanuc, Mitsubishi, Mazak INTEGREX, and Siemens 840D 5-axis & mill-turn machines. - Native Siemens 5-Axis Drilling & Tapping Cycles: Enabled native
CYCLE81/CYCLE83/CYCLE84across all 5 Siemens 5-axis machines (siemens_840d,dmg_mori_dmu50_siemens,dmg_mori_dmu65_monoblock,hermle_c250,hermle_c400) and rejected ISOG81/G83/G84leaks in the Siemens verifier. - Strict ASCII G-Code Comments: Stripped non-ASCII bytes across all 5-axis and mill-turn post-processors (including Okuma OSP-P500
okuma_mu5000v,okuma_multus_u3000, and Makinomakino_a51nx). - Direct Post-G-Code
CNC-GC06Gouge Replay for 5-Axis & Mill-Turn (PR #13): Extended finished-part G-code gouge verification to tilted 5-axis planes and mill-turn operations across all 55 controller-verified machines. - Mill-Turn Turning Parity (PR #11): Brought non-monotonic OD roughing (flanges/valleys/inner fillets), bore chamfers/fillets, and full ID grooving (
side: id/id_groovewithmin_boresafety) to mill-turn.
2. 3-Axis Milling CAM Geometry & Entry Upgrades (PRs #9, #10, #12, #14, #15 · @warun7)
- Exact Narrow-Gap Outside Profile Offsetting (PR #9): Handles C-clamp mouths, narrow notches, and acute corners without bow-tie loops or gouges.
- Exact
rest_pocket& Polygon/Slot Islands (PR #10): Supports concave polygon and tilted slot islands, multi-island mutual clipping, and island-clipped horizontal raster clearing. - Analytical Bulged-Polygon Arc Offsetting (PR #15): Preserves true
G02/G03concentric and tangent vertex arcs on(x, y, bulge)contours with safe tessellated multi-lobe fallback. - Helical & Ramp Entries (PRs #12, #14): Honors bare and parameterized
entry: helixandentry: rampacrosspocket,rest_pocket,slot, andlevel_roughwith wall-clearance radius clamping.
3. Complete Safety & Correct-G-Code Hardening (Closes #18 — 22/22 Verified Fixed · @cher-dinesh)
- 5-Axis Rigid Tapping (
Bug #1): Fixed hardcodedM29 S600fallback across all 15 5-axis controllers soM29 SandG84/CYCLE84feed always match programmed RPM, backed by new verifier checks. - Lathe & Mill-Turn Feed-Mode Switching (
Bug #2): ModalG98/G99(ISO/Haas/Mazak) andG94/G95(Siemens/Okuma) switching whenevermm/minfeed is programmed, verified bygcode_feed_mode_mismatch. - Real 3D
level_rough&surface_finishToolpaths (Bug #3): Replaced the single-diagonal stub with multi-Z-level bidirectional raster clearing and fine finishing passes. - Tap Surface Speed (
m/min) Consistency (Bug #4): Resolvedm/mintap speeds to RPM once and synchronized spindle,M29, andG84/CYCLE84feed across all dialects. - Complete Lathe Operation Feature Support (
Bugs #17, #18): Implemented real cutting moves forcorner_break(chamfer/fillet), grooveedge_chamfer, part-offback_chamfer, threadinfeed: flank_29deg/radial/alternating, and face grooving (side: face). - Strict Units, Geometry, Tool-Type & Crash Guards (
Bugs #5–#16, #19–#22): Rejected unitless speeds/limits (CNC-U01), zero/negative speeds & feeds (CNC-U03), negative stock allowances (CNC-U04), unknown contour/island/points references,face_millvise jaw collisions (CNC-M06/CNC-SIM02), mismatched thread/bore/bar geometries, wrong tool types for operations, omitted required fields, empty-cut operations, unknown keys, duplicate tool declarations, and non-positive clamp crash inputs (with Studio stale-G-code clearing on WASM traps).
4. Block-Stock Slot CAD Solid Rendering (Closes #19 · @cher-dinesh)
- Emits progressive per-pass obround capsule
pocketCAD subtraction events for X-aligned, Y-aligned, diagonal, and contour-definedslotcuts on block stock (keepingflat_cuton cylindrical stock), with coordinate-hashedcontourSignaturein the 3D CAD viewer so multiple slots render cleanly side-by-side.
5. Engineering Datasheet Landing Page, 9-Lesson Tutorial & Studio Polish (PRs #16, #17 · @warun7)
- Reconciled the upgraded datasheet landing page (with live interactive 3D hero part), dedicated 9-lesson
tutorial.html, refreshed 8 Studio screenshots, cross-flavorCtrl+Zundo (keepHistory), andTab+Entermachine picker selection while preserving 100% of v0.12.0's 55 verified machines (17 OEMs, 9 dialects) and Local-First Browser Workspace IDE.
Verification Summary
cargo test --all-targets: 225/225 passed across 25 targets (0 failures, 0 warnings)- Golden controller regression: 9/9 verified (3/3 unaffected 3-axis controllers byte-identical; 6/6 updated controllers audited line-by-line)
- WebAssembly Engine
v0.13.0(3.27 MB): 55/55 machines, 14/14 examples, 13/13 JS files, 22/22 Issue #18 cases verified fixed, Issue #19 exact repro verified passing (0 errors, 0 crashes, 0 gouges)
ClearNC v0.12.0 — 55 Verified CNC Machines (Okuma OSP, Brother Speedio, 4-Axis HMC), All-Flavor Drill Depth Safety & Local-First Studio IDE
Highlights
55 Controller-Verified CNC Machines Across 17 Global OEMs & 9 Native Dialects (Wave 2)
- Expanded ClearNC's declarative 4-Layer Machine Catalog from 42 → 55 verified machines (
25 mill_3axis · 15 mill_5axis · 12 lathe · 3 mill_turn) across 17 global OEMs and 9 native controller dialects — every machine compiled, simulated, and independently verified with 0 errors, 0 crashes, and 0 gouges, while all 9 legacy golden controllers remain 100% byte-for-byte locked. - Okuma OSP-P300 / P500 (
.min) Across All 4 Flavors:okuma_genos_m560v(3-axis VMC),okuma_mu5000v(5-axis A/C trunnion),okuma_lb3000_ex2(2-axis lathe), andokuma_multus_u3000(multi-tasking B/C mill-turn).- Native
.minoutput with$...MIN%headers,G15 Hwork offsets,G56 H/G53tool length comp,G30 P1safe home,G131/G130Super-NURBS,G71 Z..+G284synchronized tapping,CALL OO883D tilted planes,G169/G1705-axis TCP, 6-digitTttxxoolathe offsets,G71compound threading,G140/G141twin-spindle switching, andM02program end — paired with full independentCNC-GC01..GC06verification (including blocking millM51coolant on OSP-L lathes).
- Brother Speedio CNC-D00 (
brother_speedio_s700xd1):- High-speed BT30 machining center (
700 × 450 × 300 mm, 50/50/56 m/min rapids) with nativeG77/G78I-pitch rigid tapping (strictly forbiddingFwords andM29),M298/M299High-Accuracy smoothing, andM06 T..ATC.
- High-speed BT30 machining center (
- Makino
a51nx4-Axis HMC (hmc_4axis_b) & 7 Regional Variants:- Added
makino_a51nx(360° DD B-axis pallet table, 60 m/min rapids) plus Siemens SINUMERIK 828D/840D and Mitsubishi M80 variants for BFW BMV 45+/60+, Jyoti PX 20 & DX 200, LMW JV 55, DMG MORI NLX 2500|700, and Ace Micromatic MCV-450.
- Added
All-Flavor Twist Drill max_depth & Tool reach Safety Hardening
- Fixed
reachshadowingmax_depthinmill_3axis(CNC-M05) andmill_5axis(CNC-5X03) somax_depthis always enforced independently even when a longerreachis declared. - Added recessed-pocket immersion checks (
z_top < 0) so drilling or milling from a pocket floor checks both local cut depth againstmax_depth/flute_lenand total immersion belowZ=0againstreach(catching tool-holder interference). - Extended full
max_depth,reach,flute_len, and boring-barmax_reachvalidation tolathe(CNC-L08) andmill_turn(CNC-MT06/CNC-L04, covering both centerline and live-tool angled drilling/milling).
Full Local-First ClearNC Studio IDE & 100% Browser-Local Privacy
- Workspace Sidebar ("My Programs" & "Built-in Examples"): Collapsible left rail backed by IndexedDB with automatic
localStoragefallback storing strictly.cncsource + lightweight per-file settings (never stale compiled.nc/.mpf/.min), plus+ Newtemplates,.cncimport & drag-and-drop, JSON workspace Backup/Restore, optional Chrome/Edge Local Folder Sync, and 1-click Fork to My Programs from any built-in example. - Multi-File Tabs & IDE Shortcuts: Open multiple
.cnctabs with preserved per-file controller/machine/pickup/batching settings and cursor/scroll state, plus inline Find & Replace (Ctrl+F/Ctrl+H), Go to Line (Ctrl+G), Toggle Comment (Ctrl+/), Auto-Format (Shift+Alt+F), and Diagnostic Navigation (F8/Shift+F8). - Opt-In Failed-Program Review Submission & G-Code Export Safety Guard: Programs stay 100% local in your browser by default. When errors, crashes (
CNC-SIM*), or gouges (CNC-GC06) occur, an explicit opt-in Submit for Review modal builds a structured Markdown report (with editable/redactable.cncsource) for a pre-filled GitHub Issue or.mddownload. Exporting compiled.nc/.mpf/.minwhile errors, crashes, or gouges are active triggers a safety warning modal before download. - Studio Picker & Native Downloads: Added Okuma and Brother dialect filter pills,
.min/.mpf/.ncnative export extensions,4-Axis HMC (B 0..360°)spec chip, and Okuma/Brother NC syntax highlighting.
Live Studio & Changelog
- ClearNC Studio: https://primeformlabs.github.io/clearnc/studio.html
- Release Changelog: https://primeformlabs.github.io/clearnc/changelog.html
- Verification Summary: 156/156 Rust & safety tests passing (0 warnings), 9/9 legacy golden hashes locked, 55/55 WASM machines & 14/14 Studio examples verified (0 errors, 0 crashes, 0 gouges).
ClearNC v0.11.0 — 42 Controller-Verified CNC Machines (15 OEMs, 7 Dialects) & Studio 40+ Picker
Highlights
42 Controller-Verified CNC Machines Across 15 Global OEMs & 7 Native Controller Dialects
- Expanded ClearNC's declarative 4-Layer Machine Catalog from 18 → 42 verified machines (
17 mill_3axis · 14 mill_5axis · 9 lathe · 2 mill_turn) across 15 global OEMs: Ace Micromatic, BFW, DMG MORI, DN Solutions, FANUC, Haas, Hermle, Jyoti CNC, LMW, Makino, Matsuura, Mazak, Mitsubishi Electric, Siemens, and Syntec. - Every single built-in machine is compiled, simulated, and independently verified through ClearNC's paired post-G-code verifier and Finished-Part Gouge Verifier (
CNC-GC06) with 0 errors, 0 crashes, and 0 gouges, while all 9 legacy golden controllers remain 100% byte-for-byte locked.
Native Haas NGC 5-Axis (DWO / TCPC) & Turning Support
- Haas NGC 5-Axis (
haas_umc750,haas_umc500): Full B/C trunnion (trunnion_bc) kinematics with nativeG254/G255Dynamic Work Offset (work-plane origins baked cleanly into DWO coordinates — strictly forbidding nestedG52),G234 H..Tool Center Point Control (mutually exclusive withG254), dual B/C rotary brake discipline (M10–M13),G187smoothing,M88/M89TSC spindle-stop interlocks,G53 G00 Z0.safe home, and direct synchronousG84rigid tapping. - Haas NGC Turning (
haas_st20,haas_st25): Native single-lineG74 Z.. K<mm> F..peck drilling (explicitly branched away from Fanuc 2-lineG74 R../Q),G50/G96/G97CSS control,M88/M89HPC spindle interlocks,G53turret retracts, and verifier guards blocking mill-onlyG187. - Haas 3-Axis (
haas_vf4ss): Added alongsidehaas_vf2sswith consistentM88/M89TSC interlock tracking.
Native Siemens SINUMERIK 828D / 840D sl / ONE (.mpf) for 3-Axis Milling & Turning
- Siemens 3-Axis Milling (
siemens_828d_mill,dmg_mori_cmx600v_siemens): Authentic.mpfoutput with%_N_..._MPFheaders, semicolon;comments,G71metric,SUPA G00 Z0. D0safe retracts,T.. M6 D1tool edge activation,CYCLE832high-speed smoothing, and native groupedMCALL CYCLE81/CYCLE83/CYCLE84+MCALLcancellation. - Siemens Turning (
siemens_828d_lathe): Authentic.mpfturning withG18 G40 G90 G71 G95 DIAMON,T.. D1,G96 S.. M3 LIMS=..CSS clamps,CR=circular arcs,G33synchronized threading,MCALL CYCLE84centerline tapping, andSUPAturret safe retract. - 5-Axis European & Japanese Flagships: Added
dmg_mori_dmu65_monoblock,hermle_c250,hermle_c400,matsuura_mx520(with automatic asymmetric A-axis rotary remapping),dn_solutions_dvf5000(2nd Gen B/C trunnion), andmakino_d200z(30,000 RPM B/C trunnion).
Syntec 21MA VMC & India / Asia Job-Shop Flagships
- Added dedicated
SyntecMilldialect (syntec_21ma_vmc) withG05.1 Q1/G05 P10000HSHP look-ahead verification and strict standaloneM29+G84rigid tapping guards. - Added verified job-shop flagship profiles: BFW BMV 45+ & BMV 60+, Jyoti PX 20 & DX 200, Ace Micromatic MCV-450, LMW JV 55, DMG MORI CMX 600 V & NLX 2500|700, and DN Solutions PUMA 2600 II.
ClearNC Studio 40+ Machine Picker UX & Dialect Highlighting
- Redesigned the searchable OEM-grouped Machine Picker for 40–60+ machines with dynamic controller dialect filter pills, a live 4-flavor catalog preview strip, sticky OEM group headers, work-envelope / rotary-limit / ATC spec chips, and full
ArrowUp/ArrowDown/Enter/Escapekeyboard navigation. - Added native controller file extensions on NC download (
Download .mpffor Siemens SINUMERIK,Download .ncfor ISO/Haas/FANUC/Mitsubishi/Mazak/Syntec). - Upgraded Studio's NC syntax highlighter for Siemens SINUMERIK (
;,CYCLE81–CYCLE952,MCALL,SUPA,DIAMON,LIMS=,CR=,D1) and Haas 5-axis (G234,G254,G255,G187,M88,M89) across dark and light themes.
Direct-NC Gouge Verification (CNC-GC06) & L-Bracket CAD-vs-Voxel Parity
- Upgraded
CNC-GC06direct G-code replay to verify Siemens.mpf(DIAMON/DIAMOF,CR=arcs,SUPA,MCALL/CYCLE*,G33), Haas NGC (G53, 1-lineG74,G234/G254/G255), and Syntec 21MA with zero false positives and deterministic gouge catching. - Fixed the L-Bracket Complex Geometry CAD-vs-Voxel 1:1 visual parity so finished-part solid rendering and voxel stock removal match cleanly.
Live Studio & Changelog
- ClearNC Studio: https://primeformlabs.github.io/clearnc/studio.html
- Release Changelog: https://primeformlabs.github.io/clearnc/changelog.html
- Verification Summary: 114/114 Rust & safety tests passing (0 warnings), 9/9 legacy golden hashes locked, 42/42 WASM machines & 14/14 Studio examples verified (0 errors, 0 crashes, 0 gouges).
ClearNC v0.10.1 — Finished-Part Gouge Verifier (CNC-GC06), Studio 3D Markers & Exact Concave Polygon Toolpaths
Highlights
Finished-Part Gouge Verifier (\CNC-GC06)
- Independently verifies both planned toolpaths and directly replayed G-code against declared pocket walls, islands/bosses, pocket floors, inside/outside profiles, lathe OD profiles (including insert nose geometry), and stepped internal bores across 3-axis, 5-axis, lathe, and mill-turn.
- Reports exact G-code line numbers, gouge depth (mm), and 3D coordinates, and blocks verification whenever any part gouge exceeds 0.025 mm.
ClearNC Studio 3D Gouge Markers & Diagnostics
- Passing programs now confirm 0 crashes · 0 gouges in the verification banner.
- Detected part gouges turn status and viewport indicators red, drop a pulsing magenta 3D diamond gouge marker right on the part, and provide one-click Inspect NC navigation directly to the highlighted G-code block.
Exact Concave, Sharp-Corner & Tight-Island Polygon Toolpaths (Community PRs #5, #6, #7 & #8 by @warun7)
- PR #5: Clips island roughing loops cleanly against nearby pocket walls.
- PR #6: Uses full inward miters and smooth outward rolling arcs around sharp acute polygon corners.
- PR #7: Preserves reflex (inside) polygon corners cleanly without centroid-collapse distortion.
- PR #8: Computes exact wall-safe insets for concave and narrow-necked polygons (L-shapes, spikes, U-shapes, dumbbells), clears split lobes inner-to-outer, verifies floor links against walls, and places helical entries in the widest open space.
Real Gouge Bugs Caught & Fixed by \CNC-GC06\
- Lathe OD roughing: Now honors corner chamfers and fillets on OD profiles (eliminating a 0.60 mm shoulder-chamfer gouge).
- Tight-clearance pocket bosses: Outer pocket wall loops now clip analytically around bosses positioned closer than a cutter diameter from the pocket wall.
New Studio Example & Automated Open-Source CI/CD
- Added L-Bracket Complex Geometry (VMC) (14 built-in Studio examples, all verified with 0 errors, 0 crashes, and 0 gouges).
- Automated GitHub Actions PR quality gates, build-from-source GitHub Pages deployment, and cross-platform CLI + WebAssembly release binaries.
Live Studio & Docs
- ClearNC Studio: https://primeformlabs.github.io/clearnc/studio.html
- L-Bracket Complex Example: https://primeformlabs.github.io/clearnc/studio.html?example=l_bracket_complex_mill3
- Changelog: https://primeformlabs.github.io/clearnc/changelog.html
ClearNC v0.10.0 — 4-Layer Machine Architecture (18 Machines), OEM Machine Picker & PR #3/#4
ClearNC v0.10.0
Ships ClearNC's 4-Layer Composable Machine Architecture (expanding from 9 to 18 verified CNC machines across 9 OEMs with zero regression to existing controllers), upgrades Studio with a searchable OEM-grouped Machine Picker + Certification Badges, and merges PR #3 & PR #4 by @warun7.
What's New in v0.10.0
- 4-Layer Composable Machine Architecture: Unified declarative machine registry separating built-in kinematic archetypes, 6 first-class controller dialects with paired independent post-G-code verifiers, declarative machine profiles, and transparent Certification Tiers (Spec-Verified, Controller-Verified, Shop-Floor Proven).
- 9 New Verified Commercial CNC Machines (18 Total Across 9 OEMs):
- 3-Axis Milling: Haas VF-2SS (native G187 smoothing, M88 TSC, direct G84 rigid tap), FANUC ROBODRILL D21LiB5 (24,000 RPM, G05.1 Q1), DN Solutions DNM 5700, and Makino F5 (20,000 RPM).
- 5-Axis Milling: DMG MORI DMU 50 3rd Gen (SINUMERIK CYCLE800 / TRAORI), Makino D500 5-Axis, and Mazak VARIAXIS i-600 (SmoothX EIA).
- 2-Axis Lathe: DN Solutions Lynx 2100.
- Multi-Tasking Mill-Turn: Mazak INTEGREX i-300S (SmoothX EIA).
- Searchable OEM-Grouped Machine Picker in Studio: Filter by OEM, model, controller, or G-code options with live Certification Badges, spindle RPM, taper, and native machine features in both Dark and Light themes.
- Block-Stock X/Y Datum Safety (PR #3 by @warun7): Blocks unsupported edge/jaw X/Y datums on centered block stock at compile time (CNC-M15) instead of silently shifting cuts.
- Stepped-Bore Roughing (PR #4 by @warun7 + Edge-Case Hardening): Stops each roughing boring pass cleanly where a stepped internal bore narrows, with added hardening for front-face pilot lead-ins and reversed sub-spindle entry clearance.
Verification
- 64 / 64 automated unit and integration tests passing (
ClearNC v0.9.0 — Lathe ID Grooving, Op 2 Bore Carryover, Non-Monotonic OD Roughing & SemVer Releases
ClearNC v0.9.0
Introduces official Semantic Versioning (�0.9.0) across the ClearNC compiler, ClearNC Studio, Changelog, and GitHub Releases, and merges PR #2 with four production lathe & contour kernel improvements verified against a 30-part real-world STEP corpus.
What's New in v0.9.0
- True Internal (ID) Grooving: Internal grooves now enter axially inside the pre-existing bore throat, peck radially outward to final groove diameter, accurately remove internal bore material in simulation, and enforce minimum bore, bar reach, and radial groove depth limits.
- Op 2 Flipped-Setup Bore Carryover: Multi-setup turned parts carry through-drilled and bored internal profiles across a 180° Op 1 → Op 2 part flip (prioritizing exact part-off length when present), while continuing to block un-drilled solid bars, blind Op 1 holes, and undersized pilot bores.
- Non-Monotonic OD Flange-Valley Roughing & Axis-Separated Safe Rapids: Complex flanged shafts and multi-valley valve spools compute exact critical-Z cutting intervals, snap depth-of-cut passes to intermediate flange plateaus, preserve axial finish stock on rising shoulders, and use strictly axis-separated safe rapids instead of diagonal cross-flange moves (preserving PR #1 insert nose-radius finishing intact).
- Closed 2-Vertex Bulged Polygon Contours: Full circular and arc-pair contours represented by two bulged vertices now validate cleanly while un-bulged 2-point degenerate polygons remain rejected.
- Semantic Release Tracking (�0.9.0): Standardized SemVer tracking across package version, Git tags, GitHub Releases, Studio header badge, Changelog timeline (�0.1.0–�0.9.0), and version-locked web asset cache busting.
Verification
- 57 / 57 automated unit and integration tests passing (