-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter.cfg
386 lines (337 loc) · 9.38 KB
/
printer.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
# This file contains common pin mappings for the BIGTREETECH Manta M4P
# To use this config, the firmware should be compiled for the
# STM32G0B1 with a "8KiB bootloader" and USB communication.
# See docs/Config_Reference.md for a description of parameters.
[gcode_macro _CLIENT_VARIABLE]
variable_use_custom_pos : True ; use custom park coordinates for x,y [True/False]
variable_custom_park_x : 10.0 ; custom x position; value must be within your defined min and max of X
variable_custom_park_y : 180.0 ; custom y position; value must be within your defined min and max of Y
variable_custom_park_dz : 15.0 ; custom dz value; the value in mm to lift the nozzle when move to park position
variable_retract : 0.5 ; the value to retract while PAUSE
variable_cancel_retract : 0.6 ; the value to retract while CANCEL_PRINT
variable_speed_retract : 35.0 ; retract speed in mm/s
variable_unretract : 1.5 ; 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 : True ; allow to move the toolhead to park while execute CANCEL_PRINT [True/False]
variable_park_at_cancel_x : 5.0 ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
variable_park_at_cancel_y : 175.0 ; 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 : True ; use fw_retraction instead of the manual version [True/False]
gcode:
###################################
########### Include ##############
###################################
[include mainsail.cfg]
[include macros.cfg]
[include timelapse.cfg]
[include harakan-neos.cfg]
[include print_area_bed_mesh.cfg]
[include KAMP_Settings.cfg]
#[include PIS.cfg]
[exclude_object]
[respond]
default_type: command
[virtual_sdcard]
path: /home/biqu/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 8000
max_z_velocity: 15
max_z_accel: 75
max_accel_to_decel: 3000
square_corner_velocity: 10
#####################################
########## Input Shaping ##########
#####################################
[adxl345]
cs_pin: PD9
spi_bus: spi1
axes_map: z,y,-x
[resonance_tester]
accel_chip: adxl345
probe_points:
100, 100, 20 # an example
[input_shaper]
shaper_type_x = mzv
shaper_freq_x = 94.0
shaper_type_y = 2hump_ei
shaper_freq_y = 66.8
#############################
########### MCU #############
#############################
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_280049000E50415833323520-if00
restart_method: command
[temperature_sensor Manta]
sensor_type: temperature_mcu
[temperature_sensor CB1]
sensor_type: temperature_host
###################################################
############ Steppers & Drivers #################
###################################################
[stepper_x]
step_pin: PC6
dir_pin: PA14
enable_pin: !PC7
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC0
position_min: 0
position_endstop: 0
position_max: 230
homing_speed: 100
[tmc2209 stepper_x]
uart_pin: PB12
run_current: 0.9
sense_resistor: 0.110
#stealthchop_threshold: 0
[stepper_y]
step_pin: PB10
dir_pin: !PB2
enable_pin: !PB11
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC1
position_min: -21
position_endstop: -21
position_max: 215
homing_speed: 100
[tmc2209 stepper_y]
uart_pin: PC10
run_current: 0.9
sense_resistor: 0.110
#stealthchop_threshold: 0
[stepper_z]
step_pin: PB0
dir_pin: !PC5
enable_pin: !PB1
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_max: 250
position_min: -5
homing_speed: 10
second_homing_speed: 3
homing_retract_dist: 3
[tmc2209 stepper_z]
uart_pin: PC9
run_current: 0.800
sense_resistor: 0.110
stealthchop_threshold: 999999
###########################################
########### Extruder ####################
###########################################
[extruder]
step_pin: PB3
dir_pin: PB4
enable_pin: !PD5
microsteps: 32
rotation_distance: 3.400
nozzle_diameter: 0.4
filament_diameter: 1.750
heater_pin: PC8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
#control: pid
#pid_Kp: 17.915
#pid_Kd: 106.145
#pid_Ki: 0.756
min_temp: 0
max_temp: 275
pressure_advance: 0.03
max_extrude_cross_section: 5.0
max_extrude_only_distance: 100.0
pressure_advance_smooth_time: 0.04
[tmc2209 extruder]
uart_pin: PA13
run_current: 0.800
sense_resistor: 0.110
#stealthchop_threshold: 0
[firmware_retraction]
retract_length: .6
retract_speed: 12
#unretract_extra_length: 0
#unretract_speed: 6
[gcode_arcs]
resolution: 0.1
##################################
######## Probe #################
#################################
[gcode_macro Probe_Deploy]
gcode:
SET_PIN PIN=probe_enable VALUE=1
[gcode_macro Probe_Stow]
gcode:
SET_PIN PIN=probe_enable VALUE=0
[output_pin probe_enable]
pin: microprobe_control_pin
value: 0
[probe]
pin: ^microprobe_sensor_pin
deactivate_on_each_sample: False
x_offset: -2.0
y_offset: -30.0
#z_offset: 2.6
speed: 8.0
samples: 1
#sample_retract_dist: 2.0
samples_tolerance: 0.05
samples_tolerance_retries: 3
activate_gcode:
Probe_Deploy
G4 P500
# allow time for probe to deploy before homing Z
deactivate_gcode:
Probe_Stow
###########################################
############ Bed Leveling ###############
###########################################
[screws_tilt_adjust]
screw1: 25,55
screw1_name: Left-Front
screw2: 200,60
screw2_name: Right-Front
screw3: 200,215
screw3_name: Right-Back
screw4: 25,215
screw4_name: Left-Back
speed: 200
horizontal_move_z: 10
screw_thread: CW-M3
[bed_mesh]
speed: 150
horizontal_move_z: 8
#mesh_radius:
#mesh_origin:
mesh_min: 20, 20
mesh_max: 200, 180
probe_count: 3, 3
[safe_z_home]
home_xy_position: 110, 139.5
speed: 175
z_hop: 10
################################################
############## Bed Heater & Fans #############
################################################
[heater_bed]
heater_pin: PD8
sensor_type: Generic 3950
sensor_pin: PC4
#control: pid
#pid_Kp: 68.545
#pid_Kd: 627.184
#pid_Ki: 1.873
min_temp: 0
max_temp: 120
[fan]
pin: PD2
[heater_fan nozzle_cooling_fan]
pin: PD3
heater: extruder
heater_temp: 50.0
# [fan_generic case_fan]
# pin: PD4
# off_below: 0.5
# #heater: heater_bed
# #stepper: stepper_x, stepper_y, stepper_z, extruder
[temperature_fan Case_fans]
pin: PD4
sensor_type: temperature_host
off_below: 0.4
min_temp: 10
max_temp: 90
target_temp: 40
control: pid
pid_Kp: 2
pid_Ki: 4
pid_Kd: 0.1
# [controller_fan case_fan]
# pin: PD4
# heater: heater_bed
# stepper: stepper_x, stepper_y, stepper_z, extruder
[idle_timeout]
timeout: 5000
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=PD6, EXP1_3=PB9, EXP1_5=PA15, EXP1_7=PA9, EXP1_9=<GND>,
EXP1_2=PB8, EXP1_4=PC3, EXP1_6=PA10, EXP1_8=PB5, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PB14, EXP2_3=PC11, EXP2_5=PC12, EXP2_7=PC13, EXP2_9=<GND>,
EXP2_2=PB13, EXP2_4=PA8, EXP2_6=PB15, EXP2_8=<RST>, EXP2_10=<NC>
# See the sample-lcd.cfg file for definitions of common LCD displays.
[board_pins btt_manta_m4p]
aliases =
# X stepper
x_step_pin=PC6, x_dir_pin=PA14, x_enable_pin=PC7, x_uart_pin=PB12, x_diag_pin=PC0, x_endstop_pin=PC0,
# Y stepper
y_step_pin=PB10, y_dir_pin=PB2, y_enable_pin=PB11, y_uart_pin=PC10, y_diag_pin=PC1, y_endstop_pin=PC1,
# Z stepper
z_step_pin=PB0, z_dir_pin=PC5, z_enable_pin=PB1, z_uart_pin=PC9, z_diag_pin=PC2, z_endstop_pin=PC2,
# E0 stepper
e0_step_pin=PB3, e0_dir_pin=PB4, e0_enable_pin=PD5, e0_uart_pin=PA13, e0_diag_pin=PC15, e0_endstop_pin=PC15,
# TMC spi driver
#tmc_spi_bus=spi1, # TMC5160.cfg
# Hotend
e0_heater_pin=PC8, e0_sensor_pin=PA0,
# Heater bed
heater_bed_heating_pin=PD8, heater_bed_sensor_pin=PC4,
# Fan
fan_part_cooling_pin=PD2, fan_nozzle_cooling_pin=PD3, fan_case_cooling_pin=PD4,
# MicroProbe
microprobe_sensor_pin=PC14, microprobe_control_pin=PA1,
# ADXL345
adxl345_cs_pin=PD9, #adxl345_spi_bus=spi1, # Adxl.cfg
# Display
# EXP1 header
EXP1_1=PD6, EXP1_3=PB9, EXP1_5=PA15, EXP1_7=PA9, EXP1_9=<GND>,
EXP1_2=PB8, EXP1_4=PC3, EXP1_6=PA10, EXP1_8=PB5, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PB14, EXP2_3=PC11, EXP2_5=PC12, EXP2_7=PC13, EXP2_9=<GND>,
EXP2_2=PB13, EXP2_4=PA8, EXP2_6=PB15, EXP2_8=<RST>, EXP2_10=<NC>,
#mini12864_spi_bus=spi2, # Display.cfg
# RGB
hotend_rgb_pin=PD0, hotend_rgb2_pin=PD1
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 32.399
#*# pid_ki = 3.661
#*# pid_kd = 71.683
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.170000, -0.040000, -0.117500
#*# -0.197500, -0.065000, -0.060000
#*# -0.195000, -0.072500, -0.127500
#*# x_count = 3
#*# y_count = 3
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*# min_x = 18.11
#*# max_x = 201.49
#*# min_y = 19.549999999999997
#*# max_y = 181.09
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 71.943
#*# pid_ki = 2.551
#*# pid_kd = 507.199
#*#
#*# [input_shaper]
#*#
#*# [probe]
#*# z_offset = 2.550