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 doesn't respect initial gcode #19717

Closed
felipebraz opened this issue Oct 6, 2024 · 2 comments
Closed

Cura doesn't respect initial gcode #19717

felipebraz opened this issue Oct 6, 2024 · 2 comments
Labels
Status: Duplicate Duplicate of another issue. Status: Under Investigation The issue has been confirmed or is assumed to be likely to be a real issue. It's pending discussion. Type: Bug The code does not produce the intended behavior.

Comments

@felipebraz
Copy link

Cura Version

5.7.2

Operating System

Windows 11

Printer

Creality Ender 3 (Custom)

Reproduction steps

Create a custom initial gcode with custom bed and nozzle temperatures.

In my case:

; Ender 3 Custom Start G-code
G92 E0 ; Reset Extruder

M140 S{material_bed_temperature} ;set bed temperature

G28 ; Home all axes

M190 S{material_bed_temperature} ;wait for bed temperature
M104 T0 S{material_print_temperature} ;set hotend temperature

G29 ; Auto leveling

M109 T0 S{material_print_temperature} ;wait for hotend temperature

G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish

Actual results

;FLAVOR:Marlin
;TIME:26003
;Filament used: 26.5148m
;Layer height: 0.28
;MINX:41.132
;MINY:53.825
;MINZ:0.28
;MAXX:170.636
;MAXY:183.328
;MAXZ:117.88
;TARGET_MACHINE.NAME:Creality Ender-3
;Generated with Cura_SteamEngine 5.7.2
M104 S195 -- shouldn't exist in here
M105 -- shouldn't exist in here
M109 S195 -- shouldn't exist in here
M82 ;absolute extrusion mode -- shouldn't exist in here
; Ender 3 Custom Start G-code
G92 E0 ; Reset Extruder

M140 S55.0 ;set bed temperature

G28 ; Home all axes

M190 S55.0 ;wait for bed temperature
M104 T0 S195.0 ;set hotend temperature

G29 ; Auto leveling

M109 T0 S195.0 ;wait for hotend temperature

G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line

Expected results

;FLAVOR:Marlin
;TIME:26003
;Filament used: 26.5148m
;Layer height: 0.28
;MINX:41.132
;MINY:53.825
;MINZ:0.28
;MAXX:170.636
;MAXY:183.328
;MAXZ:117.88
;TARGET_MACHINE.NAME:Creality Ender-3
;Generated with Cura_SteamEngine 5.7.2
; Ender 3 Custom Start G-code
G92 E0 ; Reset Extruder

M140 S55.0 ;set bed temperature

G28 ; Home all axes

M190 S55.0 ;wait for bed temperature
M104 T0 S195.0 ;set hotend temperature

G29 ; Auto leveling

M109 T0 S195.0 ;wait for hotend temperature

G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line

Add your .zip and screenshots here ⬇️

image

image

@felipebraz felipebraz added Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior. labels Oct 6, 2024
@Asterchades
Copy link
Collaborator

There is a bug specific to 5.7.2 which will cause it to continue generating automatic temperature code even in the presence of the appropriate tokens in the Start Gcode. This has already been fixed in 5.8.0, released on August 1.

https://github.com/Ultimaker/Cura/releases/tag/5.8.0

@GregValiant GregValiant added Status: Duplicate Duplicate of another issue. Status: Under Investigation The issue has been confirmed or is assumed to be likely to be a real issue. It's pending discussion. and removed Status: Triage This ticket requires input from someone of the Cura team labels Oct 8, 2024
@GregValiant
Copy link
Collaborator

GregValiant commented Oct 8, 2024

As Asterchades states, this was a well known bug and was specific to version 5.7.2. The problem has been fixed and updating to 5.8.0 will fix the issue.
You can also install the post processor you can download HERE and copy it to your Configuration Folder and the "scripts" sub-folder. It will be available with the other post-processors. That post-processor should only be used with Cura 5.7.2.

I'll go ahead and close this as a duplicate of #19204 as the problem has been fixed. I hope you understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Duplicate Duplicate of another issue. Status: Under Investigation The issue has been confirmed or is assumed to be likely to be a real issue. It's pending discussion. Type: Bug The code does not produce the intended behavior.
Projects
None yet
Development

No branches or pull requests

3 participants