Code: Select all
^Changing Tools
^ABS_Temp_220_250
^ABS_Temp_220_250
^Current_Tools 1-ABS
^2-ABS
^3-ABS
^Shut off old tools
{IF NEWTOOL=1}M204 S0 P1
{IF NEWTOOL=1}M304 S0 P1
{IF NEWTOOL=2}M104 S0 P1
{IF NEWTOOL=2}M304 S0 P1
{IF NEWTOOL=3}M104 S0 P1
{IF NEWTOOL=3}M204 S0 P1
^Turn on new tool
^set a P1 preheat without wait
{IF NEWTOOL=1}M104 S220 P1
{IF NEWTOOL=1}M104 S250 P1
{IF NEWTOOL=2}M204 S220 P1
{IF NEWTOOL=2}M204 S250 P1
{IF NEWTOOL=3}M304 S220 P1
{IF NEWTOOL=3}M304 S250 P1
^Move the printhead to the priming bay
{IF NEWTOOL=1}G1 X108.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=1}G1 X108.000 Y161.000 [current_Z_position] F9000.0
{IF NEWTOOL=1}G1 X108.000 Y157.000 [current_Z_position] F9000.0
{IF NEWTOOL=2}G1 X118.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=2}G1 X118.000 Y161.000 [current_Z_position] F9000.0
{IF NEWTOOL=2}G1 X118.000 Y157.000 [current_Z_position] F9000.0
{IF NEWTOOL=3}G1 X128.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=3}G1 X128.000 Y161.000 [current_Z_position] F9000.0
{IF NEWTOOL=3}G1 X128.000 Y157.000 [current_Z_position] F9000.0
^Set temp to target temp
{IF NEWTOOL=1}M104 S250
{IF NEWTOOL=2}M204 S250
{IF NEWTOOL=3}M304 S250
^Perge on the new tool 250 spans at a rate of 50
M55[new_tool] P250 S50
^Retract the plastic
M103
^Pause for 5 seconds
G4 P5
^Clean the print head
{IF NEWTOOL=1}G1 X108.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=1}G1 X108.000 Y161.000 [current_Z_position] F9000.0
{IF NEWTOOL=1}G1 X108.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=1}G1 X108.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=2}G1 X118.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=2}G1 X118.000 Y161.000 [current_Z_position] F9000.0
{IF NEWTOOL=2}G1 X118.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=2}G1 X118.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=3}G1 X128.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=3}G1 X128.000 Y161.000 [current_Z_position] F9000.0
{IF NEWTOOL=3}G1 X128.000 Y136.000 [current_Z_position] F9000.0
{IF NEWTOOL=3}G1 X128.000 Y136.000 [current_Z_position] F9000.0
^set the overall flow control
M108 S20
^ToolChange Finished
^Set the cooling fan to 100pct
M106 100