G-code
G-code(Geometric Code)は、3Dプリンターのハードウェアを制御するために使われる標準化されたコンピュータ数値制御(CNC)プログラミング言語です。ステッピングモーターにどこへ動くか(X、Y、Z座標)、どのくらい速く移動するか(F送り速度)、どのくらいプラスチックを押し出すか(E軸)を指示します。
G-codeは、プリンターが実行する正確な時間とフィラメントの推定値を含んでいます。G-codeからスライサーが報告するグラムと時間は、すべての正確な見積もりの背後にある生の入力です。
Estimate it in the 3D printing cost calculator →3Dプリンティングでよく使うG-codeコマンド
標準的なコマンドには、G0 / G1(協調した直線移動と押出)、G28(全軸のホーミング)、M104 / M109(ホットエンド温度の設定と待機)、M140 / M190(ベッド温度の設定と待機)、M106 / M107(部品冷却ファンの制御)があります。
3DファイルからのG-codeの生成
STLや3MF形式の3Dモデルは、プリンターが直接読み取ることはできません。スライサーがモデルを水平な層にスライスし、特定のプリンターキネマティクスに最適化された何千行もの連続したG-codeを生成します。
G-codeからの印刷メタデータの解析
現代のスライサーは、G-codeファイルの先頭にコメントヘッダーを埋め込み、正確なフィラメント消費量(グラムとメートル)、総層数、秒単位の印刷時間予測を記述しており、見積もり計算ツールが直接読み取ります。
Cite This Page
Use these formats to cite this page in research, reports, and documentation. Both snippets are copy-ready.
APA 7
TryAR Labs. (2026, August 25). G-code. MakerWorld Estimator. https://estimator.tryar.in/ja/glossary/gcode
BibTeX
@misc{tryarlabs2026gcode,
title = {{G-code}},
author = {{TryAR Labs}},
year = {2026},
month = {aug},
url = {https://estimator.tryar.in/ja/glossary/gcode},
note = {MakerWorld Estimator}
}
Calculate 3D Print Costs in Real Time
Estimate exact filament gram rates, machine hours, and profit margins for any MakerWorld design or 3MF/STL upload.
Calculate Now