-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter.cfg
364 lines (291 loc) · 5.87 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
[printer]
kinematics: corexy
max_velocity: 400
max_accel:20000
max_z_velocity: 20
max_z_accel: 500
square_corner_velocity: 5
minimum_cruise_ratio: 0.5
[include macros.cfg]
[stepper_x]
step_pin: PA15
dir_pin: PA14
enable_pin:!PB5
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:200
endstop_pin: IR3:PA8
position_endstop: 0
position_min:0
position_max: 250
homing_speed: 50
homing_retract_dist: 10
[tmc2209 stepper_x]
uart_pin: PC11
interpolate: True
run_current: 1.0
sense_resistor: 0.110
stealthchop_threshold:0
[stepper_y]
step_pin: PA8
dir_pin: PC9
enable_pin: !PB6
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:200
endstop_pin:probe:y_virtual_endstop
position_endstop: 0
position_min: -5
position_max: 354
homing_speed: 10
second_homing_speed:3
[tmc2209 stepper_y]
uart_pin: PA10
interpolate: True
run_current: 1.0
sense_resistor: 0.110
stealthchop_threshold:0
[stepper_z]
step_pin: PC8
dir_pin: PC6
enable_pin: !PC7
microsteps: 32
rotation_distance: 3.7
full_steps_per_rotation: 200
endstop_pin: !PB2
position_endstop:0
homing_positive_dir: False
position_max: 99999
position_min: -5
homing_speed: 0.1
homing_retract_dist:0
[tmc2240 stepper_z]
cs_pin:PB12
spi_software_sclk_pin:PB13
spi_software_mosi_pin:PB15
spi_software_miso_pin:PB14
run_current: 1.2
hold_current:0.6
stealthchop_threshold: 0
[extruder]
step_pin: IR3:PC15
dir_pin: IR3:PC14
enable_pin: !IR3:PA1
microsteps: 32
rotation_distance: 4.4
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: IR3:PB10
min_extrude_temp: 0
max_power: 1.0
sensor_pin: IR3:PA3
sensor_type: ATC Semitec 104GT-2
pullup_resistor: 2200
min_temp: -200
max_temp: 310
#control = pid
#pid_kp = 16.625
#pid_ki = 1.368
#pid_kd = 50.501
pressure_advance: 0.02
pressure_advance_smooth_time:0.01
[tmc2209 extruder]
uart_pin: IR3:PA0
run_current: 0.8
stealthchop_threshold: 0
[temperature_sensor IR3_CAN]
sensor_type: temperature_mcu
sensor_mcu: IR3
max_temp:100
[temperature_sensor IR3_MCU]
sensor_type: temperature_mcu
sensor_mcu: mcu
max_temp:100
[temperature_sensor IR3_HOST]
sensor_type: temperature_host
min_temp: 10
max_temp: 90
[multi_pin my_fan]
pins: IR3:PB11, IR3:PB1
[fan]
pin: multi_pin:my_fan
[heater_fan HEAD2]
pin: IR3:PB2
max_power:1.0
fan_speed: 0.8
shutdown_speed: 1
[heater_bed]
heater_pin: PB3
sensor_type:ATC Semitec 104GT-2
sensor_pin: PC5
max_power: 1.0
min_temp: 10
max_temp: 90
#control = pid
#pid_kp = 67.577
#pid_ki = 1.700
#pid_kd = 671.544
[bed_mesh]
speed: 20
horizontal_move_y: 3
mesh_min: 0,3
mesh_max: 250,3
probe_count: 6,1
mesh_pps: 5, 1
algorithm: lagrange
[safe_z_home]
home_xy_position:0,5
speed: 20.0
z_hop_speed: 3.0
z_hop: 3
[smart_effector]
pin: IR3:PB12
speed: 1
samples: 2
sample_retract_dist:3
samples_result:average
samples_tolerance: 0.1
samples_tolerance_retries:2
lift_speed:20
recovery_time:0.1
z_offset = 0
[idle_timeout]
timeout: 300
gcode:
{% if printer.pause_resume.is_paused %}
M104 S0
{% else %}
TURN_OFF_HEATERS
M84
{% endif %}
[display_status]
[delayed_gcode turn_off_beep]
gcode:
SET_PIN PIN=Beep VALUE=0
[output_pin Beep]
pin: PC4
[filament_motion_sensor encoder_sensor]
switch_pin: PA1
detection_length: 12
extruder: extruder
pause_on_runout: True
runout_gcode:
BASE_PAUSE
M117 Filament encoder runout
SET_PIN PIN=Beep VALUE=1
UPDATE_DELAYED_GCODE ID=turn_off_beep DURATION=8
insert_gcode:
M117 Filament encoder inserted
event_delay: 3.0
pause_delay: 0.8
[adxl345]
cs_pin:IR3:PA4
spi_bus:spi1
[resonance_tester]
accel_chip: adxl345
probe_points: 125, 150, 20
[delayed_gcode LOAD]
initial_duration: 1
gcode:
BED_MESH_PROFILE LOAD=default
[respond]
default_type: error
[led led]
white_pin:PB4
cycle_time: 0.010
hardware_pwm: False
[pause_resume]
[virtual_sdcard]
path: ~/printer_data/gcodes
[gcode_macro FMS_on]
gcode:
M117 ENABLING the Filament Motion Sensor
SET_FILAMENT_SENSOR SENSOR=encoder_sensor ENABLE=1
[gcode_macro FMS_off]
gcode:
M117 DISABLING the Filament Motion Sensor
SET_FILAMENT_SENSOR SENSOR=encoder_sensor ENABLE=0
[gcode_macro LOAD_FILAMENT]
variable_load_distance: 50
variable_purge_distance: 2
gcode:
{% set speed = params.SPEED|default(300) %}
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity * 5 %}
SAVE_GCODE_STATE NAME=load_state
G91
G92 E0
G1 E{load_distance} F{max_velocity}
G1 E-{purge_distance} F{speed}
RESTORE_GCODE_STATE NAME=load_state
[gcode_macro UNLOAD_FILAMENT]
variable_unload_distance: 50
variable_purge_distance: 2
gcode:
{% set speed = params.SPEED|default(500) %}
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity * 5 %}
SAVE_GCODE_STATE NAME=unload_state
G91
G92 E0
G1 E{purge_distance} F{speed}
G1 E-{unload_distance} F{max_velocity}
RESTORE_GCODE_STATE NAME=unload_state
[input_shaper]
#shaper_type_x = zv
#shaper_freq_x = 106.0
#shaper_type_y = 3hump_ei
#shaper_freq_y = 76.0
[extruder]
#control = pid
#pid_kp = 18.572
#pid_ki = 1.346
#pid_kd = 64.073
[heater_bed]
#control = pid
#pid_kp = 66.211
#pid_ki = 1.672
#pid_kd = 655.486
[bed_mesh default]
#version = 1
#points = 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
#x_count = 6
#y_count = 1
#mesh_x_pps = 5
#mesh_y_pps = 1
#algo = lagrange
#tension = 0.2
#min_x = 0.0
#max_x = 250.0
#min_y = -0.01
#max_y = 0.01
[mcu]
canbus_uuid: 0cf5425866f3
[mcu IR3]
canbus_uuid: 51d34702560a
[input_shaper]
shaper_type_x = zv
shaper_freq_x = 121.2
shaper_type_y = 3hump_ei
shaper_freq_y = 84.0
[extruder]
control = pid
pid_kp = 19.533
pid_ki = 1.691
pid_kd = 56.402
[heater_bed]
control = pid
pid_kp = 61.600
pid_ki = 1.402
pid_kd = 676.827
[bed_mesh default]
version = 1
points = 0.000000, -0.210000, -0.380000, -0.590000, -0.590000, -0.470000
x_count = 6
y_count = 1
mesh_x_pps = 5
mesh_y_pps = 1
algo = lagrange
tension = 0.2
min_x = 0.0
max_x = 250.0
min_y = -0.59
max_y = 0.0