3D打印机常用Gcode命令
[By Loe King]
延时G命令
G0: Rapid move 快速移动
G1: Controlled move 可控移动
G28: Move to Origin 移动到原点
G29-G32: Bed probing 加热床检查
即时G命令
G4: Dwell 停顿
G10: 打印头偏移
G20: Set Units to Inches 使用英寸作为单位
G21: Set Units to Millimeters 使用毫米作为单位
G90: Set to Absolute Positioning 设置成绝对定位
G91: Set to Relative Positioning 设置成相对定位
G92: Set Position 设置位置
即时的M和T命令
M0: Stop 停止
M1: Sleep 睡眠
M3: Spindle On, Clockwise (CNC specific)
M4: Spindle On, Counter-Clockwise (CNC specific)
M5: Spindle Off (CNC specific)
M7: Mist Coolant On (CNC specific)
M8: Flood Coolant On (CNC specific)
M9: Coolant Off 冷却系统关闭(CNC specific)
M10: Vacuum On (CNC specific)
M11: Vacuum Off (CNC specific)
M17: Enable/Power all stepper motors 启动所有步进马达
M18: Disable all stepper motors 关闭所有步进马达
M20: List SD card 读取SD卡
M21: Initialize SD card 初始化SD卡
M22: Release SD card 弹出SD卡
M23: Select SD file 选择SD卡的文件
M24: Start/resume SD print 开始SD卡的打印
M25: Pause SD print 暂停SD卡打印
M26: Set SD position
M27: Report SD print status
M28: Begin write to SD card
M29: Stop writing to SD card
M30: Delete a file on the SD card
M40: Eject
M41: Loop
M42: Stop on material exhausted / Switch I/O pin
M43: Stand by on material exhausted
M80: ATX Power On 打开ATX电源
M81: ATX Power Off 关闭ATX电源
M82: 设置挤出机使用绝对坐标模式
M83: 设置挤出机为相对坐标模式
M84: Stop idle hold
M92: 设置 axis_steps_per_unit 参数
M98: 获取 axis_hysteresis_mm 参数
M99: 设置 axis_hysteresis_mm 参数
M101 正转挤出机1的操作方向 /撤销Extruder Retraction(挤出回缩)
M102 反转挤出机1的操作方向
M103 关闭所有挤出机 / Extruder Retraction (挤出回缩)
M104:设置挤出机(热头)温度
M105: 获取温度
M106: 打开风扇
M107: 关闭风扇
M108: 设置挤出机速度
M109: 设置挤出机温度,并等待
M110: 设置当前的行码
M111: 设置Debug除错等级
M112: 紧急停止
M113: 设置挤出机的 PWM
M114: 获取当前位置
M115: 获取固件信息
M116: 等待
M117: Get Zero Position
M117 in Marlin: 显示消息
M118: Negotiate Features
M119: Get Endstop Status
M120: Push
M121: Pop
M126: Open Valve
M127: Close Valve
M128: Extruder Pressure PWM
M129: Extruder pressure off
M130: 设置 PID P 值
M131: 设置 PID I 值
M132: 设置 PID D 值
M133: Set PID I limit value
M134: Write PID values to EEPROM
M136: Print PID settings to host
M140: Bed Temperature (Fast)
M141: Chamber Temperature (Fast)
M142: Holding Pressure
M143: 设置最大热头温度
M160: Number of mixed materials
M190: Wait for bed temperature to reach target temp
M200 - Set filament diameter / Get Endstop Status
M201 - 设置最大打印加速度
M202 - 设置最大移动加速度
M203 - 设置电机最大速度
M204 - 设置默认加速度
M205 - 高级设置
M206: 设置归位偏差
M207: 通过测量Z的最大活动范围 来 校准Z轴
M208: 设置XYZ轴行程的限制
M209: 允许自动回丝 (Retraction)
M220:set speed factor override percentage
M221: set extrude factor override percentage
M226: Gcode Initiated Pause
M227: Enable Automatic Reverse and Prime
M228: Disable Automatic Reverse and Prime
M229: Enable Automatic Reverse and Prime
M230: Disable / Enable Wait for Temperature Change
M240: Start conveyor belt motor / Echo off
M241: Stop conveyor belt motor / echo on
M245: 打开风扇
M246: 关闭风扇
M300: 播放提示音
M301: Set PID parameters - Hot End
M303: Run PID tuning
M304: Set PID parameters - Bed
M420: Set RGB Colors as PWM
M500: 保存修改 数据将保存在EEPROM上
M501: 从EEPROM读取设置
M502: 重置为出厂模式.
M503: 获取设置