Skip to content

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

Open
@GregValiant

Description

@GregValiant

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_extruder_nr should likewise be for the active extruder.

Additional Information

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions