print_start.cfg modified - 07/06/2025 - 01:54:13 PM

This commit is contained in:
macocha 2025-07-06 13:54:15 +00:00
parent 9a0ecc4935
commit e2d183394e

View file

@ -24,6 +24,18 @@
# STATUS_HEATING # STATUS_HEATING
# M109 S{extrudertemp} # M109 S{extrudertemp}
# STATUS_READY
# STATUS_OFF
# STATUS_BUSY
# STATUS_HEATING
# STATUS_LEVELING
# STATUS_HOMING
# STATUS_CLEANING
# STATUS_MESHING
# STATUS_CALIBRATING_Z
[gcode_macro PRINT_START] [gcode_macro PRINT_START]
gcode: gcode:
{% set target_bed = params.BED|int %} {% set target_bed = params.BED|int %}
@ -34,14 +46,6 @@ gcode:
RESPOND PREFIX="PRINT_START: " MSG="Starting the print..." RESPOND PREFIX="PRINT_START: " MSG="Starting the print..."
# Home the printer, set absolute positioning and update the Stealthburner LEDs.
BED_MESH_CLEAR # Clear old saved bed mesh (if any)
RESPOND PREFIX="PRINT_START: " MSG="Homing all axes"
LED_STATUS_HOMING # Set LEDs to homing-mode
G28 # Full home (XYZ)
G90 # Absolute position
# Check if the bed temp is higher than 90c - if so then trigger a heatsoak. # Check if the bed temp is higher than 90c - if so then trigger a heatsoak.
{% if target_bed > 90 %} {% if target_bed > 90 %}
# TODO! # TODO!
@ -67,24 +71,34 @@ gcode:
# G4 P300000 # Wait 5 min for the bedtemp to stabilize # G4 P300000 # Wait 5 min for the bedtemp to stabilize
{% endif %} {% endif %}
# QGL & Meshing #
# All the calibration bits: Homing & QGL & Meshing
#
RESPOND PREFIX="PRINT_START: " MSG="Heating hotend (for calibration) to: 140c" RESPOND PREFIX="PRINT_START: " MSG="Heating hotend (for calibration) to: 140c"
LED_STATUS_HEATING # Set LEDs to heating-mode LED_STATUS_HEATING # Set LEDs to heating-mode
M109 S140 # Heat hotend to 150c M109 S140 # Heat hotend to 140c
# Home the printer, set absolute positioning and update the Stealthburner LEDs.
BED_MESH_CLEAR # Clear old saved bed mesh (if any)
RESPOND PREFIX="PRINT_START: " MSG="Homing all axes"
LED_STATUS_HOMING # Set LEDs to homing-mode
G28 # Full home (XYZ)
G90 # Absolute position
RESPOND PREFIX="PRINT_START: " MSG="Performing QGL" RESPOND PREFIX="PRINT_START: " MSG="Performing QGL"
LED_STATUS_LEVELING # Set LEDs to leveling-mode LED_STATUS_LEVELING # Set LEDs to leveling-mode
QUAD_GANTRY_LEVEL # Level the printer via QGL QUAD_GANTRY_LEVEL # Level the printer via QGL
G28 Z # Home Z again after QGL G28 Z # Home Z again after QGL
#SET_DISPLAY_TEXT MSG="Bed mesh" # Display info on display #RESPOND PREFIX="PRINT_START: " MSG="Creating bed mesh" # Display info on display
#STATUS_MESHING # Set LEDs to bed mesh-mode #LED_STATUS_MESHING # Set LEDs to bed mesh-mode
#BED_MESH_CALIBRATE # Start the bed mesh (add ADAPTIVE=1) for adaptive bed mesh #BED_MESH_CALIBRATE # Start the bed mesh (add ADAPTIVE=1) for adaptive bed mesh
G1 X{x_wait} Y{y_wait} Z20 F9000 # Go to center of the bed
# Heat to target temp # Heat to target temp
RESPOND PREFIX="PRINT_START: " MSG="Heating hotend (for first layer) to: {target_extruder}c" RESPOND PREFIX="PRINT_START: " MSG="Heating hotend (for first layer) to: {target_extruder}c"
LED_STATUS_HEATING # Set LEDs to heating-mode LED_STATUS_HEATING # Set LEDs to heating-mode
G1 X{x_wait} Y{y_wait} Z15 F9000 # Go to center of the bed
M107 # Turn off partcooling fan M107 # Turn off partcooling fan
M109 S{target_extruder} # Heat the hotend to set temp M109 S{target_extruder} # Heat the hotend to set temp