The Challenge

Can you break our G-code viewer?

UltraNC exists for one reason: true machining time. It plans the motion of every move against your machine’s limits instead of doing path ÷ feed. We think the parser is now hard to surprise. Prove us wrong.

The challenge

Throw real programs at the viewer and try to make it produce a wrong time, a wrong path, a crash, or, worst of all, a silently wrong simulation. Anything it can’t fully model is supposed to be named in the “Good to know” panel: a missing disclosure counts as a break too.

If you find one, post the file (or the offending snippet, your call what you share) on the feedback board. Confirmed breaks get fixed and credited in the changelog.

Rule one, as always: it’s a browser tool. Your file never leaves your machine, so paste anything.

Take the challenge →

Executed and on the clock

All of this is simulated with real motion and counted in the cycle time. If any of it draws wrong, times wrong, or falls over, that’s a win for you.

  • Motion: G00, G01, G02/G03 arcs (R and IJK formats, G17/G18/G19 planes, helical)
  • Canned cycles, fully expanded: G81, G82 (bottom dwell), G83 + G73 (pecks), G84/G74 rigid tapping (feed out + spindle reversal pause), G85/G86, G89 (dwell + feed retract), G80 cancel, G98/G99 retract planes, L repeats
  • Subprograms, expanded inline and nested: Fanuc M98 P/L including packed P (e.g. P51000), Haas M97 local N-blocks, LinuxCNC o-sub / o-call / o-return, M99
  • G04 dwell, read by dialect: integer P read as milliseconds for Fanuc/Haas-style files and as seconds for LinuxCNC/GRBL-style, X word, whole file dialect inference
  • Feed modes: G94, G95 (F×S from the modal spindle speed)
  • Exact stop & blending in the time model: G61/G61.1, G09 (per block), G64 P tolerance (raises corner speed by your tolerance)
  • G28/G30 reference return (via intermediate point, to a configurable home)
  • G90/G91, G20/G21, M02/M30 (nothing after program end runs except called subs)
  • M03/M04/M05 spindle (tracked for G95 and tapping), M06 tool change (configurable seconds, animated), S/F/T words
  • Units, modality, comments, line numbers and % wrappers read the way a real control reads them

The time model is yours to set

Machine dynamics you configure: rapid rate XY/Z, acceleration XY/Z, tool change seconds, G28 home position, and jerk. 0 gives trapezoidal profiles, nonzero gives full S-curve ramps plus a jerk corner limit. Corner speeds come from true path geometry (√(a·R), and ∛(J·R²) when jerk is on).

Declared out of scope, and disclosed per file

These aren’t fully modelled, and the viewer says so in the “Good to know” panel whenever they appear in your file. Finding one of these not being disclosed is a legitimate break.

  • Macro B (#variables, G65, WHILE/IF). Subprogram calls with [arguments] fall back safely
  • Cutter compensation G41/G42. The path is shown as programmed, not offset
  • G10/G52/G53/G92 offsets, and multiple work offsets (time is right, fixtures plot from one origin)
  • G76/G87/G88 fine & back-boring cycles
  • G33 threading · G5.x splines
  • G93 inverse-time feed (falls back to an assumed feed, with a warning)
  • G7 lathe diameter mode
  • M00/M01 operator wait time

House rules

  • Caps exist: nesting ≤10, 10,000 repeats, 200,000 expanded lines. Hitting a cap should produce a named warning and a safe fallback, never garbage. Cap weirdness also counts as a break.
  • Out-of-scope codes failing to simulate is not a break. Them appearing without a disclosure is.
  • Nothing is uploaded, ever. Share only what you choose to, on the feedback board.

Current record to beat

An 8,000-line sign job and a four-fixture M98 tombstone, both timed to the second. Bring your ugliest post-processor output.

Open the viewer and break it →