-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer-20230405_175406.cfg
398 lines (355 loc) · 8.2 KB
/
printer-20230405_175406.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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
# MKS Gen l V1
########################################
# Includes
########################################
[include mainsail.cfg]
[include macros.cfg]
[include neopixel.cfg]
# STATUS_READY
# STATUS_OFF
# STATUS_BUSY
# STATUS_HEATING
# STATUS_LEVELING
# STATUS_HOMING
# STATUS_CLEANING
# STATUS_MESHING
# STATUS_CALIBRATING_Z
########################################
# Printer configuration
########################################
[mcu]
serial:/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
[printer]
kinematics: cartesian
max_velocity: 250
max_accel: 2000
max_z_velocity: 25
max_z_accel: 100
square_corner_velocity: 5.0
# [virtual_sdcard]
# path: ~/gcode_files
########################################
# Stepper Motor configuration
########################################
[stepper_x]
step_pin: PF0
dir_pin: !PF1
enable_pin: !PD7
microsteps: 16
rotation_distance: 40 ##rotation_distance = ((360°/1.8°) * microsteps) / 80 # # 旋转距离 = (圆周360°/步距角)*细分/每MM脉冲值
endstop_pin:^!PE5 #X-Min, PE4:X-Max
position_endstop: -6
position_min: -6
position_max: 310
homing_speed: 60
[stepper_y]
step_pin: PF6
dir_pin: !PF7
enable_pin: !PF2
microsteps: 16
rotation_distance: 40
endstop_pin: ^!PJ1 #Y-Min, PJ0:Y-Max
position_endstop: -20
position_min: -20
position_max: 300
homing_speed: 60
[stepper_z]
step_pin: PL3
dir_pin: PL1
enable_pin: !PK0
microsteps: 16
rotation_distance: 8
# endstop_pin: ^!PD3 #Z-Min, PD2:Z-Max
endstop_pin: probe:z_virtual_endstop
position_max: 300
position_min: -8
homing_speed: 8
[extruder]
step_pin: PA4
dir_pin: !PA6
enable_pin: !PA2
microsteps: 16
# rotation_distance: 22.679616 # Voron M4 Stepper online motor
rotation_distance: 22.45281984 # Voron M4 E3D Motor
# rotation_distance: 23.868 # Tevo Titan
full_steps_per_rotation: 400 # E3D Stepper
nozzle_diameter: 0.4
filament_diameter: 1.750
# gear_ratio: 3:1 # Tevo Titan
gear_ratio: 80:20 # Voron M4
heater_pin: PB4
sensor_type: ATC Semitec 104GT-2
sensor_pin: PK5
min_temp: 0
max_temp: 285
max_extrude_only_distance: 200
min_extrude_temp: 0
pwm_cycle_time: 0.0166
# pressure_advance: .7 # Tevo Titan
# pressure_advance: .65 # Voron M4 Stepper online motor
pressure_advance: .75 # Voron M4 E3D Motor
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
#[extruder1]
#step_pin: PC1
#dir_pin: !PC3
#enable_pin: !PC7
#heater_pin: PH4
#sensor_pin: PK7
#...
########################################
# TMC UART configuration
########################################
[tmc2208 stepper_x]
uart_pin: PK1
# tx_pin aka the pin with the 1K resistor
tx_pin: PG1
run_current: 0.600
stealthchop_threshold: 999999
[tmc2208 stepper_y]
uart_pin: PK2
# tx_pin aka the pin with the 1K resistor
tx_pin: PF5
run_current: 0.600
stealthchop_threshold: 999999
[tmc2208 stepper_z]
uart_pin: PK3
# tx_pin aka the pin with the 1K resistor
tx_pin: PL7
run_current: 0.800
stealthchop_threshold: 999999
[tmc2208 extruder]
uart_pin: PK4
# tx_pin aka the pin with the 1K resistor
tx_pin: PL5
run_current: 0.75
stealthchop_threshold: 999999
# [tmc2208 stepper_e1]
# uart_pin: PB6
# tx_pin aka the pin with the 1K resistor
# tx_pin: PD1
# run_current: 0.600
# stealthchop_threshold: 30
########################################
# Probe/Mesh configuration
########################################
[probe]
pin: ^!PD3
#z_offset: 2.0
speed: 5.0
x_offset: -45
y_offset: -8
[bed_mesh]
speed: 100
horizontal_move_z: 5
mesh_min:15,5
mesh_max:255,265
probe_count: 5,5
algorithm: bicubic
relative_reference_index: 12
mesh_pps: 4,4
fade_start: 1
fade_end: 10
fade_target: 0
# [homing_override]
# set_position_z: 15
# axes: z
# gcode:
# G90
# BED_MESH_CLEAR
# G1 Z30 F480
# G28 X0 Y0
# G1 X150 Y150 F3600
# G28 Z0
# G1 Z50 F480
[safe_z_home]
home_xy_position: 150,150 # Change coordinates to the center of your print bed
speed: 50
z_hop: 10 # Move up 10mm
z_hop_speed: 5
[force_move]
enable_force_move: true
########################################
# Bed configuration
########################################
[heater_bed]
heater_pin: PH5
sensor_type: ATC Semitec 104GT-2
sensor_pin: PK6
min_temp: 0
max_temp: 130
max_power: 0.6
pwm_cycle_time: 0.0166
#control: pid
#pid_Kp: 325.10
#pid_Ki: 63.35
#pid_Kd: 417.10
########################################
# Fan configuration
########################################
[fan]
pin: PH6
[heater_fan extruder_fan]
pin: PH4
heater: extruder
heater_temp: 80
########################################
# Display configuration
########################################
[display]
lcd_type: st7920
cs_pin: PH1
sclk_pin: PA1
sid_pin: PH0
encoder_pins: ^PC6, ^PC4
click_pin: ^!PC2
kill_pin: ^!EXP2_8
menu_root: __main
menu_timeout: 40
[output_pin beeper]
pin: EXP1_1
pwm: True
value: 0
shutdown_value: 0
cycle_time: 0.001
scale: 1000
[display_status]
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=PC0, EXP1_3=PH0, EXP1_5=PA1, EXP1_7=PA5, EXP1_9=<GND>,
EXP1_2=PC2, EXP1_4=PH1, EXP1_6=PA3, EXP1_8=PA7, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PB3, EXP2_3=PC6, EXP2_5=PC4, EXP2_7=PL0, EXP2_9=<GND>,
EXP2_2=PB1, EXP2_4=PB0, EXP2_6=PB2, EXP2_8=PG0, EXP2_10=<NC>
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp1"
# See the MKS Lcd Config path file for definitions of common LCD displays.
[pause_resume]
#[bltouch]
#sensor_pin: ^PD2
#control_pin:PB5
#x_offset: -44
#y_offset: -14
#z_offset: 3.099
#speed: 10.0
#samples: 2
#samples_result: median
#sample_retract_dist: 3.0
#samples_tolerance: 0.1
#samples_tolerance_retries: 1
[gcode_macro CANCEL_PRINT]
description: Cancel the actual running print
rename_existing: CANCEL_PRINT_BASE
gcode:
TURN_OFF_HEATERS
CANCEL_PRINT_BASE
[gcode_macro G29]
gcode:
BED_MESH_CLEAR
G28
BED_MESH_CALIBRATE
STATUS_MESHING
BED_MESH_PROFILE SAVE=name
SAVE_CONFIG
BED_MESH_PROFILE LOAD=name
STATUS_READY
# Gcode for clearing the display
[delayed_gcode clear_display]
gcode:
M117
# Gcode executed when the printer is ready
[delayed_gcode on_ready]
initial_duration: 1
gcode:
SET_IDLE_TIMEOUT TIMEOUT=2400
M117 Tornado Ready
STATUS_READY
UPDATE_DELAYED_GCODE ID=clear_display DURATION=10
# Fake macros to avoid warnings
[gcode_macro SNAP]
gcode:
[gcode_macro UNLOAD_FILAMENT]
gcode:
SAVE_GCODE_STATE NAME=UNLOAD_FILAMENT_state
M83
G1 E-100 F1000
RESTORE_GCODE_STATE NAME=UNLOAD_FILAMENT_state
[gcode_macro LOAD_FILAMENT]
gcode:
SAVE_GCODE_STATE NAME=LOAD_FILAMENT_state
M83
G1 E50 F1000
G1 E50 F300
G1 E100 F300
RESTORE_GCODE_STATE NAME=LOAD_FILAMENT_state
[gcode_macro PRIME_FILAMENT]
gcode:
SAVE_GCODE_STATE NAME=PRIME_FILAMENT_state
M83
G1 E100 F300
RESTORE_GCODE_STATE NAME=PRIME_FILAMENT_state
[gcode_macro PARK]
gcode:
{% set X = params.X|default(8)|float %}
{% set Y = params.Y|default(27)|float %}
{% set Z = params.Z|default(20)|float %}
SAVE_GCODE_STATE NAME=PARK_state
G91
G1 E-2.0 F3000
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000
RESTORE_GCODE_STATE NAME=PARK_state
[gcode_macro CHANGE_FILAMENT]
variable_enabled: 0
gcode:
{% if printer["gcode_macro CHANGE_FILAMENT"].enabled %}
PAUSE
PARK
G91
G1 E-100 F1000
M117 Change Filament
PLAY_ANNOYING_BEEPS
{% endif %}
SET_GCODE_VARIABLE MACRO=CHANGE_FILAMENT VARIABLE=enabled VALUE=0
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.127500, -0.045000, 0.042500, 0.187500, 0.370000
#*# -0.150000, -0.072500, 0.007500, 0.142500, 0.330000
#*# -0.150000, -0.067500, 0.000000, 0.147500, 0.297500
#*# -0.192500, -0.097500, -0.007500, 0.110000, 0.267500
#*# -0.230000, -0.112500, -0.017500, 0.100000, 0.242500
#*# tension = 0.2
#*# min_x = 15.0
#*# algo = bicubic
#*# y_count = 5
#*# mesh_y_pps = 4
#*# min_y = 5.0
#*# x_count = 5
#*# max_y = 265.0
#*# mesh_x_pps = 4
#*# max_x = 255.0
#*#
#*# [probe]
#*# z_offset = 2.050
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 24.397
#*# pid_ki = 1.768
#*# pid_kd = 84.169
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 37.373
#*# pid_ki = 0.774
#*# pid_kd = 451.274