Skip to content

Harvie/cnc-simulator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightweight 3-Axis CNC G-Code Simulator

Screenshot Suzanne

Origins

This simulator was part of JSCut discontinued CAM package which was developed since 2014 by Todd Fleming.

During 2024-09 it was isolated and modified to be useful in offline/standalone context by Tomas Mudrunka.

Similar project used to be available since 2016-05 at www.cncwebtools.com/Apps/GCode_Simulator/index.html but features were limited and the website is defunct since 2020-08.

Features

  • Load g-code from file
  • Pass settings and G-Code via URL
  • Support for arcs (G02, G03, XY plane only, IJ reccomended, R experimental)
  • Animation
  • Works offline (no webserver needed, copy at archive.org wayback machine also works)
  • V-Carving
  • Visualize origin point
  • Show current coordinates
  • Mouse wheel zooming
  • Non-square viewport supported
  • Limited number of dependencies (jQuery and Bootstrap are no longer needed)

TODO

  • Make everything work at mobile devices (responsive and touch)
  • Shaded milling bit
  • weird V-Bit behaviour when Surface Z > 0 (perhaps we should just transpose Z when parsing g-code, and fix origin crosshair...)
  • 3D view translating?
  • Support for mm/inch (bit settings and G21, G20)
  • Support for ball nose and radiused milling bits
  • Tool library and toolchanges (eg. T1 M6)

See also