Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save SuperCoolAlan/b5adcb6cfbf5557737c5245a8f55b1ca to your computer and use it in GitHub Desktop.

Select an option

Save SuperCoolAlan/b5adcb6cfbf5557737c5245a8f55b1ca to your computer and use it in GitHub Desktop.
This Creality K2 Plus Machine G-Code is configured in Creality Print > Printer Settings > Machine G-code > Machine end G-code
G91 ; Set relative positioning mode
G1 E-5 F600 ; Retract the filament slightly to relieve pressure
G1 Z+0.5 E-5 X-20 Y-20 F9000 ; Move Z axis up, retract filament further, move X and Y axes to min endstops
G28 X0 Y0 ; Home the X and Y axes to get the hotend out of the way
G1 Y150 F5000 ; Move the bed forward for easier print removal (adjust Y value as needed for your printer and part size)
M104 S0 ; Turn off the extruder heater
M140 S0 ; Turn off the heated bed
M106 S0 ; Turn off the cooling fan
M84 ; Disable all stepper motors
G90 ; Set absolute positioning mode (important for the next print)
PRINT_END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment