Modify Purge Line?

First of all welcome the forum.

Your rational behind changing the purge line makes sense. Luckily it’s an easy edit.

In “Printer settings/Machine G-code/Machine start G-Code” look for this section (it’s near the bottom)

;===== noozle load line ===============================
M975 S1
G90
M83
T1000
G1 X18.0 Y1.0 Z0.8 F18000;Move to start position
M109 S{nozzle_temperature_initial_layer[initial_extruder]}
G1 Z0.2
G0 E2 F300
G0 X240 E15 F{outer_wall_volumetric_speed/(0.3*0.5)     * 60}
G0 Y11 E0.700 F{outer_wall_volumetric_speed/(0.3*0.5)/ 4 * 60}
G0 X239.5
G0 E0.2
G0 Y1.5 E0.700
G0 X18 E15 F{outer_wall_volumetric_speed/(0.3*0.5)     * 60}
M400

To edit the position that the nozzle returns to you need to increas the X value on the second last line. So this line should be something like this to shorten the return by 3 mm.

G0 X21 E15 F{outer_wall_volumetric_speed/(0.3*0.5)     * 60}

You can check your edit in the G-code preview by scrolling the right vertical slider to the bottom (layer 1) and scrolling the horizontal slider to the far left. You can then step through the lines with the right arrow key.

6 Likes