v2.4: move macros to separate file

This commit is contained in:
Konstantin Koslowski 2021-09-22 10:00:46 +02:00
parent cad78f9f0c
commit df9a64bd29
2 changed files with 64 additions and 37 deletions

View file

@ -30,8 +30,6 @@ serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0030000E5053424E363620-if00
#restart_method: command
##--------------------------------------------------------------------
[include fluidd.cfg]
[printer]
kinematics: corexy
max_velocity: 300
@ -41,6 +39,20 @@ max_z_accel: 350
square_corner_velocity: 5.0
#####################################################################
# fluidd
#####################################################################
[include fluidd.cfg]
#####################################################################
# Macros
#####################################################################
[include macros.cfg]
#####################################################################
# X/Y Stepper Settings
#####################################################################
@ -431,41 +443,6 @@ gcode:
SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3
#####################################################################
# Macros
#####################################################################
[gcode_macro G32]
gcode:
BED_MESH_CLEAR
G28
QUAD_GANTRY_LEVEL
G28
G0 X150 Y150 Z30 F3600
[gcode_macro PRINT_START]
# Use PRINT_START for the slicer starting script - please customise for your slicer of choice
gcode:
G32 ; home all axes
G1 Z20 F3000 ; move nozzle away from bed
[gcode_macro PRINT_END]
# Use PRINT_END for the slicer ending script - please customise for your slicer of choice
gcode:
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder
G1 E-10.0 F3600 ; retract filament
G91 ; relative positioning
G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
TURN_OFF_HEATERS
M107 ; turn off fan
G1 Z2 F3000 ; move nozzle up 2mm
G90 ; absolute positioning
G0 X125 Y250 F3600 ; park nozzle at rear
BED_MESH_CLEAR
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#