-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter_variable.cfg
217 lines (206 loc) · 14.1 KB
/
printer_variable.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
217
#############################
# Printer Variables #
#############################
[gcode_macro _PRINTER_VARIABLE]
description: Helper: Contains defined printer specific variables
##### Display info #####
variable_display: {
"bootsplash": "__voron_bootsplash", # [none|__voron_bootsplash] which bootsplash to use
"chamber_icon": "chamber", # [chamber|chamberv0|chambervt|chamberv2] which icon to use for chamber (only shows if you have a chamber thermistor)
"group": "__voron_display", # [none|__voron_display] which display layout to use, none will be default layout
"icon": "voron_heart", # [voron|voron_heart|ercf_carrot] used to show a icon if available on the display
"name": "V2.4 1755", # printer name shown on the display
"printing_message": "Printing" # Set a suitable message if you want to spice it up
}
##### Homing #####
variable_homing: {
"home_accel": 1200, # reduced ACCEL for homing (Default: 1200)
"z_home_current": 0.3, # reduced homing current for z (Default: 0.3)
"home_print_end": "X" # What axis to home on print_end. Can be X, XY or Y. (Default: X)
}
##### Parking #####
variable_parking: {
"border_delta": 20, # Min distance to keep from min/max X/Y (Default: 20)
"speed": 300, # Speed for X/Y moves while parking (Default: 300mm/s)
"z_speed": 40, # Speed for Z moves while parking (Default: 15mm/s)
"wipe_out": 3, # Distance to move X/Y after z-hopping off the print, wipe to break string (Default: 3)
"z_max_delta": 40, # Min distance to keep from max z, in case you mount anything there (Default: 40)
"z_min_delta": 30 # Min distance to keep above bed (Default: 30)
}
##### Extruder #####
variable_extruder: {
"end_retract_distance": 10, # Length to retract on print end in mm (Default: 10)
"end_retract_speed": 15, # retraction speed in mm/s (end) (Default: 5)
"load_distance": 84, # Distance to load filament fast with LOAD_FILAMENT (Default: 45) (70mm for cw2+rapido 84mm for g2+rapido)
"load_extrude": 50, # Distance to extrude filament slowly to get rid of old color with LOAD_FILAMENT (Default: 50)
"pause_temp": 150, # Temperature to lower the hotend to while heatsoaking/paused (Default: 150)
"pause_retract_distance": 3, # Length to retract when pausing in mm (Default: 3)
"retract_speed": 15, # Retraction speed in mm/s (pause) (Default: 15)
"unretract_speed": 4, # Unretraction speed in mm/s (start/resume) (Default: 5)
"unretract_start": 8.5 # Length to unretract on print start in mm (Default: 9)
}
##### Heating, filtration and cooldown #####
variable_preheat_filtration_cooldown: {
"preheat_min_soak_time": 5, # Minimum time for the bed to stay hot before printing can start in minutes (Default: 5)
"part_fan_speed": 1.0, # Fanspeed of the part cooling fan during heatsoak/printing (Default: 1.0)
"nevermore_speed": 1.0, # Fanspeed of the nevermore during heatsoak/printing (Default: 0.4)
"bed_fans_speed": 1.0, # Fanspeed of the bed fans during heatsoak/printing. (Default: 0.8)
"exhaust_speed": 0.1, # Fanspeed of the exhaust during heatsoak/printing (Default: 0.1)
"cooldown_bed_temperature": 60, # What temperature to run the nevermore/exhaust until (Default: 80)
"nevermore_cooldown_speed": 1.0, # Fanspeed of the nevermore during cooldown (Default: 0.65)
"bed_fans_cooldown_speed": 0.5, # Fanspeed of the bed fans during cooldown (Default: 0.5)
"exhaust_cooldown_speed": 0.3 # Fanspeed of the exhaust during cooldown (Default: 0.2)
}
##### Filaments #####
variable_filament: {
"cooling_moves": 5, # TODO: Description (Default: 5)
"cooling_tube_length": 15, # TODO: Description Dragon ST: 15, Dragon HF: 10, Mosquito: 20 Dragonfly: ?? (Default: 15)
"cooling_tube_retraction": 35, # TODO: Description Dragon ST: 35, Dragon HF: 30, Mosquito: 38 Dragonfly: ?? (Default: 35)
"cooling_zone_pause": 0, # TODO: Description 0 by default. in ms. 400 let's it cool longer before entering gears. Needed? maybe not. (Default: 0)
"dip_extraction_speed": 60, # TODO: Description 70 by default. 50 works better on v0. (Default: 60)
"dip_insertion_speed": 33, # TODO: Description (Default: 33)
"final_cooling_speed": 50, # TODO: Description (Default: 50)
"initial_cooling_speed": 10, # TODO: Description (Default: 15)
"load_distance": 45, # load distance while loading filament (Default: 45) @DEV: This is not used currently
"load_extrude": 50, # extrude distance while loading filament (Default: 50) @DEV: This is not used currently
"ramming_volume": 15, # TODO: Description 0 by default. is in mm3. Trying 15. No idea if it has any impact. (Default: 15)
"skinnydip_distance": 26, # TODO: Description (Default: 26)
"unload_distance": 84, # unload distance while unloading filament (Default: 70)
"unloading_speed_extrude_flex_nylon": 0.83, # TODO: Description (Default: 0.83)
"unloading_speed_extrude": 4.16, # TODO: Description (Default: 4.16)
"unloading_speed_start": 60, # TODO: Description 199 by default, too high. Lowered to 40 for v0. Unknown on v2, as 199 kinda worked. (Default: 60)
"unloading_speed": 20, # TODO: Description 20 by default (Default: 20)
"use_skinnydip": 1 # TODO: Description (Default: 1)
}
## Temperatures to load/unload different filament types with. ('Filament_type', unload_temperature, load_temperature)
variable_filament_temperature_array: [('NONE', 0, 0), ('PLA', 195, 210), ('ABS', 220, 240), ('PET', 215, 250), ('FLEX', 215, 230), ('ASA', 220, 250), ('NYLON', 260, 280), ('PC', 280, 280)]
##### Neopixel #####
variable_neopixel_leds: {
'case': { # Case
'name': 'case_lights',
'index': "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19",
"states": {
"on": {"r": 1.0, "g": 0.0, "b": 0.0, "w": 0.0},
"printing": {"r": 1.0, "g": 1.0, "b": 1.0, "w": 0.0},
"homing": {"r": 0.0, "g": 0.6, "b": 0.2, "w": 0.0},
"heating": {"r": 0.3, "g": 0.18, "b": 0.0, "w": 0.0},
"calibrate_qgl": {"r": 0.5, "g": 0.1, "b": 0.4, "w": 0.0},
"calibrate_z": {"r": 0.8, "g": 0.0, "b": 0.35, "w": 0.0},
"calibrate_mesh": {"r": 0.2, "g": 1.0, "b": 0.0, "w": 0.0},
"cleaning": {"r": 0.0, "g": 0.02, "b": 0.5, "w": 0.0},
"busy": {"r": 0.4, "g": 0.0, "b": 0.0, "w": 0.0},
"standby": {"r": 0.01, "g": 0.01, "b": 0.01, "w": 0.1},
# "error": {"r": 0.01, "g": 0.01, "b": 0.01, "w": 0.1},
"off": {"r": 0.0, "g": 0.0, "b": 0.0, "w": 0.0}
}
},
"display": { # Display (sh1106)
"name": "display_lights",
"index": "1,2",
"states": {
"on": {"r": 1.0, "g": 1.0, "b": 1.0, "w": 0.0},
"printing": {"r": 1.0, "g": 0.0, "b": 0.0, "w": 0.0},
"homing": {"r": 0.0, "g": 0.6, "b": 0.2, "w": 0.0},
"heating": {"r": 0.3, "g": 0.18, "b": 0.0, "w": 0.0},
"calibrate_qgl": {"r": 0.5, "g": 0.1, "b": 0.4, "w": 0.0},
"calibrate_z": {"r": 0.8, "g": 0.0, "b": 0.35, "w": 0.0},
"calibrate_mesh": {"r": 0.2, "g": 1.0, "b": 0.0, "w": 0.0},
"cleaning": {"r": 0.0, "g": 0.02, "b": 0.5, "w": 0.0},
"busy": {"r": 0.4, "g": 0.0, "b": 0.0, "w": 0.0},
"standby": {"r": 0.3, "g": 0.3, "b": 0.3, "w": 0.2},
"error": {"r": 1.0, "g": 0.0, "b": 0.0, "w": 0.0},
"off": {"r": 0.0, "g": 0.0, "b": 0.0, "w": 0.0}
}
},
"display_knob": { # Display knob (sh1106)
"name": "display_lights",
"index": "3",
"states": {
"on": {"r": 1.0, "g": 0.0, "b": 0.0, "w": 0.0},
"printing": {"r": 1.0, "g": 0.0, "b": 0.0, "w": 0.0},
"homing": {"r": 0.0, "g": 0.6, "b": 0.2, "w": 0.0},
"heating": {"r": 0.3, "g": 0.18, "b": 0.0, "w": 0.0},
"calibrate_qgl": {"r": 0.5, "g": 0.1, "b": 0.4, "w": 0.0},
"calibrate_z": {"r": 0.8, "g": 0.0, "b": 0.35, "w": 0.0},
"calibrate_mesh": {"r": 0.2, "g": 1.0, "b": 0.0, "w": 0.0},
"cleaning": {"r": 0.0, "g": 0.02, "b": 0.5, "w": 0.0},
"busy": {"r": 0.4, "g": 0.0, "b": 0.0, "w": 0.0},
"standby": {"r": 0.2, "g": 0.2, "b": 0.2, "w": 0.2},
"error": {"r": 0.01, "g": 0.01, "b": 0.01, "w": 0.1},
"off": {"r": 0.0, "g": 0.0, "b": 0.0, "w": 0.0}
}
},
"logo": { # StealthBurner logo
"name": "sb_lights",
"index": "1",
"states": {
"on": {"r": 1.0, "g": 0.0, "b": 0.0, "w": 0.0},
"printing": {"r": 1.0, "g": 1.0, "b": 1.0, "w": 0.0},
"homing": {"r": 0.0, "g": 0.6, "b": 0.2, "w": 0.0},
"heating": {"r": 0.3, "g": 0.18, "b": 0.0, "w": 0.0},
"calibrate_qgl": {"r": 0.5, "g": 0.1, "b": 0.4, "w": 0.0},
"calibrate_z": {"r": 0.8, "g": 0.0, "b": 0.35, "w": 0.0},
"calibrate_mesh": {"r": 0.2, "g": 1.0, "b": 0.0, "w": 0.0},
"cleaning": {"r": 0.0, "g": 0.02, "b": 0.5, "w": 0.0},
"busy": {"r": 0.4, "g": 0.0, "b": 0.0, "w": 0.0},
"standby": {"r": 0.01, "g": 0.01, "b": 0.01, "w": 0.1},
"error": {"r": 0.01, "g": 0.01, "b": 0.01, "w": 0.1},
"off": {"r": 0.0, "g": 0.0, "b": 0.0, "w": 0.0}
}
},
"nozzle": { # StealthBurner nozzle
"name": "sb_lights",
"index": "2,3",
"states": {
"on": {"r": 1.0, "g": 0.0, "b": 0.0, "w": 0.0},
"printing": {"r": 1.0, "g": 1.0, "b": 1.0, "w": 0.0},
"homing": {"r": 0.0, "g": 0.6, "b": 0.2, "w": 0.0},
"heating": {"r": 0.3, "g": 0.18, "b": 0.0, "w": 0.0},
"calibrate_qgl": {"r": 0.5, "g": 0.1, "b": 0.4, "w": 0.0},
"calibrate_z": {"r": 0.8, "g": 0.0, "b": 0.35, "w": 0.0},
"calibrate_mesh": {"r": 0.2, "g": 1.0, "b": 0.0, "w": 0.0},
"cleaning": {"r": 0.0, "g": 0.02, "b": 0.5, "w": 0.0},
"busy": {"r": 0.4, "g": 0.0, "b": 0.0, "w": 0.0},
"standby": {"r": 0.01, "g": 0.01, "b": 0.01, "w": 0.1},
"error": {"r": 0.01, "g": 0.01, "b": 0.01, "w": 0.1},
"off": {"r": 0.0, "g": 0.0, "b": 0.0, "w": 0.0}
}
}
}
variable_neopixel_colors: {
"red": {"r": 1.0, "g": 0.0, "b": 0.0, "w": 0.0},
"orange": {"r": 1.0, "g": 0.43, "b": 0.0, "w": 0.0},
"green": {"r": 0.0, "g": 1.0, "b": 0.0, "w": 0.0},
"blue": {"r": 0.0, "g": 0.0, "b": 1.0, "w": 0.0},
"white": {"r": 1.0, "g": 1.0, "b": 1.0, "w": 0.0},
"yellow": {"r": 1.0, "g": 1.0, "b": 0.0, "w": 0.0},
"purple": {"r": 1.0, "g": 0.0, "b": 1.0, "w": 0.0},
"off": {"r": 0.0, "g": 0.0, "b": 0.0, "w": 0.0}
}
gcode:
# command params
{% set debug = params.DEBUG|default(0)|int %}
# features
{% set ena_debug = printer.save_variables.variables.debug|default('false')|lower %}
{% if ena_debug == "true" %}
{action_respond_info("==== _PRINTER_VARIABLE ====")}
{action_respond_info("display: '%s'" % (display))}
{action_respond_info("extruder: '%s'" % (extruder))}
{action_respond_info("filament: '%s'" % (filament))}
{action_respond_info("filament_temperature_array: '%s'" % (filament_temperature_array))}
{action_respond_info("homing: '%s'" % (homing))}
{action_respond_info("neopixel_colors: '%s'" % (neopixel_colors))}
{action_respond_info("neopixel_leds: '%s'" % (neopixel_leds))}
{action_respond_info("parking: '%s'" % (parking))}
{action_respond_info("===========================")}
{% endif %}
[delayed_gcode INIT_PRINTER_VARIABLE]
initial_duration: 2
gcode:
# features
{% set ena_debug = printer.save_variables.variables.debug|default('false')|lower %}
{% if ena_debug == "true" %}
{action_respond_info('==== INIT_PRINTER_VARIABLE ====')}
{% endif %}
_PRINTER_VARIABLE
_SET_LED_STATE_BY_NAME STATE="on"