mirror of
https://github.com/DBarwikowski-3DPrints/Demon_Klipper_Essentials_Unified_Sovol_SV08.git
synced 2026-10-19 01:59:48 -05:00
310 lines
9.1 KiB
INI
310 lines
9.1 KiB
INI
|
|
###################################################
|
|
#######>>>>>>>>>> 3DPrintDemon <<<<<<<<<<<#######
|
|
####### https://github.com/3DPrintDemon #######
|
|
|
|
# IF YOU USE & LIKE THESE MACROS PLEASE CONSIDER SUPPORTING MY EFFORTS AT
|
|
# https://www.buymeacoffee.com/3dprintdemon
|
|
|
|
# Heres some super basic but quality of life improving macros for your Klipper printer from your friendly 3DPrintDemon!
|
|
# www.3dprintdemon.com
|
|
|
|
# they're ideal if you're just starting out or just hate typing console commands!
|
|
# If you have Klipperscreen some of these functions will be included there, so you can either delete or comment out the ones you dont want here.
|
|
# Or you can simply hide the macros you dont want in the Macros browser interface settings window.
|
|
|
|
|
|
|
|
# !!!!!IMPORTANT!!!!!
|
|
|
|
# To get this to work copy & paste the line directly below into your printer.cfg file & save....
|
|
# [include demon_essentials.cfg]
|
|
# NOTE: remove the "#" at the beginning to enable the line once it is pasted into your printer.cfg file
|
|
|
|
|
|
|
|
# Pressure_Advance_Test_Mode
|
|
# Automatically sets the printer up ready to calibrate your pressure advance.
|
|
# Hit this macro then print the file linked here: https://www.klipper3d.org/prints/square_tower.stl
|
|
# further reference to work out your resut here: https://www.klipper3d.org/Pressure_Advance.html
|
|
|
|
# NOTE: Pressure Advance must be enabled in your system's Extruder section
|
|
|
|
|
|
|
|
# Stepper_Buzz_Cycle
|
|
# Will give you a guided test of all your motors by buzzing them 1mm to the positive side then back again, if any go negative (to home) then reverse
|
|
# their direction by placing a "!" in front of the "Dir" pin for that stepper.
|
|
# watch the status window for messages & countdown to which stepper is up next!
|
|
|
|
# NOTE: If you only have 4 drivers on your system you will need to comment out the line to test stepper_z1
|
|
# NOTE: It will NOT test your Extruder - you will have to do that manually
|
|
# Use "STEPPER_BUZZ STEPPER=extruder" & be sure to have the nozzle hot for this!
|
|
|
|
|
|
|
|
# Printer_PID_Tune
|
|
# This will setup & run a full PID tune on your printer with a single click of the macro button.
|
|
# It will home your printer, raise the nozzle 50mm, start the parts cooling fan to 50% & heat the printer to full printing temperature.
|
|
# Then it will run the hotend PID tune test. Once compteted it shut off the parts cooling fan & start the Bed PID tune.
|
|
|
|
# NOTE: The FULL hotend & bed PID tune takes a long time! Please wait for it to complete, messages will keep you informed of the systems progress!
|
|
# NOTE: You MUST use the SAVE_CONFIG command manually after both tests have completed in the Console or the button at the top of the browser window to save the new values or they will be lost!!
|
|
|
|
|
|
|
|
# Auto_Shaper_X
|
|
# This will run the input shaping auto calibration of the X axis
|
|
|
|
|
|
|
|
# Auto_Shaper_Y
|
|
# This will run the input shaping auto calibration of the Y axis
|
|
|
|
|
|
|
|
[gcode_macro Pressure_Advance_Test_Mode]
|
|
gcode:
|
|
{% set start_vars = printer["gcode_macro _START_VARIABLES"] %}
|
|
|
|
_CONDITIONAL_HOME
|
|
|
|
M117 PRESSURE ADVANCE TEST MODE ACTIVE!
|
|
M118 PRESSURE ADVANCE TEST MODE ACTIVE!
|
|
|
|
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500
|
|
TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005 # DIRECT DRIVE
|
|
|
|
SET_DISPLAY_TEXT MSG="The pressure_advance value can then be calculated as pressure_advance = <start> + <measured_height> * <factor>. (For example, 0 + 12.90 * .005 would be .258.)"
|
|
RESPOND TYPE=echo MSG="The pressure_advance value can then be calculated as pressure_advance = <start> + <measured_height> * <factor>. (For example, 0 + 12.90 * .005 would be .258.)"
|
|
|
|
|
|
|
|
[gcode_macro Stepper_Buzz_Cycle]
|
|
gcode:
|
|
{% set start_vars = printer["gcode_macro _START_VARIABLES"] %}
|
|
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_BUSY
|
|
{% endif %}
|
|
|
|
M117 Stepper X Buzz Cycle in 10 Seconds!
|
|
M118 Stepper X Buzz Cycle in 10 Seconds!
|
|
G4 P5000
|
|
M117 5 Seconds!
|
|
M118 5 Seconds!
|
|
G4 P3000
|
|
M117 Stepper X! READY GO!
|
|
M118 Stepper X! READY GO!
|
|
G4 P2000
|
|
STEPPER_BUZZ STEPPER=stepper_x
|
|
|
|
M400
|
|
M117 Stepper Y Buzz Cycle in 10 Seconds
|
|
M118 Stepper Y Buzz Cycle in 10 Seconds
|
|
G4 P5000
|
|
M117 5 Seconds!
|
|
M118 5 Seconds!
|
|
G4 P3000
|
|
M117 Stepper Y! READY GO!
|
|
M118 Stepper Y! READY GO!
|
|
G4 P2000
|
|
STEPPER_BUZZ STEPPER=stepper_y
|
|
|
|
M400
|
|
M117 Stepper Z Buzz Cycle in 10 Seconds
|
|
M118 Stepper Z Buzz Cycle in 10 Seconds
|
|
G4 P5000
|
|
M117 5 Seconds!
|
|
M118 5 Seconds!
|
|
G4 P3000
|
|
M117 Stepper Z! READY GO!
|
|
M118 Stepper Z! READY GO!
|
|
G4 P2000
|
|
STEPPER_BUZZ STEPPER=stepper_z
|
|
|
|
{% if ('stepper_z1' in printer.configfile.config) %}
|
|
M400
|
|
M117 Stepper Z1 Buzz Cycle in 10 Seconds
|
|
M118 Stepper Z1 Buzz Cycle in 10 Seconds
|
|
G4 P5000
|
|
M117 5 Seconds!
|
|
M118 5 Seconds!
|
|
G4 P3000
|
|
M117 Stepper Z1! READY GO!
|
|
M118 Stepper Z1! READY GO!
|
|
G4 P2000
|
|
STEPPER_BUZZ STEPPER=stepper_z1
|
|
{% endif %}
|
|
|
|
{% if ('stepper_z2' in printer.configfile.config) %}
|
|
M400
|
|
M117 Stepper Z2 Buzz Cycle in 10 Seconds
|
|
M118 Stepper Z2 Buzz Cycle in 10 Seconds
|
|
G4 P5000
|
|
M117 5 Seconds!
|
|
M118 5 Seconds!
|
|
G4 P3000
|
|
M117 Stepper Z2! READY GO!
|
|
M118 Stepper Z2! READY GO!
|
|
G4 P2000
|
|
STEPPER_BUZZ STEPPER=stepper_z2
|
|
{% endif %}
|
|
|
|
{% if ('stepper_z3' in printer.configfile.config) %}
|
|
M400
|
|
M117 Stepper Z3 Buzz Cycle in 10 Seconds
|
|
M118 Stepper Z2 Buzz Cycle in 10 Seconds
|
|
G4 P5000
|
|
M117 5 Seconds!
|
|
M118 5 Seconds!
|
|
G4 P3000
|
|
M117 Stepper Z3! READY GO!
|
|
M118 Stepper Z3! READY GO!
|
|
G4 P2000
|
|
STEPPER_BUZZ STEPPER=stepper_z3
|
|
{% endif %}
|
|
|
|
M117 CYCLE COMPLETE!
|
|
M118 CYCLE COMPLETE!
|
|
G4 P6000
|
|
M117
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_READY
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
[gcode_macro PID_Tune_Mode_FULL]
|
|
gcode:
|
|
{% set start_vars = printer["gcode_macro _START_VARIABLES"] %}
|
|
{% set noz_temp = params.NOZZLE_TARGET|default(200)|float %} #<<<<<<<<<<<<<<<<<<< Edit default nozzle test temp (200)
|
|
{% set bed_temp = params.BED_TARGET|default(60)|float %} #<<<<<<<<<<<<<<<<<<<< Edit default bed test temp (60)
|
|
{% set x_park = printer.toolhead.axis_maximum.x|float / 2 %}
|
|
{% set y_park = printer.toolhead.axis_maximum.y|float / 2 %}
|
|
|
|
##################################################################
|
|
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_BUSY
|
|
{% endif %}
|
|
|
|
G90 # Use absoulte coordinates
|
|
|
|
M117 Hotend AND Bed PID Tune Mode! Long Test!
|
|
M118 Hotend AND Bed PID Tune Mode! Long Test!
|
|
|
|
_CONDITIONAL_HOME
|
|
|
|
M400
|
|
G0 X{x_park} Y{y_park} Z5 F9000 # Goes to center of the bed
|
|
M106 S155
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_HEATING
|
|
{% endif %}
|
|
|
|
M117 EXTRUDER PID TUNE! PLEASE WAIT!
|
|
M118 EXTRUDER PID TUNE! PLEASE WAIT!
|
|
PID_CALIBRATE HEATER=extruder TARGET={noz_temp}
|
|
M400
|
|
M106 S0
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_BUSY
|
|
{% endif %}
|
|
|
|
M117 EXTRUDER TEST END! DONT SAVE YET!!
|
|
M118 EXTRUDER TEST END! DONT SAVE YET!!
|
|
G4 P10000
|
|
G0 Z50 F9000
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_HEATING
|
|
{% endif %}
|
|
|
|
M117 HEAT BED PID TUNE! LONG TEST PLEASE WAIT!
|
|
M118 HEAT BED PID TUNE! LONG TEST PLEASE WAIT!
|
|
PID_CALIBRATE HEATER=heater_bed TARGET={bed_temp}
|
|
M400
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_BUSY
|
|
{% endif %}
|
|
|
|
M117 HEAT BED TEST END!
|
|
M118 HEAT BED TEST END!
|
|
G4 P10000
|
|
|
|
M400
|
|
SET_DISPLAY_TEXT MSG="SAVING CONFIG PLEASE WAIT..."
|
|
RESPOND TYPE=echo MSG="SAVING CONFIG PLEASE WAIT..."
|
|
G4 P5000
|
|
SAVE_CONFIG
|
|
|
|
|
|
|
|
|
|
|
|
[gcode_macro Auto_Shaper_Calibrate]
|
|
gcode:
|
|
{% set start_vars = printer["gcode_macro _START_VARIABLES"] %}
|
|
|
|
##################################################################
|
|
|
|
_CONDITIONAL_HOME
|
|
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_BUSY
|
|
{% endif %}
|
|
|
|
_Z_PARK # Goes to center of the bed
|
|
SHAPER_CALIBRATE
|
|
|
|
|
|
|
|
|
|
[gcode_macro Resonance_Test_X]
|
|
gcode:
|
|
{% set start_vars = printer["gcode_macro _START_VARIABLES"] %}
|
|
_CONDITIONAL_HOME
|
|
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_BUSY
|
|
{% endif %}
|
|
|
|
M117 Testing X axis please wait...
|
|
TEST_RESONANCES AXIS=X
|
|
M117
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_READY
|
|
{% endif %}
|
|
|
|
M118 To build graph paste this message into your SSH terminal ............................................ ~/klipper/scripts/calibrate_shaper.py /tmp/resonances_x_*.csv -o /tmp/shaper_calibrate_x.png
|
|
|
|
[gcode_macro Resonance_Test_Y]
|
|
gcode:
|
|
{% set start_vars = printer["gcode_macro _START_VARIABLES"] %}
|
|
_CONDITIONAL_HOME
|
|
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_BUSY
|
|
{% endif %}
|
|
|
|
M117 Testing Y axis please wait...
|
|
TEST_RESONANCES AXIS=Y
|
|
M117
|
|
{% if start_vars.neopixel_led == True %}
|
|
STATUS_READY
|
|
{% endif %}
|
|
|
|
M118 To build graph paste this message into your SSH terminal ............................................ ~/klipper/scripts/calibrate_shaper.py /tmp/resonances_y_*.csv -o /tmp/shaper_calibrate_y.png
|
|
|
|
|
|
|
|
[gcode_macro _SETUP_HELPERS_VERSION]
|
|
variable_demon_setup: 1.4
|
|
gcode:
|
|
|
|
|
|
|
|
|
|
|