-
Notifications
You must be signed in to change notification settings - Fork 1
/
printer.cfg
242 lines (209 loc) · 5.08 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
# This file contains pin mappings for the Creality "v4.2.10" board. To
# use this config, during "make menuconfig" select the STM32F103 with
# a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication.
# If you prefer a direct serial connection, in "make menuconfig"
# select "Enable extra low-level configuration options" and select
# serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
# cable used for the LCD module as follows:
# 3: Tx, 4: Rx, 9: GND, 10: VCC
# Flash this firmware by copying "out/klipper.bin" to a SD card and
# turning on the printer with the card inserted. The firmware
# filename must end in ".bin" and must not match the last filename
# that was flashed.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PC2
dir_pin: !PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^!PA3
position_endstop: 0
position_max: 220
homing_speed: 50
[stepper_y]
step_pin: PB8
dir_pin: !PB7
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^!PA7
position_endstop: 0
position_max: 240
homing_speed: 50
[stepper_z]
step_pin: PB6
dir_pin: !PB5
enable_pin: !PC3
microsteps: 16
rotation_distance: 2.75
endstop_pin: ^!PA5
position_endstop: 0
position_min: -250
position_max: 1000000
[extruder]
max_extrude_only_distance: 100.0
max_extrude_cross_section: 2.0
step_pin: PB4
dir_pin: !PB3
enable_pin: !PC3
microsteps: 16
rotation_distance: 23.0
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA0
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
min_temp: 0
max_temp: 250
pressure_advance: 0.50
[force_move]
enable_force_move: True
[filament_switch_sensor spool]
pause_on_runout: True
switch_pin: ^!PA6
[heater_bed]
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
min_temp: 0
max_temp: 130
# K-FAN1
[fan]
pin: PA2
# K-FAN2
[heater_fan extruder]
pin: PC0
heater: extruder
heater_temp: 50.0
# K-FAN3
[temperature_fan mcu]
pin: PC1
sensor_type: temperature_mcu
control: watermark
min_temp: 0
max_temp: 100
target_temp: 30
; Neopixel LED support
; [neopixel led_neopixel]
; pin: PC14
; BL-touch
; [bltouch]
; control_pin: PB0
; sensor_pin: PB1
; TMC Uart Mod Pins:
; https://github.com/adelyser/Marlin-CR30/wiki
; [tmc2208 stepper_x]
; uart_pin: PB0
;
; [tmc2208 stepper_y]
; uart_pin: PB1
;
; [tmc2208 stepper_z]
; uart_pin: PA13
;
; [tmc2208 extruder]
; uart_pin: PA14
[mcu]
serial: /dev/ttyUSB0
baud: 250000
restart_method: command
[display]
lcd_type: st7920
cs_pin: PB12
sclk_pin: PB13
sid_pin: PB15
encoder_pins: ^PB14, ^PB10
click_pin: ^!PB2
[output_pin beeper]
pin: PC6
[printer]
kinematics: corexy
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
# Override to support unlimited belt size
# (homing Z simply resets its virtual position to 0.0)
[homing_override]
axes: z
set_position_z: 0
gcode:
{% if params.X is not defined and params.Y is not defined and params.Z is not defined %}G28 X0 Y0{% endif %}
{% if params.X is defined %}G28 X0{% endif %}
{% if params.Y is defined %}G28 Y0{% endif %}
G92 Z0
# Eject all printed parts from the belt
[gcode_macro BED_EJECT]
gcode:
TURN_OFF_HEATERS
G28 ; Re-home
G1 X50 Y50 F6000 ; Move hotend out of the way of the belt
G1 Z420 F4000 ; Unload belt
G28 Z0 ; Re-home Z
[virtual_sdcard]
# for gcode upload
path: /tmp
[display_status]
# for display messages in status panel
[pause_resume]
# for pause/resume functionality.
# Mainsail/fluidd needs gcode macros for `PAUSE`, `RESUME` and `CANCEL_PRINT` to make the buttons work.
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 100 #edit to your park position
default_parameter_Y: 100 #edit to your park position
default_parameter_E: 1 #edit to your retract length
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{E} F2100
G90
G1 X{X} Y{Y} F6000
[gcode_macro RESUME]
rename_existing: BASE_RESUME
default_parameter_E: 1 #edit to your retract length
gcode:
G91
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
[menu __main __octoprint]
type: disabled
[menu __main __control __eject]
type: command
enable: {not printer.idle_timeout.state == "Printing"}
name: Bed Eject
gcode:
BED_EJECT
# Enable SD file loop support
[sdcard_loop]
# 'Marlin' style M808 compatibility macro for SDCard looping
[gcode_macro M808]
gcode:
{% if params.K is not defined and params.L is defined %}SDCARD_LOOP_BEGIN COUNT={params.L|int}{% endif %}
{% if params.K is not defined and params.L is not defined %}SDCARD_LOOP_END{% endif %}
{% if params.K is defined and params.L is not defined %}SDCARD_LOOP_DESIST{% endif %}
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 22.120
#*# pid_ki = 1.460
#*# pid_kd = 83.778
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 66.633
#*# pid_ki = 1.516
#*# pid_kd = 732.132