2.4.1: no Z-hop before the final purge, the nozzle crosses the finished top layer
Summary
In 2.4.1 the final purge has no Z-hop and no retraction before its travel to the prime tower, so the nozzle crosses the finished top layer at print height. A U1 owner saw it as a scratch on the part and reported it on the forum: https://forum.snapmaker.com/t/43865 . They measured that 2.4.0 does a 0.40 mm Z-hop before that travel and does not scratch.
Snapmaker_Orca Version
2.4.1. By reading the code, also main at f5fd7289e.
Operating System
Not OS specific: the missing move is in the G-code.
Printer
Snapmaker U1
How to reproduce
- Slice a multi-color model with a prime tower on the default U1 profile (
print_sequenceby layer,z_hop = 0.4,z_hop_types = Auto Lift). - Open the G-code and go to the last
; CP TOOLCHANGE UNLOAD. - Its first XY move is a bare
G1 X.. Y.. F30000at the height of the last object layer, right after the last extrusion.
Actual results
- The user's file (
helado, Orca 2.4.1): line 130731G1 X17.984 Y139.987 F30000at Z12.05, from the last extrusion at X132.503 Y137.672. The retractionG1 E-1.5only comes after it, at line 130739. File, shared by the user for this purpose: https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/examples/helado-pipewrx-orca-2.4.1.gcode.gz - Same model sliced by me on 2.4.1:
G1 X19.842 Y224.850 F30000at Z3.05, no lift: https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/examples/sign-orca-2.4.1.gcode.gz
Expected results
A lifted travel, as in 2.4.0 on the same model and settings: G1 X63.037 Y150.93 Z3.65, G1 X32.75 Y238.85 Z3.65, G1 Z3.25, G1 E2: https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/examples/sign-orca-2.4.0.gcode.gz
Cause
src/libslic3r/GCode.cpp, WipeTowerIntegration::append_tcr2(), changed in b626b4be6 (#937):
// v2.4.0, line 748
if (should_travel_to_tower || gcodegen.m_need_change_layer_lift_z) {
// v2.4.1, line 812
if (!tcr.priming && (tcr.is_finish_first || will_go_down)) {
should_travel_to_tower is still computed at line 834 but nothing reads it. For the final purge (finalize() calls append_tcr2(gcodegen, m_final_purge, -1)) the new condition is false: is_finish_first is false (WipeTower2.cpp 1817) and finalize() has already moved to the purge height. Real tool changes still lift, through toolchange_retract_str in the [change_filament_gcode] placeholder, but only toolchange_Change() writes that placeholder (WipeTower2.cpp 2327), so the final purge is the one tower block with no lift.
Proposed change
const bool will_go_down = !is_approx(z, current_z);
- if (!tcr.priming && (tcr.is_finish_first || will_go_down)) {
+ // The final purge (new_extruder_id == -1) has no [change_filament_gcode], so nothing else lifts
+ // before its first move. Also honour a pending layer-change lift, as v2.4.0 did.
+ const bool is_final_purge = new_extruder_id < 0;
+ if (!tcr.priming && (tcr.is_finish_first || will_go_down || is_final_purge || gcodegen.m_need_change_layer_lift_z)) {
I have not compiled this yet. I am building it in a fork and will open a PR if the G-code comes out right. Longer write-up with what is proven and what is not: https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/docs/orca-2.4.1-final-purge.md
Workaround for users
A post-processing script that adds a Z-hop around that one travel and changes nothing else: https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/tools/lift_final_purge.py . On the user's file, a dry run on firmware 2.0.0 and 2.1.0 goes from one scar to clean. It has not been confirmed on a physical print yet.
Related issues checked
#966 and #967 ("No sparse layers"), #1083 (no prime tower) and #908 (dry WIPE move) are different paths. I did not find an open issue for this one.
A second real file with this move, shared by a U1 owner on the forum (https://forum.snapmaker.com/t/43745/12, Snapmaker Orca 2.4.1, sliced 2026-10-31, 27 objects, 229 layers, 187 tool changes).
Line 8829545, inside the last ; CP TOOLCHANGE UNLOAD: G1 X236.415 Y231.757 from X56.4 Y244.0 at Z45.85, the height of the last layer, with no lift, and the retraction only on line 8829556. That is 180 mm at print height. The other 372 travels to and from the tower in the same file are all lifted 0.40 mm; this is the only one at 0.00.
I did not print it and the owner did not say where the marks from this specific move are, so this is the G-code only.
Thanks for you issue. We will address this issue in the November version. The action of moving the printout to the erasure tower after it's completed is unnecessary. Therefore, we will remove this action in the November version.
Thank you. Removing that move fixes it at the source: it is the same move in both files here, the one in the report and the 27-object plate from the forum.
When a build with the change is available, I can slice both again, replay them on the U1 firmware and post the result here.
One related report, in case it fits the same release: #1168 is a different travel, at the start of a tool change. The new head is lowered to layer height while still at its dock and then crosses the current layer to reach the tower (52 of 186 tool changes on that same plate).
Checked on the official 2.4.2-alpha Linux AppImage (Snapmaker_Orca_Linux_ubuntu_2404_V2.4.2-alpha.AppImage), as promised above. Fixed here, closing.
Same two-colour sign and the same headless command as the 2.4.1 report (slice_sign_linux.sh, U1 system presets):
| Build | After the last extrusion | U1 firmware 2.1.0 replay |
|---|---|---|
| 2.4.1 | bare G1 X.. Y.. F30000 to the tower at Z3.05, then the final purge |
82 mm across the finished top layer |
| 2.4.2-alpha | wipe, retract, PRINT_END; no travel to the tower, 15 CP TOOLCHANGE UNLOAD blocks instead of 16 |
clean, 41020 moves, no travel across a finished surface |
In the source, WipeTowerIntegration::finalize() no longer emits the final purge, which matches what @fire2wind described.
Second plate, the 15-layer project from #1168 re-sliced with the same AppImage: the 159.5 mm scar of the final purge (line 38874 in the 2.4.1 file) is gone too.
Files: sign, 2.4.2-alpha, tower-right-edge, 2.4.2-alpha; both are now in the repo's end-to-end test.
Not checked: the 27-object plate from the forum (I only have its G-code, not the project), the macOS and Windows builds, and a real print.