-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprinter-20240502_115026.cfg
748 lines (629 loc) · 16.8 KB
/
printer-20240502_115026.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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
[include mainsail.cfg]
[include sensorless.cfg]
[include ebb36.cfg]
# [include sb2209.cfg]
[include macros.cfg]
# [include nevermore.cfg]
[include disco_leds.cfg]
[include KAMP_Settings.cfg]
# [include stealthburner_leds_official.cfg]
[include config_backup.cfg]
[include bedfans.cfg]
#[include K-ShakeTune/*.cfg]
# This file contains common pin mappings for the BIGTREETECH Manta M8P
# To use this config, the firmware should be compiled for the
# STM32G0B1 with a "8KiB bootloader" "8 MHz crystal"
# and "USB (on PA11/PA12)" or "CAN bus (on PD12/PD13)".
[skew_correction]
[autotune_tmc stepper_x]
motor: ldo-42sth48-2804ah
[autotune_tmc stepper_y]
motor: ldo-42sth48-2804ah
[autotune_tmc stepper_z]
motor: ldo-42sth40-1684l300e
[autotune_tmc stepper_z1]
motor: ldo-42sth40-1684l300e
[autotune_tmc stepper_z2]
motor: ldo-42sth40-1684l300e
[autotune_tmc extruder]
motor: ldo-36sth20-1004ahg
[force_move]
enable_force_move: True
# See docs/Config_Reference.md for a description of parameters.
[mcu]
canbus_uuid: 20a9430e4fda
[exclude_object]
[pause_resume]
[firmware_retraction]
retract_length: 0.5
# The length of filament (in mm) to retract when G10 is activated,
# and to unretract when G11 is activated (but see
# unretract_extra_length below). The default is 0 mm.
retract_speed: 35
# The speed of retraction, in mm/s. The default is 20 mm/s.
# unretract_extra_length: -0.1
# The length (in mm) of *additional* filament to add when
# unretracting.
unretract_speed: 30
# The speed of unretraction, in mm/s. The default is 10 mm/s.
[gcode_arcs]
resolution: 0.1
# An arc will be split into segments. Each segment's length will
# equal the resolution in mm set above. Lower values will produce a
# finer arc, but also more work for your machine. Arcs smaller than
# the configured value will become straight lines. The default is
# 1mm.
[input_shaper]
#shaper_type_x: mzv
#shaper_freq_x: 64.6
#shaper_type_y: zv
#shaper_freq_y: 48.4
[printer]
kinematics: corexy
max_velocity: 300
max_accel: 7100 #Max 4000
max_accel_to_decel: 7100
max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V
max_z_accel: 350
square_corner_velocity: 14.2 # 1/500 of max acceleration
[temperature_sensor M8P]
sensor_type: temperature_mcu
[temperature_sensor CB1]
sensor_type: temperature_host
[temperature_sensor top_chamber]
sensor_type: Generic 3950
sensor_pin: PA1
[temperature_sensor ab_stepper]
sensor_type: Generic 3950
sensor_pin: PA3
[temperature_sensor bottom_chamber]
sensor_type: Generic 3950
sensor_pin: PA2
#####################################################################
# Beacon
#####################################################################
[beacon]
serial: /dev/serial/by-id/usb-Beacon_Beacon_RevH_E14A4A085154364134202020FF143631-if00
x_offset: 24 # update with offset from nozzle on your machine
y_offset: 0 # update with offset from nozzle on your machine
mesh_main_direction: x
mesh_runs: 2
[safe_z_home]
home_xy_position: 125, 125 # update for your machine
z_hop: 3
[resonance_tester]
accel_chip: beacon
probe_points: 125, 125, 20
#####################################################################
# Probe
#####################################################################
# [probe]
# pin: EBBCan:PB5
# x_offset: 0 #<-!-!-!- Set to the position x of your probe relative to the nozzle
# y_offset: 0 #<-!-!-!- Set to the position y of your probe relative to the nozzle
# #z_offset: -1.430 #<-!-!-!- Set to the position z of your probe relative to the nozzle
# speed: 5
# lift_speed: 5
# samples: 5
# samples_result: median
# sample_retract_dist: 3
# samples_tolerance: 0.075
# samples_tolerance_retries: 10
# # <-!-!-!- Uncomment below if you are using Boop
# activate_gcode:
# #{% set PROBE_TEMP = printer.configfile.settings.extruder.min_extrude_temp %}
# {% set PROBE_TEMP = 150 %}
# {% set MAX_TEMP = PROBE_TEMP + 5 %}
# {% set ACTUAL_TEMP = printer.extruder.temperature %}
# {% set TARGET_TEMP = printer.extruder.target %}
# {% if TARGET_TEMP > PROBE_TEMP %}
# { action_respond_info('Extruder temperature target of %.1fC is too high, lowering to %.1fC' % (TARGET_TEMP, PROBE_TEMP)) }
# M109 S{ PROBE_TEMP }
# {% else %}
# # Temperature target is already low enough, but nozzle may still be too hot.
# {% if ACTUAL_TEMP > MAX_TEMP %}
# { action_respond_info('Extruder temperature %.1fC is still too high, waiting until below %.1fC' % (ACTUAL_TEMP, MAX_TEMP)) }
# TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={ MAX_TEMP }
# {% endif %}
# {% endif %}
#####################################################################
# X/Y Stepper Settings
#####################################################################
[stepper_x] #Connect the B Motor (gantry left) to MOTOR1
step_pin: PE2
dir_pin: !PB4
enable_pin: !PC11
microsteps: 64
rotation_distance: 40
endstop_pin: tmc5160_stepper_x:virtual_endstop
# full_steps_per_rotation: 200
position_min: 0
position_endstop: 255
position_max: 255
homing_speed: 150
homing_retract_dist: 0
homing_positive_dir: true
[tmc5160 stepper_x]
cs_pin: PC10
interpolate: False
run_current: 2.8
sense_resistor: 0.075
diag1_pin: ^!PF3
stealthchop_threshold: 1
driver_SGT: -1 # <-!-!-!- Tune sensorless homing
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
# [stepper_x] #Connect the B Motor (gantry left) to MOTOR1
# step_pin: PE2
# dir_pin: PB4
# enable_pin: !PC11
# microsteps: 64
# rotation_distance: 40
# endstop_pin: tmc2209_stepper_x:virtual_endstop
# position_min: 0 #-245
# position_endstop: 255 #10
# position_max: 255 #10
# homing_speed: 50
# homing_retract_dist: 0
# homing_positive_dir: true
# [tmc2209 stepper_x]
# uart_pin: PC10
# interpolate: False
# run_current: 1.06
# sense_resistor: 0.110
# diag_pin: ^PF3
# stealthchop_threshold: 1
# driver_SGTHRS: 98 # <-!-!-!- Tune sensorless homing
#[tmc2130 stepper_y]
#cs_pin: PF13
#spi_bus: spi1
##diag1_pin: PF4
#run_current: 0.800
#stealthchop_threshold: 999999
[stepper_y] #Connect the A Motor (gantry right) to MOTOR2
step_pin: PF12
dir_pin: !PF11
enable_pin: !PB3
microsteps: 64
rotation_distance: 40
# full_steps_per_rotation: 200
endstop_pin: tmc5160_stepper_y:virtual_endstop
position_min: 0 #-250
position_endstop: 260 #10
position_max: 260 #10
homing_speed: 150
homing_retract_dist: 0
homing_positive_dir: true
[tmc5160 stepper_y]
cs_pin: PF13
interpolate: False
run_current: 2.8
sense_resistor: 0.075
diag1_pin: ^!PF4
stealthchop_threshold: 1
driver_SGT: -1 # <-!-!-!- Tune sensorless homing
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
# [stepper_y] #Connect the A Motor (gantry right) to MOTOR2
# step_pin: PF12
# dir_pin: PF11
# enable_pin: !PB3
# microsteps: 64
# rotation_distance: 40
# endstop_pin: tmc2209_stepper_y:virtual_endstop
# position_min: 0 #-250
# position_endstop: 260 #10
# position_max: 260 #10
# homing_speed: 50
# homing_retract_dist: 0
# homing_positive_dir: true
# [tmc2209 stepper_y]
# uart_pin: PF13
# interpolate: False
# run_current: 1.06
# sense_resistor: 0.110
# diag_pin: ^PF4
# stealthchop_threshold: 1
# driver_SGTHRS: 98 # <-!-!-!- Tune sensorless homing
#####################################################################
# Z Stepper Settings
#####################################################################
[stepper_z] #Connect the Z (Front Left) motor to MOTOR4
step_pin: PD3
dir_pin: !PD2
enable_pin: !PD5
rotation_distance: 4
microsteps: 128
endstop_pin: probe:z_virtual_endstop
position_max: 242
position_min: -10
homing_speed: 10
second_homing_speed: 3
homing_retract_dist: 0
full_steps_per_rotation:200
[tmc2209 stepper_z]
uart_pin: PD4
interpolate: False
run_current: 0.95
sense_resistor: 0.110
stealthchop_threshold: 999999
[stepper_z1] #Connect the Z1 (Rear) motor to MOTOR5
step_pin: PC9
dir_pin: !PC8
enable_pin: !PD1
microsteps: 128
rotation_distance: 4
full_steps_per_rotation:200
[tmc2209 stepper_z1]
uart_pin: PD0
interpolate: False
run_current: 0.95
sense_resistor: 0.110
stealthchop_threshold: 999999
[stepper_z2] #Connect the Z2 (Front Right) motor to MOTOR6
step_pin: PA10
dir_pin: !PA14
enable_pin: !PA15
microsteps: 128
rotation_distance: 4
full_steps_per_rotation:200
[tmc2209 stepper_z2]
uart_pin: PF8
interpolate: False
run_current: 0.95
sense_resistor: 0.110
stealthchop_threshold: 999999
[filament_motion_sensor filament_runout_sensor]
detection_length: 14
# The minimum length of filament pulled through the sensor to trigger
# a state change on the switch_pin
# Default is 7 mm.
extruder: extruder
# The name of the extruder section this sensor is associated with.
# This parameter must be provided.
switch_pin: PC5
# changing the switch_pin name according to your motherboard
pause_on_runout: False
runout_gcode:
{action_respond_info("FILAMENT RUNOUT: Filament runout")}
MR_NOTIFY TITLE="$printer_name" MESSAGE="Filement runout!"
PAUSE
insert_gcode:
{action_respond_info("FILAMENT RUNOUT: Filament inserted")}
#event_delay:
#pause_delay:
#[filament_switch_sensor material_0]
#switch_pin: PC1
# Motor6
#[extruder1]
#step_pin: PA10
#dir_pin: PA14
#enable_pin: !PA15
#heater_pin: PB5 # HE1
#sensor_pin: PA2 # T1
#...
#[filament_switch_sensor material_1]
#switch_pin: PC2
# Motor7
#[extruder2]
#step_pin: PD11
#dir_pin: PD9
#enable_pin: !PD15
#heater_pin: PB6 # HE2
#sensor_pin: PA3 # T2
#...
# Motor8
#[extruder3]
#step_pin: PD8
#dir_pin: PC6
#enable_pin: !PC7
#heater_pin: PE1 # HE3
#sensor_pin: PA4 # T3
#...
[heater_bed]
heater_pin: PB7
sensor_type: Generic 3950
sensor_pin: PA0 # TB
#control: pid
min_temp: 0
max_temp: 120
#pid_kp: 58.640
#pid_ki: 4.249
#pid_kd: 202.310
#####################################################################
# FANS
#####################################################################
[multi_pin electronics_cooling]
pins: PE0, PC12
[controller_fan controller_fan]
pin: multi_pin:electronics_cooling
kick_start_time: 0.5
heater: heater_bed
# heater_temp: 45.0
idle_speed: 0
fan_speed: 0.5
[output_pin nevermore]
pin: PE6
value: 0
shutdown_value: 0
[temperature_fan cb1_fan]
pin: PE5
sensor_type: temperature_host
min_temp: -40
max_temp: 70
target_temp: 38
min_speed: 0.1
max_speed: 1.0
control: pid
off_below: 0.1
max_power: 1.0
pid_kp: 1.0
pid_ki: 0.5
pid_kd: 2.0
# [fan]
# pin: PE6
#[heater_fan fan1]
#pin: PE0
#[heater_fan fan2]
#pin: PC12
#[heater_fan fan3]
#pin: PE5
#[heater_fan fan4]
#pin: PE4
#[heater_fan fan5]
#pin: PB8
#tachometer_pin: PC14
#[heater_fan fan6]
#pin: PB9
#tachometer_pin: PC15
#[heater_fan SoC_fan]
#pin: CB1:gpio79
#pin: RPI:gpio26
########################################
# TMC2209 configuration
########################################
# [tmc2209 stepper_x]
# uart_pin: PC10
# diag_pin: ^PF3
# run_current: 0.800
# stealthchop_threshold: 0
# [tmc2209 stepper_y]
# uart_pin: PF13
# diag_pin: ^PF4
# run_current: 0.800
# stealthchop_threshold: 0
# [tmc2209 stepper_z]
# uart_pin: PF9
# diag_pin: ^PF5
# run_current: 0.650
# stealthchop_threshold: 0
#[tmc2209 stepper_]
#uart_pin: PD4
##diag_pin: PC0
#run_current: 0.650
#stealthchop_threshold: 999999
#[tmc2209 extruder]
#uart_pin: PD0
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2209 extruder1]
#uart_pin: PF8
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2209 extruder2]
#uart_pin: PD14
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2209 extruder3]
#uart_pin: PD10
#run_current: 0.800
#stealthchop_threshold: 999999
########################################
# TMC2130 configuration
########################################
#[tmc2130 stepper_x]
#cs_pin: PC10
#spi_bus: spi1
##diag1_pin: PF3
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2130 stepper_y]
#cs_pin: PF13
#spi_bus: spi1
##diag1_pin: PF4
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2130 stepper_z]
#cs_pin: PF9
#spi_bus: spi1
##diag1_pin: PF5
#run_current: 0.650
#stealthchop_threshold: 999999
#[tmc2130 stepper_]
#cs_pin: PD4
#spi_bus: spi1
##diag1_pin: PC0
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2130 extruder]
#cs_pin: PD0
#spi_bus: spi1
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2130 extruder1]
#cs_pin: PF8
#spi_bus: spi1
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2130 extruder2]
#cs_pin: PD14
#spi_bus: spi1
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2130 extruder3]
#cs_pin: PD10
#spi_bus: spi1
#run_current: 0.800
#stealthchop_threshold: 999999
#####################################################################
# Homing and Gantry Adjustment Routines
#####################################################################
[idle_timeout]
timeout: 1800
# [bed_mesh]
# speed: 200
# horizontal_move_z: 3
# mesh_min: 10,10
# mesh_max: 110,110
# probe_count: 3,3
# relative_reference_index: 4
# algorithm: lagrange
# [homing_override]
# axes: xyz
# gcode:
# {% set home_all = 'X' not in params and 'Y' not in params and 'Z' not in params %}
# # {% if home_all or 'Y' in params %}
# #_HOME_Y
# # {% endif %}
# {% if home_all or 'X' in params %}
# _HOME_X
# {% endif %}
# {% if home_all or 'Y' in params %}
# _HOME_Y
# {% endif %}
# {% if home_all or 'Z' in params %}
# G90
# G0 X125 Y125 F15000 # <-!-!-!- Set to the position of your Z endstop
# G28 Z
# G1 Z10
# {% endif %}
[z_tilt]
z_positions:
-35, 0
290, 125
291, 0
points:
30, 30
125, 230
230, 30
speed: 450
horizontal_move_z: 5
retries: 6
retry_tolerance: 0.0075
[board_pins]
aliases:
# EXP1 header
EXP1_1=PE9, EXP1_2=PE10,
EXP1_3=PE11, EXP1_4=PE12,
EXP1_5=PE13, EXP1_6=PE14, # Slot in the socket on this side
EXP1_7=PE15, EXP1_8=PB10,
EXP1_9=<GND>, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PB14, EXP2_2=PB13,
EXP2_3=PF7, EXP2_4=PB12,
EXP2_5=PE7, EXP2_6=PB11, # Slot in the socket on this side
EXP2_7=PE8, EXP2_8=<RST>,
EXP2_9=<GND>, EXP2_10=<NC>
# See the sample-lcd.cfg file for definitions of common LCD displays.
#[bltouch]
#sensor_pin: PB2
#control_pin: PB1
# Proximity switch
#[probe]
#pin: PF6
#[output_pin ps_on_pin]
#pin: PC3
#[output_pin pc13_pin]
#pin: PC13
#[neopixel my_neopixel_1]
#pin: PA9
#[neopixel my_neopixel_2]
#pin: PB15
#[hall_filament_width_sensor]
#adc1: PC5
#adc2: PB0
#[adxl345]
#cs_pin: PC4
#spi_bus: spi1
# [gcode_macro PRINT_END]
# # Use PRINT_END for the slicer ending script - please customise for your slicer of choice
# gcode:
# # safe anti-stringing move coords
# {% set th = printer.toolhead %}
# {% set x_safe = th.position.x + 20 * (1 if th.axis_maximum.x - th.position.x > 20 else -1) %}
# {% set y_safe = th.position.y + 20 * (1 if th.axis_maximum.y - th.position.y > 20 else -1) %}
# {% set z_safe = [th.position.z + 2, th.axis_maximum.z]|min %}
# SAVE_GCODE_STATE NAME=STATE_PRINT_END
# M400 ; wait for buffer to clear
# G92 E0 ; zero the extruder
# G1 E-2.0 F3600 ; retract filament
# TURN_OFF_HEATERS
# G90 ; absolute positioning
# G0 X{x_safe} Y{y_safe} Z{z_safe} F20000 ; move nozzle to remove stringing
# G0 X{th.axis_maximum.x//2} Y{th.axis_maximum.y - 2} F3600 ; park nozzle at rear
# M107 ; turn off fan
# BED_MESH_CLEAR
# RESTORE_GCODE_STATE NAME=STATE_PRINT_END
[bed_mesh]
speed: 450
horizontal_move_z: 5
##--------------------------------------------------------------------
## Uncomment below for 250mm build
mesh_min: 40, 40
mesh_max: 210,210
## Uncomment for 300mm build
#mesh_min: 40, 40
#mesh_max: 260,260
## Uncomment for 350mm build
#mesh_min: 40, 40
#mesh_max: 310,310
##--------------------------------------------------------------------
fade_start: 0.6
fade_end: 10.0
probe_count: 5,5 # Values should be odd, so one point is directly at bed center
algorithm: bicubic
# relative_reference_index: 12 # Update when changing probe_count, to ((x points * y points) - 1) / 2. (the center point)
[include moonraker_obico_macros.cfg]
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.050625, -0.051563, -0.036094, -0.037266
#*# -0.052031, -0.046406, -0.038750, -0.033125
#*# -0.066875, -0.058438, -0.041172, -0.030547
#*# -0.078828, -0.059453, -0.033672, -0.017656
#*# -0.119609, -0.083594, -0.052031, -0.035547
#*# x_count = 4
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*# min_x = 63.16
#*# max_x = 186.28
#*# min_y = 40.65
#*# max_y = 208.29
#*#
#*# [input_shaper]
#*# shaper_type_x = mzv
#*# shaper_freq_x = 66.2
#*# shaper_type_y = mzv
#*# shaper_freq_y = 47.8
#*#
#*# [probe]
#*# z_offset = -1.190
#*#
#*# [skew_correction calilantern_skew_profile]
#*# xy_skew = 0.0012680077976461247
#*# xz_skew = -0.004216297851837484
#*# yz_skew = -0.007303083885499536
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 58.218
#*# pid_ki = 4.043
#*# pid_kd = 209.585