← Engineering tools

G-Code Viewer

Preview only — 2D XY, absolute (G90) G0/G1/G2/G3 with I/J arcs. Not a machine-verification tool; unsupported words are ignored.

Toolpath

Cut moves
4
Rapid moves
1
Max RPM
6,000
Max feed
45

Syntax View

1 G90 G17 G20
2 T1 M6
3 S6000 M3
4 G0 X0 Y0 Z0.1
5 G1 Z-0.125 F20
6 G1 X2.000 Y0.000 F45
7 G1 X2.000 Y1.250
8 G1 X0.000 Y1.250
9 G1 X0.000 Y0.000
10 G0 Z0.25
11 M30

About this tool

Explains common Fanuc-style G and M codes in a pasted program and previews the toolpath.

Inputs
  • A G-code program (Fanuc / Haas dialect)
Assumptions
  • Modal G-code behavior per typical Fanuc controls
  • Absolute (G90) positioning unless the program says otherwise
  • Preview ignores tool geometry, offsets, and canned cycles
Sources
  • Fanuc and Haas programming manuals
Valid range
  • Standard 3-axis milling programs using G0/G1/G2/G3 and common M-codes.
Limitations
  • Does not simulate macro variables, subprograms, or probing
  • Not a verification tool — never run a program based on this preview alone
  • Control-specific codes may be labelled differently or omitted

Values are starting points for planning — verify against your tooling and machine documentation before cutting. Report an issue with this tool →