CNC Simulation Software | G-Code Verification and Collision Check

NTB SpecPro special-process quality control software logo NTBSpecProSPECIAL PROCESS SOLUTIONS
Sign in Get started

Home › Machining › CNC simulation

Machining · CNC simulation

CNC simulation: see your G-code in 3D before it reaches the machine.

Write a program from your drawing or open your own G-code: watch material removal in 3D, and see crashes, operator errors such as a missing tool length offset, and machine limits with line numbers. Runs in the browser, nothing to install.

  • Fanuc · Haas · Sinumerik · Heidenhain
  • Milling and turning
  • 3D player
  • Crash check
  • Estimated temperature and deflection
NTB SpecPro CAM workspace: G-code, 3D material removal simulation and player
NTB SpecPro CAM workspace: a milling program is played in 3D. The screen is explained below.

Screen by screen

Get to know CNC simulation up close

The images below are taken from the application itself (Turkish interface). The numbers mark parts of the screen; the explanations are below each image.

1. From drawing to program, from program to 3D simulation

A milling program written from a sample plate drawing is being played. Every part of the workspace is on one screen.

NTB SpecPro CAM workspace: a milling program played in 3D, part settings on the left, G-code on the right
  • 1Write program from drawing: choose a DXF or STEP drawing; a draft 2.5-axis milling or turning program is written.
  • 2Step bar: part, material, machine, fixturing, tools, operations, simulation, warnings and download. The next step is shown below it.
  • 33D view: material removal, tool path and tool trace. Rotate, zoom and measure with Measure; preset views (isometric, front, top…) in one click.
  • 4Info box: operation name, tool, spindle speed (S), feed (F), coordinates, line number and estimated part temperature.
  • 5Estimated time: elapsed, total and remaining time.
  • 6G-code: the line being played is highlighted. The program can be edited and downloaded, and a setup sheet can be produced.
  • 7Player: play, pause, step back / forward and speed. The bar below shows which operation (contour, pocket, hole) you are in.
  • 8Warning strip: the program is a draft; it is not sent to the machine without checking.

2. Open your own turning program

A turning program written by hand or in another program (G71 roughing, G70 finishing, G76 threading cycle) is opened and simulated.

Simulation of your own turning program: stepped and threaded shaft with G71, G70 and G76 cycles
  • 1Simulate my own G-code: you open your program with this button.
  • 2Paste the G-code or choose a file.
  • 3Turned part in 3D: roughing, finishing and threading are shown removing material.
  • 4Cycles are expanded: G71, G70, G72, G76, drilling cycles, subprograms and macros. The line being played is highlighted.
  • 5Stock: stock diameter and tube bore (solid bar or tube).

3. See the crash on the screen, not on the machine

In this program a rapid move (G0) enters the material. The simulation finds the line and shows a red warning.

Crash warning: a rapid move enters the material, line 14 shown with a red warning
  • 1Crash warning: states which move crashes, on which line.
  • 2The line is highlighted in the G-code list.
  • 3The number on the Result tab shows the warnings found.
  • 4The stock description in the program (SIM STOCK) is read; the stock is set up automatically.

4. A last check before download

When the program is downloaded, a first-part warning appears and asks for confirmation. If a crash was found in the simulation, it is also shown in this window.

Program download window: crash warning, first-part warnings and confirmation box; operator error check on the left
  • 1A crash found in the simulation is shown as a red line in the download window.
  • 2Operator error check: warnings such as G43 H missing, a coordinate without a decimal point or no work offset (G54…G59) selected, with line numbers.
  • 3Confirmation box: the program cannot be downloaded until the box is ticked.
  • 4Download program: enabled after confirmation; warning lines are added to the top of the downloaded file.

5. Estimated part temperature

While material is removed, the estimated part temperature is calculated cell by cell and shown on a colour map.

Estimated part temperature map and temperature scale
  • 1Temperature scale: current and highest estimated temperature so far in the program.
  • 2Temperature map: turns the estimated temperature distribution of the part on or off.
  • 3Material and coolant selection (e.g. C45 quenched and tempered steel, flood coolant).
  • 4The info box shows the estimated current and highest part temperature.

6. Tolerance: possible effect of deflection and heating on dimensions

The Tolerance tab reads the program and compares estimated heating and tool deflection with the tolerance on the drawing.

Tolerance tab: program read summary, estimated heating and finishing cut values
  • 1The program is taken from the workspace, or another G-code is pasted.
  • 2Read program: cutting moves, estimated time and tools are extracted.
  • 3Summary: number of cutting moves, estimated time, last tool and finishing moves.
  • 4Estimated heating and finishing cut values; Calculate shows the possible effect of tool deflection on the dimension.

7. Drawing dimensions and tolerances

Dimensions are taken automatically from the dimension lines in the DXF; they can be read from a drawing or added by hand.

Dimensions tab: general tolerance selection, manual dimension entry and reading from a drawing
  • 1General tolerance for dimensions without a tolerance (ISO 2768).
  • 2Add dimensions by hand (e.g. Ø20 h7, 60 ±0.01).
  • 3Read a technical drawing from a PDF or photo (1 ntb = 10 TL + VAT, 12 TL incl. VAT); dimensions are matched to the drawing and you confirm them.

