How To: G-Code Ending Scripts for the Dual

The official subforum for discussion of the installation and use of the official M2 Dual Extruder upgrade.
Post Reply
User avatar
Jules
Posts: 3144
Joined: Wed Jan 21, 2015 1:36 am

How To: G-Code Ending Scripts for the Dual

Post by Jules » Wed Oct 21, 2015 2:26 am

Just like the Startup scripts, I use a different ending script depending on the use. One note for all of my ending scripts - I've changed them to park the print head in the center of the bed, instead of taking it all the way over to the left side at the home location. (Puts less pressure on the filament for the right nozzle, which was getting stretched.)

(The ending scripts also lower the bed under power to just above the Z-axis return spring before disabling the motors.)

Single Extruder Left (Tool 0) End Script

T0
M104 S0 ; turn off extruder temperature
M140 S0 ; turn off bed
G91 ; relative mode
G1 Z10 ; lift 10mm
G90 ; absolute mode
G1 X100 ; center X axis
G1 Z195 ; drop Z axis to just above spring
M84 ; stop idle hold
M106 S0 ; stop bed fan



Single Extruder Right (Tool 1) End Script

T1
M104 S0 ; turn off extruder temperature
M140 S0 ; turn off bed
G91 ; relative mode
G1 Z10 ; lift 10mm
G90 ; absolute mode
G1 X100 ; center X axis
G1 Z195 ; drop Z axis to just above spring
M84 ; stop idle hold
M106 S0 ; stop bed fan


Dual Extruders (Tool 0 & Tool 1) End Script

T1
M104 S0 ; turn off extruder temperature
T0
M104 S0 ; turn off extruder temperature
M140 S0 ; turn off bed
G91 ; relative mode
G1 Z10 ; lift 10mm
G90 ; absolute mode
G1 Z195 ; drop Z axis to just above spring
G1 X100 ; center X axis
M84 ; stop idle hold
M106 S0 ; stop bed fan


Post Reply