Ultimaker / CuraEngine

Powerful, fast and robust engine for converting 3D models into g-code instructions for 3D printers. It is part of the larger open source project Cura.
https://ultimaker.com/en/products/cura-software
GNU Affero General Public License v3.0
1.67k stars 880 forks source link

Incorrect values in the StartUp G-code "Replacement Patterns" #1912

Open GregValiant opened 1 year ago

GregValiant commented 1 year ago

Application Version

5.4.0 , 4.13.1

Platform

Windows 10 Home Qt n/a

PyQt n/a

Display Driver n/a

Steps to Reproduce Set up a dual extruder printer with a raised model and set the support to T1 and the model to T0. T0 print temperature to 200 T1 print temperature to 220 Within the StartUp Gcode are: M104 S{material_print_temperature_layer_0} M109 S{material_print_temperature_layer_0}

Actual Results ;Generated with Cura_SteamEngine 5.4.0 T1 M82 ;absolute extrusion mode ;SV04 start M140 S60; M104 S200 ; This is the replacement temperature and is always the temperature for Extruder[0] though T1 starts the print.

Expected results ;Generated with Cura_SteamEngine 5.4.0 T1 M82 ;absolute extrusion mode ;SV04 start M140 S60; M104 S220 ; This is the temperature of the Extruder[current_extruder] which in this case is T1

When there are no replacement patterns in the startup ;Generated with Cura_SteamEngine 5.4.0 T1 M104 T0 S175 M104 S220 M105 M109 T0 S175 M105 M109 S220 M82 ;absolute extrusion mode ;SV04 start M140 S60;

When the replacement pattern {initial_extruder_nr} is in the startup: Initial Extruder nr: T0 ; but the initial extruder in this example is T1

When the StartUp Gcode contains hot end temperature replacement patterns and the print temperatures are different for T0 and T1, and the print starts with any extruder other than T0 then the temperature at the start of the print will be incorrect.

Expected Results II The hot end temperature replacements should be for the active extruder. The _initial_extrudernr should likewise be for the active extruder.

Additional Information

This is from Cura bug report #16214. Project file. ReplacementPatternReport.zip