-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprinter.cfg
201 lines (171 loc) · 3.86 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
# See docs/Config_Reference.md for a description of parameters.
[include kiauh_macros.cfg]
[include custom_macros.cfg]
[include LCD.cfg]
[include homing_override.cfg]
[include runout.cfg]
[exclude_object]
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
#[temperature_sensor mcu_temp]
#sensor_type: temperature_mcu
#min_temp: 0
#max_temp: 100
[virtual_sdcard]
path: ~/gcode_files
# MKS Gen l V1
[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: 0
position_max: 250
homing_speed: 30
[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: 0
position_max: 360
homing_speed: 30
[stepper_z]
step_pin: PL3
dir_pin: !PL1
enable_pin: !PK0
microsteps: 16
rotation_distance: 48.324
endstop_pin: ^PD3 #Z-Min, PD2:Z-Max
position_endstop: 0
position_max: 99999
position_min: -3
[extruder]
step_pin: PA4
dir_pin: !PA6
enable_pin: !PA2
microsteps: 16
rotation_distance: 8.001438
nozzle_diameter: 0.4
filament_diameter: 1.750
heater_pin: PB4
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: PK5
min_temp: 0
max_temp: 250
#control = pid
#pid_Kp: 21.527
#pid_Ki: 1.063
#pid_Kd: 108.982
[heater_bed]
heater_pin: PH5
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: PK6
min_temp: 0
max_temp: 130
#control: pid
#pid_Kp: 325.10
#pid_Ki: 63.35
#pid_Kd: 417.10
[fan]
pin: PH6
[mcu]
serial:/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
########################################
# TMC UART configuration
########################################
[tmc2209 stepper_x]
uart_pin: PK1
interpolate: True
run_current: 0.8
hold_current: 0.5
sense_resistor: 0.110
stealthchop_threshold: 999999
diag_pin: ^PE5 # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 60 # 255 is most sensitive value, 0 is least sensitiv # Set to MCU pin connected to TMC DIAG pin
[tmc2209 stepper_y]
uart_pin: PK2
interpolate: True
run_current: 0.8
hold_current: 0.5
sense_resistor: 0.110
stealthchop_threshold: 999999
diag_pin: ^PJ1 # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 60 # 255 is most sensitive value, 0 is least sensitiv
[tmc2209 stepper_z]
uart_pin: PK3
interpolate: True
run_current: 0.8
hold_current: 0.5
sense_resistor: 0.110
stealthchop_threshold: 999999
diag_pin: ^PD2 # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 255 # 255 is most sensitive value, 0 is least sensitiv
[tmc2209 extruder]
uart_pin: PK4
interpolate: True
run_current: 0.8
hold_current: 0.5
sense_resistor: 0.110
stealthchop_threshold: 999999
[printer]
kinematics: corexy
max_velocity: 200
max_accel: 1500
max_z_velocity: 10
max_z_accel: 500
square_corner_velocity: 10.0
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.052500, -0.032500, 0.186250
#*# 0.053750, -0.070000, 0.233750
#*# 0.182500, 0.037500, 0.240000
#*# tension = 0.2
#*# min_x = 20.0
#*# algo = lagrange
#*# y_count = 3
#*# mesh_y_pps = 2
#*# min_y = 50.0
#*# x_count = 3
#*# max_y = 200.0
#*# mesh_x_pps = 2
#*# max_x = 170.0
#*#
#*# [bed_mesh name]
#*# version = 1
#*# points =
#*# 0.052500, -0.032500, 0.186250
#*# 0.053750, -0.070000, 0.233750
#*# 0.182500, 0.037500, 0.240000
#*# tension = 0.2
#*# min_x = 20.0
#*# algo = lagrange
#*# y_count = 3
#*# mesh_y_pps = 2
#*# min_y = 50.0
#*# x_count = 3
#*# max_y = 200.0
#*# mesh_x_pps = 2
#*# max_x = 170.0
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 16.635
#*# pid_ki = 0.685
#*# pid_kd = 101.059
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 70.254
#*# pid_ki = 1.667
#*# pid_kd = 740.301