Guest User

v2.4 homing.cfg

a guest
Aug 31st, 2025
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. [quad_gantry_level]
  2. ## Gantry Corners for 350mm Build
  3. ## Uncomment for 350mm build
  4. gantry_corners:
  5. -60,-10
  6. 410,420
  7. ## Probe points
  8. points:
  9. 50,25
  10. 50,275
  11. 300,275
  12. 300,25
  13.  
  14. speed: 100
  15. horizontal_move_z: 10
  16. retries: 5
  17. retry_tolerance: 0.0075
  18. max_adjust: 10
  19.  
  20.  
  21. #####################################################################
  22. # A better print_start macro for v2/trident
  23. #####################################################################
  24.  
  25. ## *** THINGS TO UNCOMMENT: ***
  26. ## Bed mesh (2 lines at 2 locations)
  27. ## Nevermore (if you have one)
  28. ## Z_TILT_ADJUST (For Trident only)
  29. ## QUAD_GANTRY_LEVEL (For V2.4 only)
  30.  
  31. [gcode_macro PRINT_START]
  32. gcode:
  33. # This part fetches data from your slicer. Such as bed, extruder, and chamber temps and size of your printer.
  34. {% set target_bed = params.BED|int %}
  35. {% set target_extruder = params.EXTRUDER|int %}
  36. {% set target_chamber = params.CHAMBER|default("45")|int %}
  37. {% set x_wait = printer.toolhead.axis_maximum.x|float / 2 %}
  38. {% set y_wait = printer.toolhead.axis_maximum.y|float / 2 %}
  39.  
  40. SET_GCODE_OFFSET Z=0 # Set offset to 0
  41.  
  42. # Home the printer, set absolute positioning and update the Stealthburner LEDs.
  43. STATUS_HOMING # Set LEDs to homing-mode
  44. G28 # Full home (XYZ)
  45. G90 # Absolute position
  46.  
  47. ## Uncomment for bed mesh (1 of 2 for bed mesh)
  48. BED_MESH_CLEAR # Clear old saved bed mesh (if any)
  49.  
  50. # # Check if the bed temp is higher than 90c - if so then trigger a heatsoak.
  51. # {% if params.BED|int > 90 %}
  52. # SET_DISPLAY_TEXT MSG="Bed: {target_bed}c" # Display info on display
  53. # STATUS_HEATING # Set LEDs to heating-mode
  54. # M106 S255 # Turn on the PT-fan
  55.  
  56. # ## Uncomment if you have a Nevermore.
  57. # #SET_PIN PIN=nevermore VALUE=1 # Turn on the nevermore
  58.  
  59. # G1 X{x_wait} Y{y_wait} Z15 F9000 # Go to center of the bed
  60. # M190 S{target_bed} # Set the target temp for the bed
  61. # SET_DISPLAY_TEXT MSG="Heatsoak: {target_chamber}c" # Display info on display
  62. # # TEMPERATURE_WAIT SENSOR="temperature_sensor chamber" MINIMUM={target_chamber} # Waits for chamber temp
  63.  
  64. # # If the bed temp is not over 90c, then skip the heatsoak and just heat up to set temp with a 5 min soak
  65. # {% else %}
  66. # SET_DISPLAY_TEXT MSG="Bed: {target_bed}c" # Display info on display
  67. # STATUS_HEATING # Set LEDs to heating-mode
  68. # G1 X{x_wait} Y{y_wait} Z15 F9000 # Go to center of the bed
  69. # M190 S{target_bed} # Set the target temp for the bed
  70. # # SET_DISPLAY_TEXT MSG="Soak for 5 min" # Display info on display
  71. # # G4 P300000 # Wait 5 min for the bedtemp to stabilize
  72. # {% endif %}
  73.  
  74. # Heat hotend to 150c. This helps with getting a correct Z-home.
  75. SET_DISPLAY_TEXT MSG="Hotend: 150c" # Display info on display
  76. M190 S{target_bed}
  77. M109 S150 # Heat hotend to 150c
  78.  
  79. ## Uncomment for Trident (Z_TILT_ADJUST)
  80. #SET_DISPLAY_TEXT MSG="Leveling" # Display info on display
  81. #STATUS_LEVELING # Set LEDs to leveling-mode
  82. #Z_TILT_ADJUST # Level the printer via Z_TILT_ADJUST
  83. #G28 Z # Home Z again after Z_TILT_ADJUST
  84.  
  85. ## Uncomment for V2.4 (Quad gantry level AKA QGL)
  86. SET_DISPLAY_TEXT MSG="Leveling" # Display info on display
  87. STATUS_LEVELING # Set LEDs to leveling-mode
  88. QUAD_GANTRY_LEVEL # Level the printer via QGL
  89. G28 Z # Home Z again after QGL
  90.  
  91. ## Uncomment for bed mesh (2 of 2 for bed mesh)
  92. SET_DISPLAY_TEXT MSG="Bed mesh" # Display info on display
  93. STATUS_MESHING # Set LEDs to bed mesh-mode
  94. BED_MESH_CALIBRATE # Start the bed mesh (add ADAPTIVE=1) for adaptive bed mesh
  95.  
  96. CARTOGRAPHER_TOUCH # Calibrate z offset only with hot nozzle
  97.  
  98. # Heat up the hotend up to target via data from slicer
  99. SET_DISPLAY_TEXT MSG="Hotend: {target_extruder}c" # Display info on display
  100. STATUS_HEATING # Set LEDs to heating-mode
  101. G1 X{x_wait} Y{y_wait} Z15 F9000 # Go to center of the bed
  102. # M107 # Turn off partcooling fan
  103. M109 S{target_extruder} # Heat the hotend to set temp
  104.  
  105. # Get ready to print by doing a primeline and updating the LEDs
  106. SET_DISPLAY_TEXT MSG="Printer goes brr" # Display info on display
  107. STATUS_PRINTING # Set LEDs to printing-mode
  108. G0 X{x_wait - 50} Y4 F10000 # Go to starting point
  109. G0 Z0.4 # Raise Z to 0.4
  110. G91 # Incremental positioning
  111. G1 X100 E20 F1000 # Primeline
  112. G90 # Absolute position
Advertisement
Add Comment
Please, Sign In to add comment