3D-Printing

From Wiki

G-Code Ender3 + ABL

  • start
G21 ;metric values 
G90 ;absolute positioning 
M82 ;set extruder to absolute mode 
M106 S0 ;disable fan

M190 S{material_bed_temperature}; Heating bed
M109 S{material_print_temperature}; Heating hotend

M117 Home X/Y
G28 X0 Y0 ;Home X/Y 
M117 Home Z
G28 Z0 ;Home Z 
M117 Auto Bed Level
G29 ;Auto Bed Level

M117 Down 15mm
G1 Z15.0 F9000 ;move the platform down 15mm 
G92 E0 ;zero the extruded length 
M117 Extrude a bit
G1 F200 E3 ;extrude 3mm of feed stock 
G92 E0 ;zero the extruded length again 

G1 F9000 
M117 Printing...
  • stop
M104 S0 ;hotend off 
M140 S0 ;heated bed off

G91 ;relative positioning 

M117 Retract filament
G1 E-1 F300 ;retract the filament
  
M117 Move Z up
G1 Z+0.5 E-5 F9000 ;move Z up and retract filament 
G1 Z+25 F9000 ;move up 25mm

M117 Move Y forward
G90 ;absolute positioning
G0 Y200 ;Move Y to front
;G28 X0 Y0 ;Home X/Y

M84 ;steppers off 
M106 S0 ;disable fan