Guides ·

TAP file viewer: how to open a .tap file

A file ending in .tap is usually a CNC program: plain-text G-code for a router or mill, often one controlled by Mach3. The same extension is also used for tape images of old home computers such as the ZX Spectrum. This post shows how to tell which one you have, how to read the G-code, and how to see what the machine will cut, on a program that engraves a smiley and cuts out a disc held by four tabs.

Drop your .tap file on the free unmake TAP file viewer to see the toolpath, the depth, the tabs and the run time before you press start.Try it on your own file
The smiley sign program with tabs in the unmake TAP file viewer, Front view: three rings 1 mm apart, the bottom one stepping up over four tabs; part size 63 × 63 mm measured at the bit's centre, deepest cut 3 mm, estimated time 59.4 s
smiley-sign-tabs.tap in the TAP file viewer, seen from the front: the last ring steps up over four tabs. File: made by unmake.

Which .tap file do you have?

Open it in a plain text editor such as Notepad or TextEdit. If you see short lines like G0 X10 Y20 or G1 Z-1 F300, it is a CNC program, and the rest of this post is for you.

If you see mostly unreadable symbols, it is probably a tape image for an old home computer such as the ZX Spectrum or Commodore 64, meant for an emulator. A G-code viewer cannot open those.

What is inside a CNC .tap file

G-code is a list of instructions, one per line, each a letter followed by a number. G21 sets millimetres (G20 sets inches). G90 means every position is measured from program zero. X, Y and Z are positions; F is the feed rate, how fast the bit moves, in mm per minute here.

G0 is a rapid move, G1 a straight cutting move at the feed rate, and G2 or G3 an arc, clockwise or anticlockwise, with I and J giving the arc's centre measured from its start. In Mach3 that matches the IJ mode set to Incremental; in the other mode the same line draws the circle round the wrong centre. S sets the spindle speed in rpm, M3 starts the spindle, M5 stops it, M30 ends the program, and anything in parentheses ( ) is a comment.

Rapid moves, passes and tabs

Rapid moves (G0) travel as fast as the machine can, through the air, at a safe height. Cutting moves (G1, G2, G3) run at the programmed feed rate with the bit in the material. Deep cuts are split into passes: cut 1 mm, step down, go round again.

On the last pass, a cut-out would come loose while the bit is still spinning beside it. Tabs prevent that: short spots where the last pass lifts and leaves a thin bridge holding the part, which you cut or sand off afterwards.

The cut-out unrolled: plunges at one spot, three rings 1 mm deeper each, and the last ring stepping over four tabs
The disc's outline unrolled into a straight line: three rings at F800, the last one lifting to Z-2 over each tab.

Seeing the toolpath in the browser

The unmake TAP file viewer draws the program in any browser, phones included. Drop the file and the toolpath appears in one colour per tool; a flat job like this opens seen from above, with Top, Front and 3D buttons on the view. Front shows every pass from the side, which is where tabs show up as short steps in the last ring.

The panel gives the size, the deepest cut and the estimated time; Details adds the ranges, units, travel and tools. Play runs the program with the current line highlighted, and Download gives a PNG, a 1:1 plan-view SVG or a JSON summary.

Reading the numbers right

The viewer's part size is measured at the bit's centre, and says so. When a program cuts round the outside of a part, the centre runs half a tool diameter outside it, so the toolpath measures one tool diameter more than the part you keep.

The time is distance divided by feed rate for every move, plus rapids; the viewer says acceleration and corner slow-downs are not modelled, so a real machine usually takes a little longer.

The toolpath runs 1.5 mm outside the part: a 63 mm path with a 3 mm end mill cuts a 60 mm disc
Why the viewer says 63 mm: it measures the bit's centre, which runs half a tool diameter outside the 60 mm disc.

A worked example: the smiley sign with tabs

  1. Open smiley-sign-tabs.tap in a text editor: 73 lines. Line 1 is %, a start mark left over from punched tape, then a comment saying what the program does, G21 for millimetres, T1 M6 for a 3 mm flat end mill and S12000 M3.
  2. Drop it on the TAP file viewer. Estimated time: 59.4 s, made of 58.2 s of cutting and 1.2 s of rapids at the default rapid rate of 10,000 mm/min.
  3. Read the panel: part size 63 × 63 mm, measured at the bit's centre, and deepest cut 3 mm. Details gives Z from -3 to 5, units mm (from the file), 691 mm of cutting travel and the tool T1 3 mm flat end mill, 300–800 mm/min.
  4. Explain the 63: the bit's centre travels a 63 mm circle, so with a 3 mm bit the disc you keep is 60 mm.
  5. Switch to Front. Three rings sit 1 mm apart, and the bottom one steps up four times: the tabs. The comment on line 48 says so: down to -3.0 between tabs, up to -2.0 over each one. Each tab is about 4 mm wide at its narrowest and 1 mm thick.
  6. Check the depth against your sheet. The last ring stops at Z-3 with Z0 on top of the material. Measure the sheet: a real job cuts a few tenths of a millimetre past it, into a spoilboard (a sacrificial board under the work), so no skin is left.

Common mistakes

Questions

What program opens a .tap file?

A CNC control program such as Mach3 runs it, any text editor shows the code, and a G-code viewer draws the toolpath.

Is a .tap file the same as a .nc or .gcode file?

Inside, yes: all three hold plain-text G-code. Different CAM programs and controllers simply prefer different endings, so check the G-code itself, not the name.

Can a G-code viewer open a ZX Spectrum or Commodore 64 .tap file?

No. Those are tape images of old home-computer data. Open them in an emulator for that computer instead.

Sample file: smiley-sign-tabs.tap · ours (made by unmake for this post)

Sources

Drop your .tap file on the free unmake TAP file viewer to see the toolpath, the depth, the tabs and the run time before you press start.Try it on your own file