G-code safety check
Paste or open a milling or lathe program. The check reads it line by line and lists the problems that crash machines or scrap parts, each with the line number, and draws the toolpath so you can see where the tool goes. Macro programs (#variables, IF, WHILE) are run first, so the check sees the moves they make.
What it does
- Rapids below work zero
- Cutting and drilling with no feed rate or the spindle off
- A tool change with no G43 H length offset, or an H that does not match the tool
- Cutter compensation problems (no D, starting on an arc, still on at a tool change or at the end)
- Arcs that cannot reach their end point, unit and G90/G91 mix-ups, code after M30
- Lathes: G96 with no G50 spindle limit, threading under G96, feed per rev that looks per minute, T0300 with no offset, G70/G71 pointing at missing lines
- A backplot of rapids and cutting moves (top and front for mills, side view for lathes)
How to use it
- Open the tool and choose Example, or paste your program (or open the .nc file)
- Choose Check the program
- Work through the findings by line number, then look at the backplot
Example
Every finding names its line and says what to check; a clean program says which checks it passed, not that it is safe.
Good to know
- Calls to other programs (M98, G65) and machine variables (#1000 and up) are listed, not followed
- Codes it does not check are listed, not silently passed
- It is a check, not a full machine simulation: prove out new programs as usual
Your data
This tool runs entirely in your browser. What you paste is not uploaded or saved on our server. Free during the beta, no card needed. Results are developer-tested, not independently validated. Privacy · How we check our maths