# .tapファイル ビューア

> .tapファイルは、CNCルーターが実行するGコードです（Mach3やVectricなどが書き出します）。開くと、切削の形、加工物のサイズ、切り込みの深さ、加工にかかる時間がわかります。

Human page: https://unmakelabs.com/ja-jp/tap-file-viewer/. This is the version for AI agents.

## What it does

Gコード ビューアで.tapファイルを開き、ルーターが削る形を確認 .tapファイルは、CNCルーターが実行するGコードです（Mach3やVectricなどが書き出します）。開くと、切削の形、加工物のサイズ、切り込みの深さ、加工にかかる時間がわかります。

## .tapファイルとは

名前は、プログラムをテープから読み込んでいた時代に由来するといわれています。現在はMach3、Mach4や、趣味用・業務用の多くのルーターが、プレーンなGコードに.tapを使っています。VectricのVCarveやAspireも、Mach3向けには標準で.tapを書き出します。中身は通常のGコードなので、ビューアは他のプログラムと同じように読み込めます。（バイナリの.tapはZX Spectrumのテープイメージで、こちらはSpectrumエミュレーターで開きます。）

## こんな方に

加工前にデータを確認したいCNCルーターのユーザーや看板製作の方、型紙サイトや知人から.tapを受け取った木工の方、メンバーのファイルをチェックするメイカースペースのスタッフ、Mach3を開かずに加工サイズや加工時間を知りたい方に。

## Facts

- **対応形式:** Mach3/Mach4、Vectric VCarve/Aspire、Fusion、Estlcam、Carbide Createの.tap。.nc、.gcode、.ngcにも対応
- **確認項目:** インチかミリか（G20/G21）、各パスの深さ、タブ、突っ込み送り
- **加工時間:** プログラムの送り速度と、お使いのルーターの早送り速度から算出
- **ダウンロード:** PNG、原寸（1:1）の平面図SVG（型紙や治具用）、概要JSON

## How a person does it

1. **.tapファイルを開く.** ビューアにドロップするか、パソコンやスマートフォンから選択します。
2. **サイズと深さを確認.** パネルに、加工物のサイズとZ0から最も深い切り込みがファイルの単位で表示されます。ビューアの「正面」ボタンで、すべてのパスとタブを横から確認できます。
3. **再生する.** 再生ボタンでビットの動きを確認できます。リストの行をタップすると、その行で削る位置が表示されます。

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/ja-jp/tap-file-viewer/?src=https://unmakelabs.com/apps/nc/samples/bracket.nc`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: `#t=0.5&v=px,py,pz,tx,ty,tz&r=0&u=mm&rr=10000` (t position in machining time 0 to 1, default 1 = whole program; v camera; r=0 hides rapids; u units when the file states none; rr rapid rate in mm/min for the time estimate).

