Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cura 5.7.2 inserts M104 and M109 before start code even when M104/M109 S{material_print_temperature_layer_0} is in start code. #19437

Closed
Austenite2 opened this issue Jul 26, 2024 · 3 comments
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior.

Comments

@Austenite2
Copy link

Austenite2 commented Jul 26, 2024

Cura Version

5.7.2

Operating System

Windows 11

Printer

Voron 2.4

Reproduction steps

In Machine Settings, Start G-code, add:

M140 S{material_bed_temperature_layer_0}
M104 S{material_print_temperature_layer_0}
M190 S{material_bed_temperature_layer_0}
M109 S{material_print_temperature_layer_0}
print_start

Also happens if use M104 S{material_print_temperature} instead

Actual results

Generated G-code still has M104 and M109 commands:

;Generated with Cura_SteamEngine 5.7.2
T0
M104 S265
M109 S265
M82 ;absolute extrusion mode
;Filament name = Progressive3D ABS Dark Grey Flow 90.5/91
;Filament type = ABS
;Filament weight = [85.19217265625001]
;Nozzle diameter = 0.6
M140 S125
M104 S265
M190 S125
M109 S265
print_start

Expected results

M104 and M109 lines aftert the T0 line should not be added to G-code.

Seems similar to #1036 and there are recent comments from other users about this issue in 5.7.2

Add your .zip and screenshots here ⬇️

machine_settings

@Austenite2 Austenite2 added Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior. labels Jul 26, 2024
@LilBub
Copy link

LilBub commented Jul 27, 2024

I could be wrong, seems similar to #19190

@GregValiant
Copy link
Collaborator

Yeah, this is a duplicate of #19204 .
@Austenite2 This bug has been fixed in 5.8beta so I'll mark this as a duplicate and go ahead and close it.

I've written a post-processor for 5.7.2 that removes those lines that Cura adds.
Unzip CuraPrependBugFix.zip and put the ".py" file into your configuration folder and the "scripts" sub-folder.
The post-processor will be available with the rest of them under "Extensions | Post Processing | Modify Gcode" and then "Add Script".

@Austenite2
Copy link
Author

Apologies for the duplicate, and thanks for the script!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior.
Projects
None yet
Development

No branches or pull requests

3 participants