Last active
May 25, 2023 01:36
-
-
Save justheath/a41e43ac8d128cd0f010c4f39c45a3bb to your computer and use it in GitHub Desktop.
Start / End Gcode for Slicer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: variables used below should be same as those in the [START/END]_PRINT macros. | |
#### CURA Start and End G-code for use with Klipper | |
# Start G-Code | |
# Pass the filament's temperature values | |
SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=bed_temp VALUE={material_bed_temperature_layer_0} | |
SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=extruder_temp VALUE={material_print_temperature_layer_0} | |
# calls the Klipper macro to prepare extruder and bed | |
START_PRINT | |
# End G-Code | |
# use machine_depth to move bed to front to "present" the completed print | |
SET_GCODE_VARIABLE MACRO=END_PRINT VARIABLE=machine_depth VALUE={machine_depth} | |
# calls the Klipper macro to shut things down and cool off | |
END_PRINT | |
#### PRUSASLICER version for use with Klipper | |
# Start G-code | |
SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=bed_temp VALUE=[first_layer_bed_temperature] | |
SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=extruder_temp VALUE=[first_layer_temperature] | |
START_PRINT | |
# End G-code | |
SET_GCODE_VARIABLE MACRO=END_PRINT VARIABLE=machine_depth VALUE=235 | |
END_PRINT |
Updated to match what I'm currently using in PrusaSlicer
I updated it with my current Prusa Slicer configuration.
Heath
…On Sun, Sep 11, 2022 at 7:07 AM Fradanren39 ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
Hi,
does it also work with prusa slicer?
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/a41e43ac8d128cd0f010c4f39c45a3bb#gistcomment-4297157>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEFMD22DZKLTIXX6SUHGS73V5XDRRANCNFSM6AAAAAAQJYBNAQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
does it also work with prusa slicer?