-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter.cfg
330 lines (283 loc) · 6.07 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
[include mainsail.cfg]
[include stealthburner_leds.cfg]
[include KAMP_Settings.cfg]
[include Klicky/klicky-probe.cfg]
[exclude_object]
[pause_resume]
[virtual_sdcard]
path: ~/EnderwirePro_data/gcodes
[printer]
kinematics: corexz
max_velocity: 300
max_accel: 4000
max_accel_to_decel: 4000
max_z_velocity: 300
max_z_accel: 4000
[input_shaper]
shaper_freq_x: 37.735
shaper_freq_y: 38.461
shaper_type: mzv
[probe]
Pin: ^PC2
x_offset: 0
y_offset: 19.75
#z_offset: 6.17
speed: 3
lift_speed: 3
samples: 3
samples_result: median
sample_retract_dist: 2
samples_tolerance: 0.01
samples_tolerance_retries: 10
#[z_calibration]
#nozzle_xy_position: 188, 232
#switch_xy_position: 183, 211
#bed_xy_position: 117.5, 117.5
#wiggle_xy_offsets: 0, 0
#switch_offset: 0.87
#offset_margins: 3.0
#safe_z_height: 12
#speed: 250
#start_gcode: ATTACH_PROBE
#end_gcode: DOCK_PROBE
[servo klicky_servo]
pin: PC15
maximum_servo_angle: 180
minimum_pulse_width: 0.00025
maximum_pulse_width: 0.0024
[gcode_macro _servo_test_angle]
gcode:
{% set ANGLE = params.ANGLE|int %}
SET_SERVO SERVO=klicky_servo ANGLE={ANGLE}
G4 P250
SET_SERVO SERVO=klicky_servo WIDTH=0.0
[bed_mesh]
speed: 250
horizontal_move_z: 10
mesh_min: 5, 19.75
mesh_max: 211, 214
probe_count: 5, 5
algorithm: bicubic
[stepper_x]
step_pin: PB13
dir_pin: PB12
enable_pin: !PB14
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC0
position_endstop: 216
position_min: 0
position_max: 216
homing_speed: 50
[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
run_current: 0.700
#stealthchop_threshold: 999999
[stepper_y]
step_pin: PB10
dir_pin: PB2
enable_pin: !PB11
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC1
position_endstop: 0
position_min: 0
#position_max: 227
position_max: 232
homing_speed: 50
[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
run_current: 0.700
#stealthchop_threshold: 999999
[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
microsteps: 16
rotation_distance: 40
#endstop_pin: ^PD4
endstop_pin: probe:z_virtual_endstop
#position_endstop: 0
position_max: 200
position_min: -10
homing_speed: 5
[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
uart_address: 1
run_current: 0.700
#stealthchop_threshold: 999999
[extruder]
step_pin: PB3
dir_pin: PB4
enable_pin: !PD1
microsteps: 16
gear_ratio: 50:10
rotation_distance: 22.6789511
nozzle_diameter: 0.400
filament_diameter: 1.750
full_steps_per_rotation: 200
max_extrude_cross_section: 5
heater_pin: PC8
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: PA0
min_temp: 0
max_temp: 280
min_extrude_temp: 170
pressure_advance: 0.07575
#control: pid
#pid_Kp: 30.534
#pid_Ki: 3.770
#pid_Kd: 61.832
[firmware_retraction]
retract_length: 0.5
retract_speed: 35
unretract_extra_length: 0
unretract_speed: 10
[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
run_current: 0.400
stealthchop_threshold: 999999
[heater_bed]
heater_pin: PC9
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
min_temp: 0
max_temp: 140
#control: pid
#pid_Kp: 30.534
#pid_Ki: 3.770
#pid_Kd: 61.832
[controller_fan mainboard_fan]
pin: PC7
stepper: stepper_x, stepper_y, stepper_z
idle_timeout: 5
max_power: 0.6
[heater_fan hotend_fan]
pin: PC6
heater: extruder
heater_temp: 50.0
[fan]
pin: PB15
[neopixel enclosure_led]
pin: PD5
chain_count: 28
color_order: GRB
initial_RED: 1.0
initial_GREEN: 0.5
initial_BLUE: 0.1
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_3F003C000550415339373620-if00
restart_method: command
[board_pins]
aliases:
# EXP1 header
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PD6, EXP1_10=<5V>
[display]
lcd_type: st7920
cs_pin: PB8
sclk_pin: PB9
sid_pin: PD6
encoder_pins: ^PA10, ^PA9
click_pin: ^!PA15
[gcode_macro Enclosure_LED_On]
gcode:
SET_LED LED=enclosure_led RED=1 GREEN=0.5 BLUE=0.1
[gcode_macro Enclosure_LED_off]
gcode:
SET_LED LED=enclosure_led RED=0 GREEN=0 BLUE=0
######################################################################
# Start Print and End Print
######################################################################
[gcode_macro START_PRINT]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
# Reset extruder
G92 E0
# Start bed heating
STATUS_HEATING
M140 S{BED_TEMP}
# Wait for bed to reach temp before continuing
M190 S{BED_TEMP}
# Start hotend heating
M104 S{EXTRUDER_TEMP}
# Home printer if not homed
{% if "xyz" not in printer.toolhead.homed_axes %}
STATUS_HOMING
G28
{% endif %}
# Attach & Lock Probe
ATTACH_PROBE_LOCK
# Calibrate Z
#STATUS_CALIBRATING_Z
#CALIBRATE_Z
# Bed level
BED_MESH_CLEAR
STATUS_MESHING
BED_MESH_CALIBRATE
# Unlock & Dock Probe
DOCK_PROBE_UNLOCK
# Wait for extruder to reach temp continuing
STATUS_HEATING
M109 S{EXTRUDER_TEMP}
# Purge
STATUS_PRINTING
VORON_PURGE
[gcode_macro END_PRINT]
gcode:
# Turn off bed, extruder, and fan
M140 S0
M104 S0
M106 S0
# Move nozzle away from print while retracting
G91
G1 X-2 Y-2 E-10 F300
# Raise nozzle by 10mm
G1 Z10 F3000
G90
# Disable steppers
M84
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 71.603
#*# pid_ki = 1.693
#*# pid_kd = 757.202
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 34.245
#*# pid_ki = 4.005
#*# pid_kd = 73.198
#*#
#*# [probe]
#*# z_offset = 8.570
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.200000, 0.250000, 0.312500, 0.250000, 0.250000
#*# 0.025000, 0.087500, 0.150000, 0.150000, 0.137500
#*# -0.112500, -0.025000, 0.037500, 0.050000, 0.087500
#*# -0.162500, -0.100000, -0.025000, -0.000000, 0.025000
#*# -0.200000, -0.112500, -0.025000, -0.000000, 0.050000
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*# min_x = 18.2
#*# max_x = 197.8
#*# min_y = 23.7
#*# max_y = 211.5