Last active
April 8, 2018 04:09
-
-
Save jdembowski/ef95155e7f075696d100231b96768782 to your computer and use it in GitHub Desktop.
This file contains 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
Slic3r 1.2.9 | |
Start G-code | |
M116 ; Wait until target temperatures for extruder and heated bed are reached | |
G28 ; home all axes | |
M117 Printing... | |
G0 Z0.3 ; drop to start height | |
G0 Y3 ; move to edge of print area | |
G0 X50 F5000 ; move to front of bed | |
G92 E0 ; zero the extruded length | |
G1 X100 E6 F1000 ; extrude 5cm line | |
G1 X150 E10 F1000 ; extrude last 5cm line | |
End G-code | |
M104 S0 ;extruder heater off | |
M140 S0 ;heated bed heater off (if you have it) | |
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{travel_speed} ;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 | |
G90 ;absolute positioning | |
G1 Y190 ;bring bed forward | |
M84 ;steppers off | |
Before layer change G-code | |
; Layer [layer_num] | |
S3D | |
; Start | |
G28 ; home all axes | |
M117 Printing... | |
G0 Z0.3 ; drop to start height | |
G0 Y3 ; move to edge of print area | |
G0 X50 F5000 ; move to front of bed | |
G92 E0 ; zero the extruded length | |
G1 X100 E6 F1000 ; extrude 5cm line | |
G1 X150 E10 F1000 ; extrude last 5cm line | |
; End | |
G28 X0 ; home X-axis | |
M104 S0 ; turn off extruder | |
M140 S0 ; turn off bed | |
M84 ; disable motors | |
G91 ; relative positioning | |
G1 E-1 F300 ; retract the filament a bit to release some of the pressure | |
G28 X0 ; home X-axis | |
G90 ; absolute positioning | |
M107 ; turn fan off | |
G1 Y180 F9000 ; move completed part out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment