3D打印机启停代码Gcode

Gcode开始和结束代码。停机回抽材料,返回原点,蜂鸣提醒。

开始

M104 S{print_temperature}
M140 S{print_bed_temperature}
M143 S270 ;喷头超出270度shutdown
M105
M109 S{print_temperature} E1
M190 S{print_bed_temperature}
M105
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z15.0 F{travel_speed} ;move the platform down 15mm
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
G92 E0 ;zero the extruded length again
G1 F{travel_speed}
;Put printing message on LCD screen
M117 Printing…

结束代码

G91
G1 Z+5.0 E-5 F200 ;Z上移5mm 回抽10mm
G90
G28 X0 Y0
M300 S100 P1000 ;end sound
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it ;retract the filament a bit before lifting the nozzle, to release some of the pressure
M106 S0
M84 ;steppers off
G90 ;absolute positioning
;{profile_string}

发表评论

电子邮件地址不会被公开。 必填项已用*标注