What can you do?

From drawing to program, from G-code check to the first part

A faulty program means a scrapped part, a broken tool or a crash on the machine. CNC simulation runs the program on screen first and shows the lines that may cause problems before they reach the machine.

Write a program from your drawing

A draft 2.5-axis milling (contour, pocket, hole, tapping, chamfer) and turning (OD, ID, groove, thread) program is written from a DXF or STEP drawing.

Simulate your own G-code

Paste a program written by hand or in another CAM program, or choose a file. Turning cycles (G71, G70, G72, G76), drilling cycles, subprograms and macros, and G41/G42 compensation are expanded.

3D material removal player

The program is played line by line: play, pause, fast-forward, set the speed. Tool path, tool trace, active line, tool, spindle speed, feed and estimated remaining time on screen.

Crash check

A rapid move entering the material; collisions of the tool shank, tool holder, vise jaw, table, lathe chuck and boring bar. If found: a red warning in the scene and a red line in the download window.

Operator error check

G43 H missing, spindle off, no F, G54 not selected, G28 in absolute mode, no G50 before G96, coordinate transformations, coordinates without a decimal point: all with line numbers.

Tool matching

The tool description in the program is read; the tool is chosen from your My Tools library or entered by hand.

Estimated time, temperature and deflection

Estimated machining time, a cell-by-cell map of estimated part temperature and estimated tool deflection.

Measurement and tolerance

Measure the part in the simulation from the tool path itself; compare it with the dimensions and tolerances on the drawing and see in advance the possible effect of tool deflection and part heating on the dimension.

Comparison with a STEP / IGES model

Load the 3D model of the part for a milling program: overcut and remaining material are shown on a colour map.

Machine limits

Axis travels, maximum spindle speed and maximum feed are entered; moves beyond these limits are listed as warnings.

Feed (F) optimisation

In a milling program, places where the feed could be increased without exceeding the program's own heaviest cut are suggested. The finishing pass is not changed.

First-part warning

Before the program is downloaded, a first-part warning with a confirmation box appears; warning lines are added to the top of the downloaded file.

How does it work?

CNC program check in four steps

The simulation does not decide; it runs your program on screen and shows the places that need attention.

1

Machine and stock

Choose the machine type, control and material; enter the stock size.

2

Program

Paste the G-code or choose a file; or prepare the program from a DXF or STEP file.

3

Simulation

Watch material removal in the 3D player; review the warnings line by line.

4

Check and download

Compare with the STEP model if needed, correct the program and download it in the format for your control.

The program is a draft; it is not sent to the machine without checking. The work offset, tool lengths, fixturing and rapid moves must be verified on the machine, and the first run must be done in single block at low speed. The simulation does not cover every situation on the machine.

Machining module

Simulation, measurement and records in one place

CNC simulation is part of the Machining module, at no extra charge. The same module also includes technical drawings, measurement report comparison, first article inspection and shop-floor calculations.

  • Runs on a computer, in the browser (not in the phone app)
  • 7-day free trial when you create an account
  • Included in the Machining module, no extra charge

Frequently asked questions

Which controls' G-code can CNC simulation read?

It reads Fanuc, Haas, Siemens Sinumerik (milling and turning) and Heidenhain (milling) programs. Just set the control selection to the matching control when opening the program.

Can I simulate G-code written by hand or in another CAM program?

Yes. With "Simulate my own G-code" you paste the program or choose it as a file; it is played in 3D with the stock and machine you choose. Turning cycles (G71, G70, G72, G76), drilling cycles, subprograms and macros, and G41/G42 compensation are expanded; warnings are listed with line numbers.

How does it show crashes?

A rapid move (G0) entering the material, and collisions of the tool shank, tool holder, vise jaw, table, lathe chuck and boring bar are checked. If found, a red warning appears in the scene and a red line is shown when the program is downloaded. The work offset, tool lengths and fixturing must be verified on the machine.

Which operator errors does it flag?

A missing tool length offset (G43 H), spindle off, no feed (F), no work offset (G54…G59) selected, G28 in absolute mode, no G50 speed limit before G96 in turning, coordinate transformations and coordinates without a decimal point are shown with line numbers.

Can I compare the program with the 3D model of the part?

For milling programs, yes. You load a STEP or IGES model; overcut and remaining material are shown on a colour map. This comparison is not yet available for turning.

Do 4- and 5-axis programs work?

Not yet. CNC simulation works for 2.5-axis milling and turning (OD, ID, groove, thread).

Does it work on a phone?

No. CNC simulation runs on a computer, in the browser (web app); nothing to install. This screen is not in the phone app.

What does it cost?

CNC simulation is included in the Machining module at no extra charge. You can try it free for 7 days when you create an account. If you want a technical drawing read by AI, this is deducted from your NTB balance (1 drawing = 1 ntb; 1 ntb = 10 TL + VAT, 12 TL incl. VAT).

See your program before the machine doesPaste your G-code, play the simulation, review the warnings.