-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter-20220910_202517.cfg
executable file
·371 lines (324 loc) · 7.74 KB
/
printer-20220910_202517.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
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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
###Anycubic Vyper Klipper Config###
#########################
### STEPPERS X,Y,Z,Z1 ###
#########################
[stepper_x]
step_pin: PC2
dir_pin: PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: !PA7
position_min: -3
position_endstop: -3
position_max: 245
homing_speed: 40.0
[stepper_y]
step_pin: PB8
dir_pin: PB7
enable_pin: !PC13
microsteps: 16
rotation_distance: 32
endstop_pin: !PC5
position_min: -17
position_endstop: -17
position_max: 245
homing_speed: 40.0
[stepper_z]
step_pin: PB6
dir_pin: !PB5
enable_pin: !PC14
microsteps: 16
rotation_distance: 8
endstop_pin: PB2
#position_endstop = 0.4
position_max: 250
position_min: -5
homing_speed: 6.0
[stepper_z1]
step_pin: PC0
dir_pin: !PC1
enable_pin: !PC15
microsteps: 16
rotation_distance: 8
endstop_pin: PC6
[safe_z_home]
home_xy_position: -3,-17
z_hop: 10
#########################
### HOTEND THERMISTOR ###
#########################
[thermistor T-D500]
temperature1: 100
resistance1: 120000
temperature2: 200
resistance2: 6800
temperature3: 288
resistance3: 1066
###############
### HEATERS ###
###############
[extruder]
step_pin: PB4
dir_pin: !PB3
enable_pin: !PA15
microsteps: 16
rotation_distance: 7.6190
nozzle_diameter: 0.600
filament_diameter: 1.750
heater_pin: PA1
sensor_type: T-D500
sensor_pin: PC4
control: pid
pid_kp = 22.459
pid_ki = 1.826
pid_kd = 69.060
min_temp: -70
max_temp: 320
pressure_advance = 0.25
[heater_bed]
heater_pin: PA4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PB0
control = pid
pid_kp = 65.268
pid_ki = 1.072
pid_kd = 993.708
min_temp: 0
max_temp: 110
############
### FANS ###
############
[heater_fan extruder_fan]
pin: PB1
off_below: 1.0
[fan]
pin: PA0
#####################
### NOZZLE PROBE ###
#####################
[probe]
pin: !PB12
#z_offset = 0
speed: 3
samples: 2
activate_gcode:
probe_reset
[output_pin probe_reset_pin]
pin: PB13
###############
### LED ###
###############
[output_pin LED]
pin: mcu:PA13
pwm: False
value: 0
#########################
### BED LEVELING MESH ###
#########################
[bed_mesh]
mesh_min: 15,15
mesh_max: 235, 240
probe_count: 3,3
mesh_pps: 2,3
algorithm: bicubic
speed: 150
horizontal_move_z: 3
faulty_region_1_min: 130.0, 0.0
faulty_region_1_max: 145.0, 40.0
faulty_region_2_min: 225.0, 0.0
faulty_region_2_max: 250.0, 25.0
faulty_region_3_min: 165.0, 95.0
faulty_region_3_max: 205.0, 110.0
faulty_region_4_min: 30.0, 170.0
faulty_region_4_max: 45.0, 210.0
[z_tilt]
z_positions:
-30,135
275,135
points:
10,105
235,105
speed: 100
horizontal_move_z: 3
retries: 7
retry_tolerance: 0.005
###############
### SENSORS ###
###############
[temperature_sensor Raspberry Pi]
sensor_type: temperature_host
min_temp: 0
max_temp: 100
[filament_switch_sensor runout]
pause_on_runout: True
switch_pin: PA5
[temperature_sensor Mainboard]
sensor_type: temperature_mcu
max_temp: 100
min_temp: 20
###################
### MOTHERBOARD ###
###################
[mcu]
serial: /dev/ttyUSB0
restart_method: command
[output_pin beeper_pin]
pin: PB15
pwm: True
value: 0
shutdown_value: 0
cycle_time: 0.001
########################
### PRINTER MOVEMENT ###
########################
[printer]
kinematics: cartesian
max_velocity: 150
max_accel: 1500
max_accel_to_decel: 1500
max_z_velocity: 5
max_z_accel: 100
[screws_tilt_adjust]
screw1: 30, 42
screw2: 80, 42
screw3: 160, 42
screw4: 210, 42
screw5: 208, 122
screw6: 149, 122
screw7: 89, 122
screw8: 31, 122
screw9: 30, 203
screw10: 60, 167
screw11: 154, 203
screw12: 210, 203
screw_thread: CCW-M4
##############
### MACROS ###
##############
[gcode_macro probe_reset]
gcode:
SET_PIN PIN=probe_reset_pin VALUE=0
G4 P300
SET_PIN PIN=probe_reset_pin VALUE=1
G4 P100
[virtual_sdcard]
path: ~/gcode_files
[display_status]
[pause_resume]
[gcode_macro PAUSE]
description: Pause the actual running print
rename_existing: PAUSE_BASE
gcode:
##### set defaults #####
{% set x = params.X|default(230) %} #edit to your park position
{% set y = params.Y|default(230) %} #edit to your park position
{% set z = params.Z|default(10)|float %} #edit to your park position
{% set e = params.E|default(1) %} #edit to your retract length
##### calculate save lift position #####
{% set max_z = printer.toolhead.axis_maximum.z|float %}
{% set act_z = printer.toolhead.position.z|float %}
{% set lift_z = z|abs %}
{% if act_z < (max_z - lift_z) %}
{% set z_safe = lift_z %}
{% else %}
{% set z_safe = max_z - act_z %}
{% endif %}
##### end of definitions #####
PAUSE_BASE
G91
{% if printer.extruder.can_extrude|lower == 'true' %}
G1 E-{e} F2100
{% else %}
{action_respond_info("Extruder not hot enough")}
{% endif %}
{% if "xyz" in printer.toolhead.homed_axes %}
G1 Z{z_safe}
G90
G1 X{x} Y{y} F6000
{% else %}
{action_respond_info("Printer not homed")}
{% endif %}
[gcode_macro RESUME]
description: Resume the actual running print
rename_existing: RESUME_BASE
gcode:
##### set defaults #####
{% set e = params.E|default(1) %} #edit to your retract length
#### get VELOCITY parameter if specified ####
{% if 'VELOCITY' in params|upper %}
{% set get_params = ('VELOCITY=' + params.VELOCITY) %}
{%else %}
{% set get_params = "" %}
{% endif %}
##### end of definitions #####
G91
{% if printer.extruder.can_extrude|lower == 'true' %}
G1 E{e} F2100
{% else %}
{action_respond_info("Extruder not hot enough")}
{% endif %}
RESUME_BASE {get_params}
[gcode_macro CANCEL_PRINT]
description: Cancel the actual running print
rename_existing: CANCEL_PRINT_BASE
gcode:
TURN_OFF_HEATERS
CANCEL_PRINT_BASE
[gcode_macro M900]
gcode:
{% if 'K' in params %}
{% if 'E' in params %}
SET_PRESSURE_ADVANCE EXTRUDER={params.E} ADVANCE={params.K}
{% else %}
SET_PRESSURE_ADVANCE ADVANCE={params.K}
{% endif %}
{% endif %}
[gcode_macro START_PRINT]
gcode:
{% set t_bed = params.T_BED|default(0) %}
{% set t_extruder = params.T_EXTRUDER|default(0) %}
M109 S140 #Extruder Heat Up Standby Mode
M190 S{t_bed} #Heat Up Bed
M117 Heize Hotend und Bed zum leveln
G4 P30000 #Wait for temp
_CG28 #Home if needed
Z_TILT_ADJUST
_CG34 #Z Tilt
M83 #Extruder Relative Mode
BED_MESH_PROFILE LOAD=default
G1 X0 Y0 F5000 #Move To Front Left Corner
M117 Heize Extruder zum drucken
M109 S{t_extruder} #Extruder Heat Up Target Temp
G92 E0 #Reset Extruder
G90 #Absolut Positioning
M117 Primeline
PRIME_LINE #First Move
M117 Drucke
[gcode_macro _CG28]
description: Helper: Conditional homing
gcode:
{% if "xyz" not in printer.toolhead.homed_axes %}
G28
{% endif %}
[gcode_macro PRIME_LINE]
gcode:
G1 X2 Y2 F4500 ;Move To Front Left Corner
G0 Z1.2 ;Drop Down To Bed
G92 E0 ;Reset Extruder
G1 X145 E35 F500 ;Extrude First Line
G1 Z1.4 F4500 ;Move Up For Second Line
G1 X25 E35 F500 ;Extrude Second Line
G1 E-0.8 F3000 ;Retract
G92 E0 ;Reset Extruder
G1 Z10 F4500 ;Move Up In Z
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [stepper_z]
#*# position_endstop = 1.75
#*#
#*# [extruder]
#*#
#*# [probe]
#*# z_offset = 0.000