Upload files to "klipper/DNV-TPU-Ender3/klipper_config/macros"
This commit is contained in:
20
klipper/DNV-TPU-Ender3/klipper_config/macros/startprint.cfg
Normal file
20
klipper/DNV-TPU-Ender3/klipper_config/macros/startprint.cfg
Normal file
@@ -0,0 +1,20 @@
|
||||
[gcode_macro START_PRINT]
|
||||
gcode:
|
||||
{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
|
||||
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
|
||||
# Start bed heating
|
||||
M140 S{BED_TEMP}
|
||||
# Use absolute coordinates
|
||||
G90
|
||||
# Reset the G-Code Z offset (adjust Z offset if needed)
|
||||
SET_GCODE_OFFSET Z=0.0
|
||||
# Home the printer
|
||||
G28
|
||||
# Move the nozzle near the bed
|
||||
G1 Z5 F3000
|
||||
# Move the nozzle very close to the bed
|
||||
G1 Z0.15 F300
|
||||
# Wait for bed to reach temperature
|
||||
M190 S{BED_TEMP}
|
||||
# Set and wait for nozzle to reach temperature
|
||||
M109 S{EXTRUDER_TEMP}
|
||||
Reference in New Issue
Block a user