软件

G-code

Updated August 2026
3D Printing Definition
Definition

G-code(Geometric Code,几何代码)是用于指令 3D 打印机硬件的标准化计算机数控(CNC)编程语言。它告诉步进电机移动到何处(X、Y、Z 坐标)、以多快速度行进(F 进给率),以及挤出多少塑料(E 轴)。

Cost Impact

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

APA
TryAR Labs. (2026, August 25). G-code. MakerWorld Estimator. https://estimator.tryar.in/zh/glossary/gcode

BibTeX

BIBTEX
@misc{tryarlabs2026gcode,
  title        = {{G-code}},
  author       = {{TryAR Labs}},
  year         = {2026},
  month        = {aug},
  url          = {https://estimator.tryar.in/zh/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