flyinghappy

Start_Print Macro

Feb 14th, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. [gcode_macro START_PRINT]
  2. gcode:
  3. {% set BED_TEMP = params.BED_TEMP|default(60)|float %}
  4. {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
  5. # Start bed heating (but don't wait for it)
  6. M140 S{BED_TEMP}
  7. # Use absolute coordinates
  8. G90
  9. # Reset the G-Code Z offset (adjust Z offset if needed)
  10. SET_GCODE_OFFSET Z=0.0
  11. # Home the printer
  12. G28
  13. # Wait for bed to reach temperature
  14. M190 S{BED_TEMP}
  15. M104 S{EXTRUDER_TEMP}
  16. #Calibrate Adaptive Mesh
  17. #BED_MESH_CALIBRATE PROFILE="adaptive" ADAPTIVE=1
  18. BED_MESH_CALIBRATE ADAPTIVE=1
  19. BED_MESH_PROFILE SAVE=ADAPTIVE
  20. #Load Bed Mesh
  21. #BED_MESH_PROFILE LOAD="adaptive"
  22. # Move the nozzle near the bed
  23. #G1 Z5 F3000
  24. SMART_PARK
  25. # Set and wait for nozzle to reach temperature
  26. M109 S{EXTRUDER_TEMP}
  27. #Calibrate KAMP adaptive mesh
  28. #BED_MESH_CALIBRATE
  29. #Use the Voron Purge line from KAMP
  30. VORON_PURGE
  31.  
  32. # Move to purge line location
  33. #G1 X12 Y30 F3000
  34. # Move the nozzle very close to the bed
  35. #G1 Z0.25 F300
  36. #G1 Y150 E10 F1500 ; prime the nozzle
  37. #G1 X12.3 F5000
  38. #G92 E0
  39. #G1 Y30 E10 F1200 ; prime the nozzle
  40. #G92 E0
Tags: klipper
Advertisement
Add Comment
Please, Sign In to add comment