forked from tyrscgm/Demon_KLIPPER_Essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemon_general_instructions_v1.3.txt
289 lines (195 loc) · 13.3 KB
/
demon_general_instructions_v1.3.txt
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
###################################################
#######>>>>>>>>>> 3DPrintDemon <<<<<<<<<<<#######
####### https://github.com/3DPrintDemon #######
# IF YOU USE & LIKE THESE MACROS PLEASE CONSIDER SUPPORTING MY EFFORTS AT
# https://ko-fi.com/3dprintdemon
########################## VERY IMPORTANT ###############################
#########################################################################
# FOR THIS TO WORK!!!
# YOU MUST DO THIS!!!
#########################################################################
# ADD THE 3 LINES BELOW TO PRUSASLICER'S START GCODE SECTION
#########################################################################
# M104 S0
# M140 S0
# print_start EXTRUDER=[first_layer_temperature[initial_extruder]] BED=[first_layer_bed_temperature] LAYER=[layer_height] FILAMENT=[filament_type] EXTRUSION=[external_perimeter_extrusion_width]
# #########################################################################
# IF YOU USE ORCA SLICER - you have extra features available to you!
# ADD THE 3 LINES BELOW TO ORCA SLICER'S START GCODE SECTION
#########################################################################
# M104 S0
# M140 S0
# PRINT_START EXTRUDER=[nozzle_temperature_initial_layer] BED=[hot_plate_temp_initial_layer] LAYER=[layer_height] FILAMENT=[filament_type] EXTRUSION=[outer_wall_line_width] EXCLUDE=[exclude_object]
#########################################################################
# ORCA SLICER ONLY!!
#########################################################################
# To enable Orca slicer only Adaptive Pressure Advance features paste the line below into the "Change extrusion role G-code" box near the bottom of the "Machine G-code" tab of your "Printer settings".
# Be sure to save your changes & then set "variable_orca_enable:" to "True" in the user_settings.cfg file.
# _ADAPTIVE_PA TYPE=[extrusion_role]
#########################################################################
# IF YOU USE CURA ADD THE 3 LINES BELOW TO CURA SLICER'S START GCODE SECTION
#########################################################################
# M109 S0
# M190 S0
# print_start EXTRUDER={material_print_temperature_layer_0} BED={material_bed_temperature_layer_0} LAYER={layer_height} FILAMENT={material_type} EXTRUSION={line_width}
#########################################################################
#########################################################################
# Also be sure to add the line below in your slicer's End G-Code box
# PRINT_END
#########################################################################
# BE SURE TO DELETE THE HASH "#" AT THE LINE START IN YOUR SLICER OR IT WONT WORK
# Your slicer's Start G-Code box most only contain those 3 lines above, plus the Mainsail layer count command - see mailsail website, slicer.
# Your slicer's End G-Code box must only contain that line above
# https://docs.mainsail.xyz/overview/slicer
#########################################################################
This macro relies on you setting the correct filament type in your slicer! BE SURE YOU DO THIS! OR IT WILL NOT WORK!!
#########################################################################
IMPORTANT!!!!!
#########################################################################
You must [include] all Demon .cfg files in your printer.cfg file for this pack to work! The versions must also meet the currently expected versions, and yes the macros will check!
Create a new folder in Mainsail & call it Demon_KLIPPER_Essentials
Then in your printer.cfg paste in [include ./Demon_KLIPPER_Essentials/*.cfg]
That will automatically include all files in that folder with .cfg
NOTE: this will also include ANY old files already there if you dont delete them on an future update.
It just lets you include all files automatically.
Or you can use ssh...
cd /home/pi/printer_data/config
NOTE: the above command is for a real Rasberry Pi, if you're using a cloned system that "/pi" folder will change to mks or btt or similar.
git clone https://github.com/3DPrintDemon/Demon_KLIPPER_Essentials.git
Then, paste into your printer.cfg
[include ./Demon_KLIPPER_Essentials/*.cfg]
This will bring these files into your system, be sure to comment out & NOT delete your current START & END PRINT Macros just yet!
#########################################################################
Don't Miss this....
Make sure you download install these files they are REQUIRED for these macros to work correctly.
https://github.com/3DPrintDemon/Non_Blocking_Wait_Sovol/releases/tag/Heat_Soak_Timers_V1.0
#########################################################################
READ THIS PAGE
https://github.com/3DPrintDemon/Demon_KLIPPER_Essentials/releases
For more cool stuff visit...
https://github.com/3DPrintDemon
AUTO POWER ON/OFF BUTTON & REMOTE POWER CONTROL
https://github.com/3DPrintDemon/BTT-Relay-v1.2-Moonraker_INSTANT_Power-On-Button
AUTOMATIC ONLINE PRINTER FILES BACKUP
https://github.com/3DPrintDemon/Auto_Backup_Your_Klipper_Printer
#########################################################################
The _RET_CALI_START macro is used when calibrating your retraction settings with files generated at:
http://www.retractioncalibration.com/
All you need do is paste _RET_CALI_START into the website's "Custom Gcode" box next to the green "Generate Gcode" button This is without a doubt the absolute BEST retraction test out there!
#########################################################################
##################################################################################################################################################
## NOTE: THIS FEATURE DOES NOT WORK ON THE SOVOL'S OWN BRAND SV06/+/SV07/+ KLIPPERSCREEN as it is not possible to edit the home screen on their device.
## Works on other Klipper systems!
##################################################################################################################################################
NEW CUSTOM MENU!
Copy & paste these lines to your Klipperscreen.conf file, it will give you a new filament handling menu for the included macros...
NOTE: You'll need to restart Klipperscreen service for the changes to take effect. Use power menu top right of Mainsail
[menu __main custom]
name: Prepare
icon: klipper
[menu __main custom ready_up_pla]
name: Ready Up PLA
icon: filament
method: printer.gcode.script
params: {"script":"ready_up_pla"}
[menu __main custom ready_up_asa]
name: Ready Up ASA
icon: filament
method: printer.gcode.script
params: {"script":"ready_up_asa"}
[menu __main custom ready_up_petg]
name: Ready Up petg
icon: filament
method: printer.gcode.script
params: {"script":"ready_up_PETG"}
[menu __main custom ready_to_load_unload]
name: Ready to Load Unload
icon: filament
method: printer.gcode.script
params: {"script":"ready_to_load_unload"}
##################################################################################################################################################
If you use a filament runout sensor copy this to your printer.cfg file...
########################################
# FILAMENT RUNOUT
########################################
[filament_switch_sensor filament_sensor]
switch_pin: ### #<<<<<< INSERT OWN PIN SV07/+ USE "PD11" OR SV06/+ USE "PA4"
pause_on_runout: True
insert_gcode:
{ action_respond_info("Insert Detected") }
runout_gcode:
{ action_respond_info("Runout Detected") }
##################################################################################################################################################
Be sure to [include mainsail.cfg] in your printer.cfg & then copy & paste the _ClIENT_VARIABLE macro below into your macros.cfg file to enable required system variables...
MAKE SURE YOU EDIT THEM CORRECTLY FOR YOUR OWN PRINTER!!!!!
##################################################################################################################################################
# Client variable macro for your printer.cfg
[gcode_macro _CLIENT_VARIABLE]
variable_use_custom_pos : False ; use custom park coordinates for x,y [True/False]
variable_custom_park_x : 5.0 ; custom x position; value must be within your defined min and max of X
variable_custom_park_y : 210.0 ; custom y position; value must be within your defined min and max of Y
variable_custom_park_dz : 2.0 ; custom dz value; the value in mm to lift the nozzle when move to park position
variable_retract : 1.0 ; the value to retract while PAUSE
variable_cancel_retract : 5.0 ; the value to retract while CANCEL_PRINT
variable_speed_retract : 35.0 ; retract speed in mm/s
variable_unretract : 1.0 ; the value to unretract while RESUME
variable_speed_unretract : 35.0 ; unretract speed in mm/s
variable_speed_hop : 15.0 ; z move speed in mm/s
variable_speed_move : 100.0 ; move speed in mm/s
variable_park_at_cancel : False ; allow to move the toolhead to park while execute CANCEL_PRINT [True/False]
variable_park_at_cancel_x : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
variable_park_at_cancel_y : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
# !!! Caution [firmware_retraction] must be defined in the printer.cfg if you set use_fw_retract: True !!!
variable_use_fw_retract : False ; use fw_retraction instead of the manual version [True/False]
variable_idle_timeout : 0 ; time in sec until idle_timeout kicks in. Value 0 means that no value will be set or restored
variable_runout_sensor : "" ; If a sensor is defined, it will be used to cancel the execution of RESUME in case no filament is detected.
# Specify the config name of the runout sensor e.g "filament_switch_sensor runout". Hint use the same as in your printer.cfg
# !!! Custom macros, please use with care and review the section of the corresponding macro.
# These macros are for simple operations like setting a status LED. Please make sure your macro does not interfere with the basic macro functions.
# Only single line commands are supported, please create a macro if you need more than one command.
variable_user_pause_macro : "" ; Everything insight the "" will be executed after the klipper base pause (PAUSE_BASE) function
variable_user_resume_macro: "" ; Everything insight the "" will be executed before the klipper base resume (RESUME_BASE) function
variable_user_cancel_macro: "" ; Everything insight the "" will be executed before the klipper base cancel (CANCEL_PRINT_BASE) function
gcode:
#########################################################################
For more cool stuff visit...
https://github.com/3DPrintDemon
#########################################################################
BEFORE FIRST USE
#########################################################################
CHECK YOUR VALUES ARE CORRECT BEFORE USE, THIS IS VITAL & TOTALLY ON YOU!
DO NOT BLINDLY USE ANY OF THESE DEFAULT VALUES!!
USE THESE MACROS AT YOUR OWN RISK!
DON'T CRY TO ME IF YOU DIDN'T CHECK/CHANGE VALUES & YOU BREAK THINGS!
>>>>>>>>>>>>>>>>>>>>>>>>>!!WARNING!!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
THIS START CODE USES RELATIVE EXTRUSION!! SET IT IN YOUR SLICER!
################ IMPORTANT!!! BUILD NEW BED MESHES WITH THE BED AT THE TEMPS YOU PRINT AT FOR EACH TYPE OF FILAMENT LIST BELOW! ###################
##################################### ALLOW TO HEAT SOAK 10-15 MINUTES THEN HOME BEFORE BUILDING MESH!! ###########################################
########################################### BUILD & STORE 5 MESHES TOTAL INCLUDING YOUR DEFAULT ##################################################
################################################ DO NOT OVERWRITE YOUR "DEFAULT" MESH!!! ##########################################################
default (to use with PLA)
ASA
ABS
PETG
TPU
###################################################
#######>>>>>>>>>> 3DPrintDemon <<<<<<<<<<<#######
####### https://github.com/3DPrintDemon #######
# IF YOU USE & LIKE THESE MACROS PLEASE CONSIDER SUPPORTING MY EFFORTS AT
# https://ko-fi.com/3dprintdemon
##################################################################################################################################################
SV07/+ & SV06/+ Owners with the new Sovol Klipper screens YOU NEED TO DO THIS.....!
##################################################################################################################################################
Go into your printer.cfg
Now comment out the Sovol macros in the printer.cfg
• [gcode_macro CANCEL_PRINT]
• [gcode_macro START_PRINT]
• [gcode_macro PAUSE]
• [gcode_macro RESUME]
• [gcode_macro PRINT_END]
• [gcode_macro PRINT_START]
Be sure to get them all! Dont worry you wont need them.
NOTE: If you have a PLUS size printer you can change the variable_custom_park_y to read 290 instead of 210
NOTE: You will probably see some weird errors due to the customised Sovol Klipper code that's being used on these systems about "no attributes for 'bed'" & "must home axis first".
This is normal & to be expected for this non-standard Klipper build being used & has been reported to Sovol. These errors should not cause problems as my own SV07+ machine does both yet my other 4 machines on regular unedited main branch Klipper are perfectly fine WITH NO ERRORS!
Happy printing!!