Skip to content

Instantly share code, notes, and snippets.

@0xD34D
Created December 7, 2023 01:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xD34D/a701f82eca584204cf6107a2ed49908e to your computer and use it in GitHub Desktop.
Save 0xD34D/a701f82eca584204cf6107a2ed49908e to your computer and use it in GitHub Desktop.
e3v3se klipper print_start macro
[gcode_macro PRINT_START]
variable_parameter_EXTRUDER_TEMP: 200
variable_parameter_BED_TEMP: 60
gcode:
G28 ; home all axes
BED_MESH_CLEAR
PRTOUCH_PROBE_ZOFFSET APPLY_Z_ADJUST=1 CLEAR_NOZZLE=1
M106 S255
M104 S{params.EXTRUDER_TEMP} ; set extruder temp
M190 S{params.BED_TEMP} ; set bed temp and wait
M109 S{params.EXTRUDER_TEMP} ; set extruder temp and wait
G92 E0 ; Reset Extruder distance to 0
G1 E-3 ; Retracts filament to prevent blobs during probing
G92 E0 ; Reset Extruder distance to 0
BED_MESH_CALIBRATE
BED_MESH_PROFILE SAVE=KAMP
G4 S5; wait for heaters to recover
M106 S0
LINE_PURGE
@wrobelda
Copy link

wrobelda commented Apr 4, 2024

Mind sharing your LINE_PURGE macro, or its source?

@wrobelda
Copy link

wrobelda commented Apr 4, 2024

Oh, I see KAMP mentioned and just stumbled upon https://github.com/kyleisah/Klipper-Adaptive-Meshing-Purging . Is that it?

@0xD34D
Copy link
Author

0xD34D commented Apr 6, 2024

Oh, I see KAMP mentioned and just stumbled upon https://github.com/kyleisah/Klipper-Adaptive-Meshing-Purging . Is that it?

That's the one!

@wrobelda
Copy link

wrobelda commented Apr 6, 2024

Thanks! One more question, actually: why do you run PRTouch Probe before setting the bed temp? It defaults to 160 degrees so not only does it have to wait for the bed to cool down from a potentially previously run print and then back up again, but it doesn’t test the offset at a target print temp, so some additional, unaccounted for material expansion will inevitably happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment