Created
December 2, 2024 06:55
-
-
Save DaveWoodCom/5da9838b5261d11f91e89e844b9d8697 to your computer and use it in GitHub Desktop.
Ender 3v2 Modified Start GCode (Adaptive Purge)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
G90 ; use absolute coordinates | |
M83 ; extruder relative mode | |
M140 S[bed_temperature_initial_layer] ; set final bed temp | |
M104 S150 ; set temporary nozzle temp to prevent oozing during homing | |
G4 S10 ; allow partial nozzle warmup ; dwell 10 seconds | |
G28 ; home all axis | |
G29 A ; (DW) Activate UBL Mesh | |
G0 Z25 F240 | |
M104 S[nozzle_temperature_initial_layer] ; set final nozzle temp | |
M190 S[bed_temperature_initial_layer] ; wait for bed temp to stabilize | |
M109 S[nozzle_temperature_initial_layer] ; wait for nozzle temp to stabilize | |
G92 E0 ; reset extruder | |
; DW - Check if our adaptive purge line will fit on the bed | |
{if first_layer_print_min[0] < 10 || first_layer_print_min[1]+40 > print_bed_max[1] } | |
; DW - Fixed purge | |
G0 X2 Y10 Z5 F6000 ; position 10mm left from the lower left of the first layer | |
G0 Z0.28 F240 | |
G1 X2 Y40 E30 F360 ; extrude 30mm of filament in the y direction | |
G92 E0.0 ; reset extruder | |
G1 E-0.5 F2100 ; small retraction | |
G0 Y50 F6000.0 ; move an additional 10mm without extruding | |
{else} | |
; DW - Adaptive purge | |
; DW - see: https://www.youtube.com/watch?v=PqcEz09jQ7c | |
; DW - and: https://www.printables.com/model/1035759-adaptive-purge-for-any-3d-printer-using-slicer-var | |
G0 X{first_layer_print_min[0]-10} Y{first_layer_print_min[1]} Z5 F6000 ; position 10mm left from the lower left of the first layer | |
G0 Z0.28 F240 | |
G1 X{first_layer_print_min[0]-10} Y{first_layer_print_min[1]+30} E30 F360 ; extrude 30mm of filament in the y direction | |
G92 E0.0 ; reset extruder | |
G1 E-0.5 F2100 ; small retraction | |
G0 Y{first_layer_print_min[1]+40} F6000.0 ; move an additional 10mm without extruding | |
{endif} | |
G92 E0 ; reset extruder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment