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

Klipper firmware: Add the ability for custom gcode to recognize PRINT_START/START_PRINT macro #6847

Closed
MrCroup opened this issue Aug 28, 2021 · 4 comments

Comments

@MrCroup
Copy link

MrCroup commented Aug 28, 2021

Version

Latest

Add the ability for custom gcode to recognize PRINT_START/START_PRINT macro or, as in SuperSlicer (based on PrusaSlicer) add a function to only use the custom start gcode with no modifications by PrusaSlicer.

I would like to use PrusaSlicer for my 3D Printers that are using Klipper firmware, but PrusaSlicer doesnt recognize the PRINT_START/START_PRINT macro as a valid startup gcode and adds gcode to set the temperature for extruder and bed.

With klipper, the macro is used to bring the heat up in stages and allow for heat soak time without bringing the system up to 100% temp on the extruder. A typical Klipper START_PRINT macro would look like this in the start custom gcode:

START_PRINT T_BED=[first_layer_bed_temperature] T_EXTRUDER=[first_layer_temperature]

@rtyr
Copy link
Collaborator

rtyr commented Aug 29, 2021

I believe this is a duplicate of #2420. This workaround should work for you #2420 (comment).

@rtyr rtyr changed the title Feature Request Add the ability for custom gcode to recognize PRINT_START/START_PRINT macro Aug 29, 2021
@besser
Copy link

besser commented Oct 20, 2021

Before, if I wanted to use PrusaSlicer with Klipper, I had to open the G-code and remove the M104 and M190 codes that are always appearing before the custom G-code.

But now, I do this in my PrusaSlicer Custom G-code:

;-----------------------------------------
; Klipper Custom Start G-Code - START HERE
;-----------------------------------------
M104 S0
M140 S0
START_PRINT EXTRUDER_TEMP={first_layer_temperature[0]} BED_TEMP={first_layer_bed_temperature[0]} 
;-----------------------------------------
; Klipper Custom Start G-Code - END HERE
;-----------------------------------------

@besser
Copy link

besser commented Oct 20, 2021

Complementing what MrCroup said:

image

@bubnikv bubnikv changed the title Add the ability for custom gcode to recognize PRINT_START/START_PRINT macro Klipper firmware: Add the ability for custom gcode to recognize PRINT_START/START_PRINT macro Oct 23, 2021
@lukasmatena
Copy link
Collaborator

Setting temperatures automatically is optional since 2.6.0-alpha6. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants