forked from tyrscgm/Demon_KLIPPER_Essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemon_essentials_v1.2.cfg
216 lines (159 loc) · 7.05 KB
/
demon_essentials_v1.2.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
###################################################
#######>>>>>>>>>> 3DPrintDemon <<<<<<<<<<<#######
####### https://github.com/3DPrintDemon #######
# IF YOU USE & LIKE THESE MACROS PLEASE CONSIDER SUPPORTING MY EFFORTS AT
# https://ko-fi.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
# NOTE: This macro is by default set for DIRECT DRIVE extruders.
# For use with a bowden setup comment out the direct drive option & comment in the Bowden setup option below.
# 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 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 in the Console to save the new values or they will be lost!!
#Probe_Z_Calibrate
# This will automtically set the printer up for setting your Z offest
# It will home & start heating the printer for you & then bring up the calibration dialog window
# NOTE: You MUST use the SAVE_CONFIG command manually in the Console 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:
G28
M117 PRESSURE ADVANCE TEST MODE ACTIVE!
SET_HEATER_TEMPERATURE HEATER=extruder TARGET=160
SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=60
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500
TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005 # DIRECT DRIVE
# TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.020 # BOWDEN SETUP
G1 X0.5 Y0.5 Z10 F5000
[gcode_macro Stepper_Buzz_Cycle]
gcode:
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
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
# NOTE if you only have 4 drivers comment out the line below this with a "#" at the very start
STEPPER_BUZZ STEPPER=stepper_z1 # Comment out this line only
M117 CYCLE COMPLETE!
M118 CYCLE COMPLETE!
G4 P6000
M117
[gcode_macro PID_Tune_Mode_FULL]
gcode:
{% set noz_temp = params.NOZZLE_TARGET|default(200)|int %} #<<<<<<<<<<<<<<<<<<< Edit default nozzle test temp (200)
{% set bed_temp = params.BED_TARGET|default(60)|int %} #<<<<<<<<<<<<<<<<<<<< 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 %}
##################################################################
G90 # Use absoulte coordinates
M117 Hotend AND Bed PID Tune Mode! Long Test!
M118 Hotend AND Bed PID Tune Mode! Long Test!
{% if "xyz" not in printer.toolhead.homed_axes %}
G28
{% endif %}
M400
G0 X{x_park} Y{y_park} Z5 F9000 # Goes to center of the bed
M106 S155
M117 EXTRUDER PID TUNE! PLEASE WAIT!
M118 EXTRUDER PID TUNE! PLEASE WAIT!
PID_CALIBRATE HEATER=extruder TARGET={noz_temp}
M400
M106 S0
M117 EXTRUDER TEST END! DONT SAVE YET!!
M118 EXTRUDER TEST END! DONT SAVE YET!!
G4 P10000
G0 Z50 F9000
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
M117 HEAT BED TEST END!
M118 HEAT BED TEST END!
G4 P10000
M117 ALL TESTS COMPLETE! SAVE_CONFIG NOW!!
M118 ALL TESTS COMPLETE! SAVE_CONFIG NOW!!
[gcode_macro Probe_Z_Calibrate]
gcode:
{% set noz_temp = params.NOZZLE_TARGET|default(200)|int %} #<<<<<<<<<<<<<<<<<<< Edit default nozzle test temp (200)
{% set bed_temp = params.BED_TARGET|default(60)|int %} #<<<<<<<<<<<<<<<<<<<< Edit default bed test temp (60)
M117 PROBE Z CALIBRATE! PLEASE WAIT!
{% if "xyz" not in printer.toolhead.homed_axes %}
G28
{% endif %}
M117 HEATING PRINTER! PLEASE WAIT!
M109 S{noz_temp}
M190 S{bed_temp}
PROBE_CALIBRATE
[gcode_macro Auto_Shaper_X]
gcode:
G28
SHAPER_CALIBRATE AXIS=X
[gcode_macro Auto_Shaper_Y]
gcode:
G28
SHAPER_CALIBRATE AXIS=Y
[gcode_macro _DE_VERSION_VARIABLES]
variable_demon_essensials: 1.2
gcode: