OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

Bed temperature is raised by support filament even when no support is generated

Open Darkest opened this issue 1 month ago • 4 comments

Description

When support is enabled and support_filament / support_interface_filament point to a different filament slot, the bed temperature (start M140/M190, the layer‑2 M140, bed_temperature_initial_layer_single and the ; first_layer_bed_temperature header) uses the max over that filament too, even if the model needs no support and none is generated.

Steps to reproduce

  1. Snapmaker U1, Textured PEI Plate.
  2. Filament 1: PLA (textured_plate_temp_initial_layer = 60). Filament 2: PETG (= 80).
  3. Process: Enable support = on, Support/raft base = 2, Support/raft interface = 2. Prime tower off.
  4. Slice a model that needs no support (e.g. the Flow Rate calibration). Only T0 prints.

Expected: M190 S60 Actual: M190 S80 – PLA printed on an 80 °C bed, which softens/warps the bottom and can cause the part to be knocked off.

Setting support filament to 1/Default produces M190 S60 with an otherwise identical G-code.

Cause

GCode::get_bed_temperature_max() and the bed_temperature_initial_layer_single placeholder iterate Print::extruders(). Print::support_material_extruders() adds the support filaments whenever has_support_material() is true (i.e. support is enabled), regardless of whether any support extrusions exist. ToolOrdering (which already feeds m_writer.extruders(), also used for chamber temperature) only counts support extruders when support layers actually contain fills.

Proposed fix

Use the extruders from m_writer.extruders() (set from tool_ordering.all_extruders()) when computing bed temperatures, falling back to Print::extruders() before they are known (the BBL header written before tool ordering). A PR with this change will follow.

Darkest avatar Oct 22 '26 09:10 Darkest

@Darkest There is a side case to this bug, that I already suffered, since related I am adding it here. Checked the proposed fix, and it doesn't cover this side case. I will describe it here, but I am ok to open a separate issue, although I think it is higly related and caused by the same underlying bug and is worth being addressed in the same fix.

Description

When support is enabled and ONLY support_interface_filament points to a different filament slot, the bed temperature (start M140/M190, the layer‑2 M140, bed_temperature_initial_layer_single and the ; first_layer_bed_temperature header) uses the max over that filament too, even though there is no higher temp fillament like PETG touching the hotbed. In fact the entire print could have only a couple of layers of PETG interface printed hours after the start of the print, but the entire print is using the PETG hotbed temperatures (for first and subsequent layers too). PLA overheats and wraps and in my case chamber overheated (with hood attached) and PLA nozzle got clogged.

Steps to reproduce

Snapmaker U1, Textured PEI Plate. Filament 1: PLA (textured_plate_temp_initial_layer = 60). Filament 2: PETG (= 80). Process: Enable support = on, Support/raft base = 1, Support/raft interface = 2. Prime tower on. Slice a model that needs support.

Expected: M190 S60 Actual: M190 S80 – PLA printed on an 80 °C bed, which softens/warps the bottom and can cause the part to be knocked off. Subsequent layers that do not have PETG use the PETG hotbed temperatures.

Cause

GCode::get_bed_temperature_max() and the bed_temperature_initial_layer_single placeholder use m_writer.extruders() (after tool ordering is available), which contains all extruders used anywhere in the print.

Consequently, a support interface fillament affects the initial bed temperature and subsequent layers' bed temperatures throughout the whole print although the PETG material is used on very few much higher layers.

Proposed fix

Calculate the initial bed temperature using only the extruders that actually print on the first layer, rather than all extruders used anywhere in the print, or extruders used in support interface, which is never on the first layer.

In the example above the initial bed temperature should be 60C since only PLA is printed on the first layer. No reason for the bed temperature to be increased at the PETG interface layers as it would only lead to unwanted thermal effects.

This would preserve the existing fix for unused support fillaments while also handling support interface layers that are always used on later (non-first layers)

konstantin-personal avatar Nov 11 '26 22:11 konstantin-personal

@Darkest Got it! Thanks for the feedback — we've logged it and will fix it in an upcoming release as soon as we can.

zackaree-shen avatar Nov 12 '26 06:11 zackaree-shen

Both cases reproduce on 2.4.1 final (Snapmaker Orca 2.4.1, macOS, command line), the one in the report and the support interface one from @konstantin-personal.

U1 0.4 profile, High Temp Plate, filament 1 is the stock Snapmaker PLA with bed 65 °C, filament 2 is the same file with bed 80 °C.

model support base / interface heads that print start layer 2
20 mm box, no support generated, tower off 2 / 2 head 1 only M190 S80 M140 S80
same 1 / 1 head 1 only M190 S65 M140 S65
10 mm post with a 30 x 30 x 2 mm slab on top, tower on 1 / 2 head 1, then head 2 once on layer 48 (Z 9.65) M190 S80 M140 S80
same 1 / 1 head 1 only M190 S65 M140 S65

In the third row the only thing filament 2 prints is the support interface, 47 layers after the PLA went down on an 80 °C bed, and the bed stays at 80 °C for the layers before it as well. So a fix that only looks at whether the filament is used in the print (the first row) leaves that row as it is; it takes the filaments of the first layer for the start temperature.

Until there is a release with the fix, I added a text check to the U1 Dry Run tools so a file can be checked before it goes to the printer: python3 tools/bed_hotter_than_first_layer.py file.gcode (https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/tools/bed_hotter_than_first_layer.py). It compares the bed temperature the start sets with what the filaments that extrude on the first layer ask for on that plate, and says which filament the bed was heated for. On rows 1 and 3 it exits 1 with:

BED HOTTER THAN FIRST LAYER: the start heats the bed to 80 C; the first layer prints only head 1 (65 C).
Filament 2 asks for 80 C and first prints on layer 48.

("never prints in this file" on row 1), and 0 on rows 2 and 4. The sliced file of row 3 is in the repo as examples/bed-for-late-interface-orca-2.4.1.gcode.gz.

What I did not do: nothing was printed, I did not slice in the GUI, I did not build #1074 to see what it does with row 3, and the check only looks at the start temperature, not at the bed temperature of later layers.

alandebortolo avatar Nov 13 '26 06:11 alandebortolo

@Darkest Got it! Thanks for the feedback — we've logged it and will fix it in an upcoming release as soon as we can.

Should I try to incorporate the fix for the issue reported by @konstantin-personal as well?

Darkest avatar Nov 13 '26 11:11 Darkest