Add a M109 for temperature control
This commit is contained in:
parent
6e02c8f117
commit
ed9b4e829c
@ -393,6 +393,7 @@ sub export_gcode {
|
|||||||
# write start commands to file
|
# write start commands to file
|
||||||
printf $fh "M104 S%d ; set temperature\n", $Slic3r::temperature unless $Slic3r::temperature;
|
printf $fh "M104 S%d ; set temperature\n", $Slic3r::temperature unless $Slic3r::temperature;
|
||||||
print $fh "$Slic3r::start_gcode\n";
|
print $fh "$Slic3r::start_gcode\n";
|
||||||
|
printf $fh "M109 S%d ; wait for temperature to be reached\n", $Slic3r::temperature unless $Slic3r::temperature;
|
||||||
print $fh "G90 ; use absolute coordinates\n";
|
print $fh "G90 ; use absolute coordinates\n";
|
||||||
print $fh "G21 ; set units to millimeters\n";
|
print $fh "G21 ; set units to millimeters\n";
|
||||||
print $fh "G92 E0 ; reset extrusion distance\n" if !$Slic3r::no_extrusion;
|
print $fh "G92 E0 ; reset extrusion distance\n" if !$Slic3r::no_extrusion;
|
||||||
|
Loading…
Reference in New Issue
Block a user