Embed: `<iframe src="https://unmakelabs.com/embed/nc/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Send your own file (live)

`POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/nc_inspect/jobs?wait=25` with the file as multipart `file` (or JSON `file_base64` + `filename`, or `file_url`), API tool `nc_inspect`: Inspect a CNC program (G-code, Heidenhain). The same engine code as this page. No sign-up; Free: 5 full results per IP per day without a key (resets at 00:00 UTC); POST /v1/keys gives an instant key with 25 more full results (one-time, not renewed); each accepted correction adds 1 free call (up to 20 a month). Options (JSON in `options`): `rapid_mm_min`: rapid feed for the time estimate in mm/min (default 10000); `tool_change_s`: seconds per tool change (default 6).

```bash
# NC program: tools, extents, run time
curl -s -F "file=@part.nc" "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/nc_inspect/jobs?wait=25"
```

## Good to know

ルーター用の.tapファイルはインチ（G20）で書かれていることがよくあります。G20もG21もないファイルはミリとして読み込み、切り替えスイッチを表示します。12 × 8の看板が12 × 8 mmと表示される場合は、インチのファイルです。タブは最終パスの短い段差として表示され、正面ビューで見やすくなります。

## Not done by this tool

- 彫刻後の表面はプレビューしません（Vカービングの深さは、削った木材ではなくツールパスとして表示されます）
- Vectricのプロジェクトファイル（.crv/.crv3d）は読み込めません。ツールパスを.tapで書き出してください
- Mach3のマクロ（独自スクリプトを使うMコード）は実行しません

## Value

Opens an NC program (G-code: Fanuc, Haas, Mach3, Grbl, LinuxCNC and CAM post-processor output; Siemens Sinumerik and Heidenhain Klartext in part; 3D-printer G-code) in the browser with nothing to install and draws the 3D toolpath: cuts coloured per tool, rapids dashed, play and scrub with the running line highlighted in the listing. Reports the extents of the cutting moves, cutting and rapid travel, an estimated machining time from the programmed feeds (rapid rate and tool-change time adjustable), the tools with feeds, speeds and cutting time, and warnings with line numbers (arcs whose end is off the circle, missing feeds, missing units, unsupported codes, cycles and macros not drawn). Downloads a PNG, a 1:1 plan-view SVG and a JSON summary. Free, no sign-up.

## When it fits

- A machinist or setter wants to see what an NC program will do before running it, on a phone or shop PC with no CAM seat: shape, depth, extents against the stock, tools and roughly how long it takes.
- A CAM programmer wants to check post-processor output (arc format, units, tool changes, drilling cycles, feeds) or find the line that makes a control alarm on an arc.
- Someone has a .nc, .tap, .gcode, .ngc or .cnc file from a customer, a forum or a hobby CNC router and wants to know what it cuts, how big and in which units.

### When not

- Collision checking against the machine, fixtures or the stock model, material removal simulation, or verified cycle times on a specific machine (acceleration is not modelled): use the CAM's or the control's own simulation.
- Programs built mostly from macro variables, loops or control-specific cycles (Fanuc Macro B, Heidenhain Q parameters and CYCL DEF, Sinumerik CYCLE pockets): these parts are listed as warnings, not drawn.

## Why use it instead of the alternatives

- Nothing to install: the page opens a public NC program from a link (?src=, with #t= for the point in the program and #v= for the camera) and an embed shows the toolpath in any page.
- NCViewer (ncviewer.com) draws G-code locally in the browser with an editor, line stepping, 5-axis and lathe modes; its side panels are the code editor, a position readout and machine options (checked Dec 2026), with no tool list with feeds, speeds and per-tool times and no list of problems with line numbers. CAMotics and desktop editors such as CIMCO Edit need installing (CIMCO is paid); controls and CAM systems simulate only for their own users.
- This viewer: free in any browser incl. phones, nothing uploaded, line-by-line playback, tool list with feeds/speeds/times, plain warnings with line numbers (arcs a control would reject, missing units or feeds, codes not drawn), Heidenhain and Sinumerik read in part, plan-view SVG at 1:1, share link and embed.

### What rebuilding it would take

- Write a reader that handles modal G-code state (motion, plane, absolute/incremental, units, feed modes), arcs by I/J/K and by R including >180° and full circles, helical arcs, drilling cycles G81-G89 with G98/G99, subprograms (M98/M99, M97) and Sinumerik/Heidenhain variants.
- Draw millions of segments smoothly on a phone, scrub by machining time, highlight the running line, and time every move from its feed.
- Explain every unsupported code or broken arc in plain words with its line number, and export a scale-true plan view.
- A set of hand-worked test programs with known lengths, extents and times to keep the reader honest as dialects are added.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- A viewer, not a machine simulation: it does not check collisions, and some codes are not drawn (listed as warnings). Prove out every program on the machine as usual.

_Status: the NC viewer page works; agents send their own file to POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/nc_inspect/jobs?wait=25._

## Privacy

- Files opened in the page are read on the user's device and not uploaded unless the user clicks Share.
- Files opened by link (?src=) are fetched from where they are stored.
- The page loads three.js from a public code server, which receives the visitor's IP address for that request.

## Data

ブラウザ内で開きます。共有しない限り、ファイルはお使いのデバイスから出ません。共有したファイルは30日間保管されます。

## FAQ

- **.tapファイルは.ncや.gcodeファイルと同じですか？** 中身は同じで、どれもテキスト形式のGコードです。拡張子は主に、どのソフトで書き出したか、どの制御装置向けかを示しています。制御装置によっては方言（Mach3、Grbl、Fanucなど）の違いが問題になるため、ビューアは認識できないコードを一覧で表示します。
- **.tapファイルがとても小さく表示されます。なぜですか？** 冒頭にG20がないインチのファイルを、ミリとして読み込んでいる可能性があります。パネルの「単位」の横にある「in」をタップすると、サイズと時間がインチに切り替わります。
- **SVGを型紙として使えますか？** はい。平面図はプログラムの単位（mmまたはインチでの幅と高さ）で原寸（1:1）で描かれているため、100%で印刷するとツールパスの原寸の輪郭が得られます。
- **本当に無料ですか？** はい。ファイル数の制限、広告、登録、有料プランはありません。200 MBまでのプログラムを開けます。
- **プログラムはアップロードされますか？** 共有した場合のみです。共有したファイルはリンクが使えるよう30日間保管され、いつでも削除できます。それ以外の場合、プログラムやお客様の部品の情報は外に出ません。
- **AIエージェントでNCプログラムを読めますか？** エージェントは公開されているプログラムをリンクでこのビューアーに開き（このページに?src=とファイルのアドレスを付けます）、「ダウンロード」＞「概要（JSON）」で概要を読み取れます。同じ概要をデータで返すAPIも予定しています。
- **運営者は？** Unmake Labsです。お問い合わせ：hello@unmakelabs.com

## Related pages

- [NCプログラム ビューア](https://unmakelabs.com/ja-jp/nc-viewer/)
- [Gコード ビューア](https://unmakelabs.com/ja-jp/gcode-viewer/)
