Topic: Improved start and end G-code
I've not been happy with the default start and end g-code, so have been developing a better version based on the versions Ian posted on his blog.
I'm not sure about others, but I was particularly sick of the nozzle scraping across the platform in the back right corner as it left the home position to start printing. I was also sick of the first extrusions not working as plastic had oozed out of the hot tip.
My g-code rectifies both of these problems.
For Slic3r
Slic3r will let you use variables in your start and end g-code, which I have done. This g-code works best if you set the first layer extruder temp to 0 in Slic3r. Don't worry, it will still be heated appropriately for the first layer using this code.
Start:
G21; set mm units
G28 ;home all axis
M190 S[first_layer_bed_temperature] ; set and wait for bed temp to be reached
M104 S[temperature] ; set extruder temp and start heating
G90; set absolute coordinates
G1 Z5 F300 ;move platform down 5mm
G1 X10 Y10 F3000 ;move to front left corner
M109 S[temperature]; wait for extruder temp to be reached
G1 Z[first_layer_height] F200 ;move platform close to nozzle
G92 E0; reset extrusion distance
G1 E7 ;extrude anchor
EDIT:
Repetier-Host 0.74 kills the above code due to support for multiple extruders. Instead of [temperature] in those two lines, subtitute in your actual temp number you are seeking. EG:
M104 S200 ; set extruder temp and start heating
End:
G28 X0 Y0 ; home X axis and y axis
G1 Z150 F300 ; lower platform to bottom
M104 S0 ; kill extruder temperature
M140 S0 ; kill bed temperature
M84 ; disable motors
For Skeinforge
Manual values must be substituted whereever Slic3r variables were inside [square brackets].
Example:
G1 Z[first_layer_height] F200 ;move platform close to nozzle
becomes
G1 Z0.25 F200 ;move platform close to nozzle
or whatever your layer height is set to.
Here is a video of the new g-code in action: