OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

2.4.1: tower near the right bed edge, the new head drops to layer height at the dock and crosses the plate

Open alandebortolo opened this issue 3 weeks ago • 11 comments

Version: Snapmaker Orca 2.4.1, Snapmaker U1, default "Wall gap" on.

What happens. When the prime tower sits near the right edge of the bed, every tool change that enters the tower on its right side lowers the new head to the layer height while it is still at its dock exit, then crosses the plate to the tower at that height. Models in between get hit.

Real file from a U1 owner who reported damaged multicolor prints on all five of his printers (forum: https://forum.snapmaker.com/t/43745/12): 27 objects, 229 layers, 187 tool changes, tower at X230.853 Y219.095.

  • 94 tool changes enter the tower at X262.665. In all 94 the first move after T<n> is G1 Z<layer> F30000, with no XY move before it. Example, layer 1:
    130623  T0
    130633  G1 Z.45 F30000
    130634  G1 E10 F1800
    130636  G1  X262.665 Y237.607 F30000
    
    Run through the U1 firmware 2.1.0 config, T0 leaves the head at X43.5 Y250 (its dock exit), so line 130636 is a 220 mm travel at Z0.45 that crosses 84.5 mm of the layer just printed.
  • 74 of these 94 pass over 24 to 133 mm of part at the height of the layer in progress and touch it (0.00 mm), from Z0.45 to Z42.85. In 52 of them the contact is 5.0 to 40.5 mm long, where the path runs over what the current layer has already printed; in the other 22 it is shorter than 5 mm. (Edited 10 Nov: I first wrote "cross part material at 0.00 mm, 24 to 133 mm each"; 24 to 133 mm is the length over the part, not the length in contact.) (heads 0, 1 and 2 starting at X43.5, X94.2, X161.7). Full list with lines: https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/docs/orca-2.4.1-dock-travel.md
  • The other 92 enter at X236.165 and are fine: G1 X227.96 Y237.607, G1 X236.165 Y237.607 at the lifted height, then the Z drop at the tower.

Cause (src/libslic3r/GCode.cpp, WipeTowerIntegration::append_tcr, new in 2.4.1). After the tool change, the "Return detour" builds detour_around_wipe_tower(). If any detour point is outside printable_area, use_avoid = false and no move is written, but gcodegen.set_last_pos(target_obj) still runs. The slicer then believes the head is at the tower, and "Force restore layer Z" lowers it at the dock.

In this file the detour's first point is 8.205 mm outside the entry point: 236.165 - 8.205 = 227.96 on the left, 262.665 + 8.205 = 270.87 on the right, past the U1 bed edge at 270.5.

Suggested fix. When the detour cannot be used, still travel to target_obj before restoring Z (a plain travel_to with lift, as 2.4.0 effectively did), or clamp the detour points to the bed instead of dropping the whole detour. In both cases, do not call set_last_pos(target_obj) without a move that gets there.

Not verified: I have not re-sliced this plate with the tower moved left or with "Wall gap" off, and this is from the G-code and the firmware config, not from a printed part. Related but separate: #1149 (final purge without lift, line 8829545 in the same file).

alandebortolo avatar Nov 10 '26 20:11 alandebortolo

Thank you very much for your issue. We also saw this link. In fact, during the process of the tower being moved to the model, it would definitely first rise in height, and only when it reached the position of the model would it lower its height. From the pictures in this link, it seems that there was a stretching effect when printing the model, which also puzzled us. If a 3mf file could be provided, it would help us solve the problem more effectively. When the wipe tower is at the edge of the bed board, there is indeed a bug related to the reloading and extraction. We plan to fix this issue in the version released in December.

fire2wind avatar Nov 11 '26 06:11 fire2wind

Thank you for looking at it. Here is a 3mf that shows it in a small plate:

https://github.com/DesignMaster-Solutions/u1-dryrun/raw/main/examples/tower-right-edge-orca-2.4.1.3mf

It is not the forum user's project (I only have his G-code). It is a two-colour sign, 15 layers, default U1 0.20 mm profile, two Snapmaker PLA, prime tower at X236.5 Y100. I sliced it with the 2.4.1 command line on macOS; I have not opened it in the window.

The travel in this report is not the one from the tower to the model. It is the one before it, from the dock to the tower, right after the new head is picked up. In the 2.4.1 slice of this project, line 4519 to 4528:

T0
...
G1 Z.45 F30000
G1 E10 F1800
G1  X259.092 Y121.900 F30000

There is no XY move between T0 and G1 Z.45, so the head lowers where the firmware left it, at the dock exit, and then goes to the tower in a straight line at layer height. 8 of the 15 tool changes do this, all the ones that enter the tower on the right.

Same model and profile, three slices, each replayed on the U1 firmware 2.1.0:

Slicer Prime tower Tool changes that lower Z at the dock Result on the firmware
2.4.1 X236.5 Y100 8 of 15 3 travels through the part at layer height (lines 9734, 14909, 20512: 91.0, 22.5, 91.0 mm) and one over the finished top (line 36911, 91.0 mm at Z3.05)
2.4.1 X230.853 Y100 0 of 15 none; the detour is written (G1 X265.45 Y121.9) and Z lowers at the tower
2.4.0 X236.5 Y100 0 of 15 clean

So 5.6 mm of tower position decides it, which fits the cause in the report: at X236.5 the detour point on the right falls past X270.5, the detour is dropped, and set_last_pos still says the head is at the tower.

Not verified: a printed part, and a slice with "Wall gap" off.

alandebortolo avatar Nov 11 '26 09:11 alandebortolo

We conducted a test to verify the existence of this problem. As mentioned earlier, we will address this issue in the December version. If the problem persists, you can try not placing the erasing tower at the edge of the bed board, or use "Wall gap" off.

fire2wind avatar Nov 11 '26 10:11 fire2wind

Thank you for confirming it. I tried the two workarounds on the same 3mf with the 2.4.1 command line, and "Wall gap" off does not help on this plate. It makes it worse.

"Wall gap" Prime tower Tool changes that lower Z at the dock Result on the firmware 2.1.0
on X236.5 Y100 (edge) 8 of 15 3 travels through the part
on X230.853 Y100 0 of 15 none
off X236.5 Y100 (edge) 15 of 15 7 travels through the part
off X230.853 Y100 15 of 15 7 travels through the part

With it off, every tool change is written like this (first one, line 2098 to 2109):

T1
...
G1 E-2 F3600
G1 Z.25 F30000
G1 E2 F1800

G1  X241.592 Y105.100 F30000

Z goes down right after T1, before any XY move, on the left entries of the tower too and wherever the tower is. 2.4.0 writes the XY move first (G1 X15.250 Y220.250 F30000, then G1 Z.45).

So until the December version, the setting that came out clean here is "Wall gap" on with the tower away from the bed edge. The fix probably needs to cover the path without the gap as well.

The only change between the slices is wipe_tower_wall_gap (and wipe_tower_x for the second position). The "off" slice is here: https://github.com/DesignMaster-Solutions/u1-dryrun/raw/main/examples/tower-right-edge-orca-2.4.1-wall-gap-off.gcode.gz

Still not verified: a printed part, and the project opened in the window.

alandebortolo avatar Nov 11 '26 11:11 alandebortolo

The owner shared the two real projects on the forum (https://forum.snapmaker.com/t/43745/21, two Google Drive links). Both reproduce it straight from the 2.4.1 command line on macOS (--allow-newer-file --slice <plate>, files unchanged), counting the tool changes whose first move after T<n> is a Z-only move:

  • Bounding Bunny, plate 3, tower at X230.853 Y219.095: 94 of 186, all right-side entries (first: line 129480, G1 Z.45 F30000).
  • KOI Fish, tower at X24.407 Y229.819 (left back): 222 of 453, all left-side entries (first: line 32661, G1 Z.25 F30000, then G1 X29.721 Y245.333), up to Z49.05.

The KOI plate matters for the fix: the tower is 24 mm from the left bed edge and 29.721 - 8.205 = 21.5 is inside printable_area (0.5 to 270.5), so it is not only the right edge as I wrote above. I have not identified which detour point fails bed_bbx.contains there.

Counter used (text only, no firmware): https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/tools/dock_drops.py

Not done: these two slices through the firmware, and a 2.4.0 control of the KOI project (the 2.4.0 command line exits 139 on it).

alandebortolo avatar Nov 11 '26 12:11 alandebortolo

Found why the KOI plate (tower on the left) also loses the detour, and checked it by slicing. It is the back of the bed there, not the right edge.

I ported detour_around_wipe_tower() and the bed_bbx.contains() loop after it to Python and ran it on the sliced files, with the tower box taken from what the tower extrudes. Its prediction matches the files in 186 of 186 tool changes (bunny plate 3), 15 of 15 (the small 3mf above) and 449 of 453 (KOI).

Plate Tower with ribs and brim Detour point outside printable_area (X0.5..270.5, Y1..271)
Bounding Bunny, plate 3 X229.97..268.86 Y218.20..257.70 right-side entries: pt1 at X270.86, 0.36 mm past the right edge
KOI Fish X22.63..67.81 Y228.03..273.52 left-side entries: the back corners of avoid_bbx, Y275.52, 4.52 mm past the back edge

On the KOI plate the head parks on the right of the tower (safe_x = X70.82), so a left-side entry needs the walk round the box. Both candidate routes use a back corner:

  • walk(true): pt2, back-right corner, back-left corner, pt1.
  • walk(false): pt2, front-left corner, back-left corner, pt1. It steps i back and then pushes bbox_pts[i], so starting from the right edge (idx2 = 1) it pushes bbox_pts[0] and bbox_pts[3]. The front-right corner bbox_pts[1] is never used, and the first leg is a diagonal under the box.

So with the ribs reaching Y273.52 (they print past Y271 on this plate), every left-side entry fails the bed check, use_avoid is false and the head is lowered at the dock.

Checked with the 2.4.1 command line, changing only wipe_tower_x/wipe_tower_y in the project:

Project Tower moved Tool changes that lower Z at the dock
KOI Fish 6 mm to the front (Y229.819 to Y223.819) 0 of 453 (was 222). A left-side entry now reads G1 X69.822 Y230.133, G1 X69.822 Y269.534, G1 X20.62 Y269.534, then the entry
Bounding Bunny, plate 3 1 mm to the left (X230.853 to X229.853) 0 of 186 (was 94)

What this suggests for the fix (I did not compile it):

  1. When the detour is rejected, still travel to target_obj in XY before "Force restore layer Z", as 2.4.0 did. Today set_last_pos(target_obj) runs without the move.
  2. In walk(false), push bbox_pts[i] before stepping i back, so the front route exists (front-right, front-left corners), and choose among the routes that are inside the bed instead of the shorter one only.

Until then the workaround for owners is more exact than "away from the edge": the tower box with ribs and brim, plus 2 mm, has to be inside the bed on the right and at the back.

Script and numbers: https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/tools/tower_detour.py , https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/docs/orca-2.4.1-dock-travel.md

Not done: these slices were not run through the firmware or printed, and the projects were not opened in the Orca window (command line on macOS only).

alandebortolo avatar Nov 11 '26 13:11 alandebortolo

Thansk for the 3mf files! We will use our machine to print it and find the problem

fire2wind avatar Nov 12 '26 01:11 fire2wind

Thanks for the 3mf file, and we find the problem.

fish-1 In the first picture, when the wipe tower is at the edge of the bed board, The Z-axis first go down and then moves to wipe tower, just as the part in the red box in the picture. Incorrect. fish-2 In the second picture, we moved the wipe tower away from the edge of the bed board. The Z-axis first moves to wipe tower and then go down. Correct.

Therefore, we suggest placing the wipe tower away from the edge of the bedboard. And we confirm that our December version will fix this issue.

fire2wind avatar Nov 12 '26 04:11 fire2wind

Thank you for checking it with the KOI project, and for the date.

When the December build is out I will slice both projects again (KOI Fish and Bounding Bunny plate 3) with the tower where the owner had it, and post the counts here.

Until then, for owners who land on this issue: the tower with its ribs and brim, plus 2 mm, has to be inside the bed on the right and at the back. This says in a second whether a sliced file has the problem, without a printer: https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/tools/dock_drops.py

alandebortolo avatar Nov 12 '26 04:11 alandebortolo

Data point for the December fix, not a complaint: I re-sliced the 15-layer project above with the official 2.4.2-alpha Linux AppImage (--allow-newer-file --slice 0, file unchanged).

2.4.1 2.4.2-alpha
Tool changes that lower Z at the dock 8 of 15 8 of 15
Of those, un-retract at the dock 8 (80 mm) 8 (80 mm)
Head through the part on the way to the tower (firmware 2.1.0 replay) 3 (lines 9734, 14909, 20512) 3 (lines 9721, 14874, 20457)
Scar from the final purge (#1149) 1 (159.5 mm) 0, fixed

So nothing changed for this issue in 2.4.2-alpha, as expected from your plan; the "Return detour" block in append_tcr is the same as in 2.4.1. The detour point is still 0.60 mm outside the bed on the 8 right-side entries.

The 2.4.2-alpha file is in the test suite now (G-code), so I can rerun the same count on the December build the day it is out.

Not checked: KOI Fish and Bounding Bunny on 2.4.2-alpha, and the macOS and Windows builds.

alandebortolo avatar Nov 17 '26 11:11 alandebortolo

In case it helps the December fix: #1308 is the smallest change I could find for this. The return detour is dropped whenever one of its points is off the bed, so the layer Z is restored at the dock; the PR clamps that point to the bed edge instead. On the 15-layer project above, a local build goes from 8 of 15 tool changes lowering Z at the dock to 0 of 15, with no move past X270.5. Not printed, G-code check only.

alandebortolo avatar Nov 30 '26 00:11 alandebortolo