G-code(也写作 G-code / G代码)指用于数控机床(CNC)和3D打印机等设备的指令代码语言,用来控制机器的运动路径、速度、进给、温度等操作。常见指令以字母 G 开头(如 G0、G1),因此得名。
/ˈdʒiː ˌkoʊd/
I exported the model and generated G-code for the 3D printer.
我导出了模型,并为3D打印机生成了G代码。
Before running the job, the operator reviewed the G-code to ensure the toolpath wouldn’t collide with the fixture.
在运行加工任务之前,操作员检查了G代码,以确保刀具路径不会与夹具发生碰撞。
G-code 来自字母 G + code(代码)。在早期数控编程体系中,许多“准备功能/几何指令”(如直线插补、快速移动)以 G 开头(例如 G00 快速定位、G01 直线进给),因此这种控制指令语言被统称为 G-code。不同厂商与控制系统(如 Fanuc、Siemens、Marlin 等)在细节上可能略有差异。