Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Put UNLOAD (case insensitive) in your PRINT SETTINGS NOTES to cause a filament unload
- {if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+1, max_print_height)} F720 ; Move print head up{endif}
- {if notes=~/.*[Uu][Nn][Ll][Oo][Aa][Dd].*/}
- ; FILAMENT UNLOAD CODE
- G1 X241 Y170 F3600 ; park
- {if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+23, max_print_height)} F300 ; Move print head up{endif}
- G4 ; wait
- M702 T0 ; Eject filament
- {endif}
- M104 S0 ; turn off temperature
- M140 S0 ; turn off heatbed
- M107 ; turn off fan
- {if notes!~/.*[Uu][Nn][Ll][Oo][Aa][Dd].*/}
- ; NO FILAMENT UNLOAD CODE
- G1 X241 Y170 F3600 ; park
- {if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+23, max_print_height)} F300 ; Move print head up{endif}
- G4 ; wait
- {endif}
- M900 K0 ; reset LA
- M142 S36 ; reset heatbreak target temp
- M84 X Y E ; disable motors
- ; max_layer_z = [max_layer_z]
Advertisement
Add Comment
Please, Sign In to add comment