3D simulation
WebGL 2 displays stock, tool, paths and remaining material. The ViewCube, orthographic views, orbit and layers help inspect each operation.
Balzano Consulting / Online CNC simulator
A CNC lab in the browser: assisted editing, 3D stock simulation, machine controls and diagnostics brought together in one workspace.

The project
CNCLab interprets G-code and connects each block to tool motion, remaining stock and machine state. Its operating view combines volumetric simulation, a synchronized editor, timeline, block stepping and a MEM/MDI/JOG/EDIT panel.
Release 0.32.0 adds independent, reorderable D radius offsets, reassignable G54–G59 work origins, a reorderable T magazine and a complete dimensioned tool preview. It also improves remaining-stock validation, T-slot cutter geometry and configurable 3D legend panels.
Milling, turning, laser and plotter environments are joined by a 2D/3D CAD application in development. Programs, tools, setup and preferences stay in the browser; the .cnclab project format transfers a complete session between installations.
The simulator is free and requires no account. It is intended for training, practice and preliminary checks: it is not a certified verifier and does not replace checks on the real post-processor, controller and machine.
Features / Release 0.32.0
WebGL 2 displays stock, tool, paths and remaining material. The ViewCube, orthographic views, orbit and layers help inspect each operation.
Syntax highlighting, line numbers, contextual suggestions, quick reference cards, Undo/Redo and an active block synchronized with the timeline.
3-axis milling and 2-axis turning with stock removal, tool changes, classified surfaces and educational diagnostics; laser and plotter use dedicated XY paths.
A technical catalogue, reorderable T magazine, independent D offsets, G54–G59 origins, custom tools, materials and configurable stock.
Protection stops linked to the responsible line, restorable messages and a G/M-code manual with syntax, diagrams and commented examples.
NC, G-code, TAP and TXT imports; complete .cnclab projects; STL, OBJ or PLY component exports and an installable PWA with an offline shell.
Inside the application
These images come from the current CNCLab release and show the workspace, editor, simulation, diagnostics and support tools available in the application.

The path changes state during execution while the tool, stock, remaining material and orientation stay readable in one scene.



Syntax colours, the current line, validation and suggestions make the program easier to read and correct.

The catalogue and machine magazine separate tool choice, T position and geometry for the active tool.

A blocking error stops the cycle, explains the cause and takes the user straight to the G-code block that needs correction.

NC program, plain text, complete project and 3D component exports are gathered into an explicit file workflow.

Search, filters, support status, syntax and a geometric diagram accompany every documented function.
Architecture
Turns source code into interface-independent states and motion.
Compute envelopes, stock removal, surfaces and remaining profiles.
Composes machine, tool, part and paths in WebGL, with Canvas fallback.
Responsible use
CNCLab uses geometric and educational models with stated tolerances. It does not include a certified B-Rep engine, full offset tables for every controller, macros or complete collision analysis. Production programs must always be checked on the real controller and machine by qualified personnel.