GregValiant 1,142
As @ahoeben says, if Cura notices the Keywords it won't add temps before your Startup Gcode. But some folks prefer a bit of preheat before ABL so something like this would heat the hot end a bit, start heating the bed, do the ABL thing, and then heat up to operating temperature. AHoeben's list of Cura Keywords is HERE.
; Custom Start G-code
G21
G90
M82
M107
M140 S{material_bed_temperature_layer_0} ;start heating the bed to operating temp but don't wait for it to get there.
M109 S150 ;heat the hot end to some temperature just below "drool" temperature. Wait while heating.
G92 E0 ; Reset Extruder
G28 ; Home all axes
G29 ;your ABL command
M109 S{material_print_temperature_layer_0} ;Wait for hot end to get to operating temperature
M190 S{material_bed_temperature_layer_0} ;wait for bed to get to operating temperature
;you can add purge lines here
;End of Start G-code
Since there is some expansion of the heat block, nozzle, and bed when they are hot then having them at an elevated temperature during AutoLevel can increase the accuracy of leveling.
Recommended Posts
ahoeben 1,886
Cura checks if you add a heatup sequence in your start gcode. If you don't, it adds its own heatup before your start gcode. If you don't want Cura to add these lines, make sure your start gcode contains lines which have {material_print_temperature_layer_0} and {material_bed_temperature_layer_0} in them respectively (exactly as typed, Cura will replace the {}-text with the temperatures). eg:
Having this in your start gcode prevents Cura from putting heatup commands in front of your start gcode. This means that you can insert your ABL command anywhere you want to relative to your heatup commands.
Link to post
Share on other sites