Advertisement
downwind

Anet A8 Gcode for OctoPrint

Apr 14th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. Before print job starts:
  2.  
  3. G21 ;metric values
  4. G90 ;absolute positioning
  5. M82 ;set extruder to absolute mode
  6. M107 ;start with the fan off
  7.  
  8. M117 Homing...
  9. G28 X0 Y0 ;move X/Y to min endstops
  10. G28 Z0 ;move Z to min endstops
  11. G0 Z20 ;move up 20
  12. G1 F9000
  13. M117 Printing...
  14.  
  15.  
  16. After print job completes:
  17.  
  18. M104 S0 ;extruder heater off
  19. M140 S0 ;heated bed heater off (if you have it)
  20. G91 ;relative positioning
  21. M117 Print done!
  22. G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
  23. G1 Z+10 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more
  24. G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
  25. G1 Y180 ;Set Y axis to bring printed part forward
  26. G1 E-5 F900 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
  27. G92 E0 ;zero the extruded length
  28. M84 ;steppers off
  29. G90 ;absolute positioning
  30.  
  31. After print job is cancelled:
  32.  
  33. M104 S0 ;extruder heater off
  34. M140 S0 ;heated bed heater off (if you have it)
  35. G91 ;relative positioning
  36. M117 Print done!
  37. G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
  38. G1 Z+10 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more
  39. G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
  40. G1 Y180 ;Set Y axis to bring printed part forward
  41. G1 E-5 F900 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
  42. G92 E0 ;zero the extruded length
  43. M84 ;steppers off
  44. G90 ;absolute positioning
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement