Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save saratrajput/1f2a415b665072aee289a68f34f85e61 to your computer and use it in GitHub Desktop.
Save saratrajput/1f2a415b665072aee289a68f34f85e61 to your computer and use it in GitHub Desktop.
Automatic Print Removal GCODES

Automatic Print Removal GCODES

These instructions are to remove the printed at the end of the print. The printed model is assumed to be placed at the center of the platform. Printer: Anycubic Mega.

  • Original End Code
M104 S0 ; turn off extruder
M140 S0 ; turn off bed
M84 ; disable motors
M107
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 ;X-20 Y-20 F{speed_travel} ;move Z up a bit and retract filament even more
G28 X0 ;Y0 ;move X/Y to min endstops, so the head is out of the way
G1 Y180 F2000
M84 ;steppers off
G90 ; Set all axes to absolute
M300 P300 S4000
  • Starting Script
G28; home all axes
G1 X210 Y5 Z20; Move over wipe brush
G1 X210 Y25 Z19; Brush
G1 X210 Y5 Z18; Your
G1 X210 Y25 Z17; Teeth
G1 X200 Y5 Z17; Move off of wipe brush
  • Ending Script
G1 X105 Y195 Z50 F3000 ; Move up and back

M300 S3520 P200 ; A7
M300 S4698.63 P200 ; D8
M300 S5274.04 P200 ; E8
M300 S6271.93 P200 ; G8

G1 X105 Y195 Z1 F3000 ; Lower
G1 X105 Y1 Z1 F2400 ; Remove Print
G1 X105 Y30 Z1 F8000 ; Shake it out
G1 X105 Y1 Z1 F8000 ; Shake it out
G1 X105 Y30 Z1 F8000 ; Shake it out

; M105 S0 ; fan off
; M104 S0 ; turn off extuder
; M140 S0 ; turn off bed
; M84 ; disable motors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment