4o66

X-Plus 3 printer.cfg

Oct 27th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.73 KB | None | 0 0
  1. ####################################################################
  2. # _ __ __ _ _ _
  3. # | |/ /___ _ __ / _(_) __ _ _ _ _ __ __ _| |_(_)
  4. # | ' // _ \| '_ \| |_| |/ _` | | | | '__/ _` | __| |/ _ \| '_ \
  5. # | . \ (_) | | | | _| | (_| | |_| | | | (_| | |_| | (_) | | | |
  6. # |_|\_\___/|_| |_|_| |_|\__, |\__,_|_| \__,_|\__|_|\___/|_| |_|
  7. # |___/
  8. # ___ _ _ _ __ __ ____ _ _____
  9. # / _ \(_) __| (_) \ \/ / | _ \| |_ _ ___ |___ /
  10. # | | | | |/ _` | | \ /_____| |_) | | | | / __| |_ \
  11. # | |_| | | (_| | | / \_____| __/| | |_| \__ \ ___) |
  12. # \__\_\_|\__,_|_| /_/\_\ |_| |_|\__,_|___/ |____/
  13. #
  14. ####################################################################
  15. #[include mainsail.cfg]
  16. [include macros/client.cfg]
  17. [include macros/sensorless_homing_override.cfg]
  18. [include macros/macros.cfg]
  19. #[include K-ShakeTune/*.cfg]
  20. #[include macros/dryer.cfg]
  21. [include macros/timelapse.cfg]
  22. #[include macros/clean_backups.cfg]
  23. #[include macros/klipperscreen_shutdown.cfg]
  24. [include macros/adaptive_mesh.cfg]
  25. [include macros/custom.cfg]
  26.  
  27. #################################################
  28. # Prevent error checks
  29. #################################################
  30. [duplicate_pin_override]
  31. pins: PA1,PC9
  32. # A comma-separated list of pins that can be used multiple times in
  33. # of a configuration file without normal error checks. This parameter must be
  34. # be specified.
  35.  
  36. #################################################
  37. # Printer / MCU Settings
  38. #################################################
  39. [mcu]
  40. serial: /dev/ttyS0
  41. restart_method: command
  42.  
  43. [mcu MKS_THR]
  44. serial:/dev/serial/by-id/usb-Klipper_rp2040_D59D8B163A765058-if00
  45.  
  46. [printer]
  47. kinematics:corexy
  48. max_velocity: 600
  49. max_accel: 20000
  50. minimum_cruise_ratio: 0.5
  51. max_z_velocity: 5
  52. max_z_accel: 500
  53. square_corner_velocity: 5
  54.  
  55. #################################################
  56. # Extruder
  57. #################################################
  58. [extruder]
  59. step_pin: MKS_THR:gpio5
  60. dir_pin: MKS_THR:gpio4
  61. enable_pin: !MKS_THR:gpio10
  62. rotation_distance: 53.102
  63. gear_ratio: 1628:170
  64. microsteps: 16
  65. full_steps_per_rotation: 200 #200 for 1.8 Grad, 400 for 0.9 Grad
  66. nozzle_diameter: 0.400
  67. filament_diameter: 1.75
  68. min_temp: 0
  69. max_temp: 360
  70. min_extrude_temp: 170
  71. smooth_time: 0.000001
  72. heater_pin: MKS_THR:gpio0
  73. sensor_type: MAX6675
  74. sensor_pin: MKS_THR:gpio17
  75. spi_speed: 100000
  76. spi_software_sclk_pin: MKS_THR:gpio18
  77. spi_software_mosi_pin: MKS_THR:gpio19
  78. spi_software_miso_pin: MKS_THR:gpio16
  79. max_power: 1.0
  80. control: pid
  81. pid_Kp: 14.734
  82. pid_Ki: 6.549
  83. pid_Kd: 8.288
  84. pressure_advance: 0.032
  85. pressure_advance_smooth_time: 0.03
  86. max_extrude_cross_section: 500
  87. instantaneous_corner_velocity: 10.000
  88. max_extrude_only_distance: 120.0
  89. max_extrude_only_velocity: 5000
  90. max_extrude_only_accel: 2000
  91. step_pulse_duration: 0.000002
  92.  
  93. [tmc2209 extruder]
  94. uart_pin: MKS_THR: gpio6
  95. interpolate: True
  96. run_current: 0.714
  97. stealthchop_threshold: 0
  98.  
  99. [verify_heater extruder]
  100. max_error: 120
  101. check_gain_time: 20
  102. hysteresis: 5
  103. heating_gain: 1
  104.  
  105. #################################################
  106. # X, Y, Z stepper motors / Driver settings
  107. #################################################
  108. [stepper_x]
  109. step_pin: PB4
  110. dir_pin: PB3
  111. enable_pin: !PB5
  112. microsteps: 16
  113. rotation_distance: 39.96
  114. full_steps_per_rotation: 200
  115. endstop_pin: tmc2209_stepper_x:virtual_endstop
  116. position_min: -11
  117. position_endstop: -11
  118. position_max: 280
  119. homing_speed: 40
  120. homing_retract_dist: 0
  121. homing_positive_dir: False
  122. step_pulse_duration: 0.000002
  123.  
  124. [tmc2209 stepper_x]
  125. uart_pin: PD2
  126. run_current: 1.07
  127. interpolate: True
  128. stealthchop_threshold: 0
  129. diag_pin: ^PB8
  130. driver_SGTHRS: 85
  131.  
  132. #################################################
  133.  
  134. [stepper_y]
  135. step_pin: PC14
  136. dir_pin: PC13
  137. enable_pin: !PC15
  138. microsteps: 16
  139. rotation_distance: 39.96
  140. full_steps_per_rotation: 200
  141. endstop_pin: tmc2209_stepper_y:virtual_endstop
  142. position_min: -24
  143. position_endstop: -24
  144. position_max: 280
  145. homing_speed: 40
  146. homing_retract_dist: 0
  147. homing_positive_dir: False
  148. step_pulse_duration: 0.000002
  149.  
  150. [tmc2209 stepper_y]
  151. uart_pin: PB9
  152. run_current: 1.07
  153. interpolate: True
  154. stealthchop_threshold: 0
  155. diag_pin: ^PC0
  156. driver_SGTHRS: 97
  157.  
  158. #################################################
  159.  
  160. [stepper_z]
  161. step_pin: PC10
  162. dir_pin: PA15
  163. enable_pin: !PC11
  164. microsteps: 16
  165. rotation_distance: 8
  166. full_steps_per_rotation: 200
  167. endstop_pin: probe:z_virtual_endstop
  168. position_max: 280
  169. position_min: -6
  170. homing_speed: 8
  171. homing_retract_dist: 8.0
  172. second_homing_speed: 8
  173. homing_positive_dir: false
  174. step_pulse_duration: 0.000002
  175.  
  176. [tmc2209 stepper_z]
  177. uart_pin: PC5
  178. run_current: 0.285
  179. interpolate: True
  180. stealthchop_threshold: 1200
  181.  
  182. #################################################
  183. # Heated bed
  184. #################################################
  185.  
  186. [heater_bed]
  187. heater_pin: PC8
  188. sensor_type: NTC 100K MGB18-104F39050L32
  189. sensor_pin: PA0
  190. max_power: 1.0
  191. control: pid
  192. pid_Kp: 71.039
  193. pid_Ki: 2.223
  194. pid_Kd: 567.421
  195. min_temp: -100
  196. max_temp: 125
  197.  
  198. [verify_heater heater_bed]
  199. max_error: 200
  200. check_gain_time: 60
  201. hysteresis: 3
  202. heating_gain: 1
  203.  
  204. #################################################
  205. # Temperature sensors
  206. #################################################
  207. [temperature_sensor Mainboard]
  208. sensor_type: temperature_host
  209. min_temp: 5
  210. max_temp: 80
  211.  
  212. [temperature_sensor MCU]
  213. sensor_type: temperature_mcu
  214.  
  215. [temperature_sensor Toolhead]
  216. sensor_type: temperature_mcu
  217. sensor_mcu: MKS_THR
  218. min_temp: 0
  219. max_temp: 80
  220.  
  221. #################################################
  222. # Heated chamber
  223. #################################################
  224. [heater_generic chamber]
  225. heater_pin: PB10
  226. max_power: 1.0
  227. sensor_type: NTC 100K MGB18-104F39050L32
  228. sensor_pin: PA1
  229. control: watermark
  230. max_delta: 1.0
  231. #pid_Kp: 63.418
  232. #pid_Ki: 1.342
  233. #pid_Kd: 749.125
  234. min_temp: -100
  235. max_temp: 65
  236.  
  237. [verify_heater chamber]
  238. max_error: 300
  239. check_gain_time: 480
  240. hysteresis: 5
  241. heating_gain: 1
  242.  
  243. #################################################
  244. # Fans
  245. #################################################
  246. ## Auxiliary fan
  247. [fan_generic auxiliary_cooling_fan]
  248. pin: PA8
  249. shutdown_speed: 0.0
  250. cycle_time: 0.100
  251. hardware_pwm: false
  252. kick_start_time: 0.100
  253. off_below: 0.0
  254.  
  255. ## Chamber Exhaust
  256. [fan_generic chamber_exhaust_fan]
  257. pin:PC9
  258. shutdown_speed: 0.0
  259. cycle_time: 0.100
  260. hardware_pwm: false
  261. kick_start_time: 0.100
  262. off_below: 0.0
  263.  
  264. [temperature_fan chamber]
  265. pin: PC9
  266. max_power: 1
  267. hardware_pwm: false
  268. off_below:.1
  269. sensor_type: NTC 100K MGB18-104F39050L32
  270. sensor_pin: PA1
  271. control: pid
  272. pid_Kp: 60
  273. pid_Ki: 1
  274. pid_Kd: 900
  275. pid_deriv_time: 120
  276. min_temp: 0
  277. max_temp: 90
  278. target_temp: 50.0
  279. max_speed: 1
  280. min_speed: 0.0
  281. gcode_id: chamber
  282.  
  283. ## Hotend Fan
  284. [heater_fan hotend_fan]
  285. pin: MKS_THR:gpio1
  286. max_power: 1.0
  287. kick_start_time: 0.5
  288. heater: extruder
  289. heater_temp: 50.0
  290. fan_speed: 1.0
  291. off_below: 0
  292.  
  293. ## Hotend Fan 2
  294. [heater_fan hotend_fan_2]
  295. pin: MKS_THR:gpio20
  296. max_power: 1.0
  297. kick_start_time: 0.5
  298. heater: extruder
  299. heater_temp: 50.0
  300. fan_speed: 1.0
  301. off_below: 0
  302.  
  303. ## Mainboard fan
  304. [heater_fan mainboard_fan]
  305. pin: PC4
  306. max_power: 1.0
  307. kick_start_time: 0.5
  308. heater: extruder
  309. heater_temp: 50.0
  310. fan_speed: 1.0
  311. off_below: 0
  312.  
  313. ## Part Cooling
  314. [fan_generic part_cooling_fan]
  315. pin: MKS_THR:gpio2
  316. shutdown_speed: 0.0
  317. cycle_time: 0.100
  318. hardware_pwm: false
  319. kick_start_time: 0.100
  320. off_below: 0.0
  321.  
  322. #################################################
  323. # LEDs / Beep
  324. #################################################
  325. [output_pin caselight]
  326. pin: PC7
  327. pwm: false
  328. shutdown_value: 0
  329. value: 1
  330.  
  331. [output_pin beeper]
  332. pin: PA2
  333. pwm: false
  334. shutdown_value: 0
  335. value: 0
  336.  
  337. [output_pin sound]
  338. pin: PA13
  339. value: 1
  340.  
  341. #################################################
  342. # Power outage shutdown
  343. #################################################
  344. [output_pin pwc]
  345. pin: PA3
  346. pwm: False
  347. value: 1
  348. shutdown_value: 1
  349.  
  350. #################################################
  351. # Filament sensor
  352. #################################################
  353. [filament_switch_sensor fila]
  354. pause_on_runout: True
  355. runout_gcode:
  356. PAUSE
  357. SET_FILAMENT_SENSOR SENSOR=fila ENABLE=1
  358. event_delay: 3.0
  359. pause_delay: 0.5
  360. switch_pin: !PC1
  361.  
  362. #################################################
  363. # Bed mesh / Leveling tools
  364. #################################################
  365. [bed_mesh]
  366. speed: 150 #Speed
  367. horizontal_move_z: 10 #Height Z-Axis
  368. mesh_min: 18,20 #Minimum position of the detection points
  369. mesh_max: 260,260 #Maximum position of the detection points
  370. probe_count: 8,8 #Number of measuring points - 6x6 - 7x7 etc.
  371. algorithm: bicubic
  372. bicubic_tension: 0.2
  373. mesh_pps: 5, 5
  374.  
  375. [probe]
  376. pin: ^!MKS_THR:gpio21
  377. x_offset: 27.8
  378. y_offset: 6.75
  379. #z_offset: 0.0
  380. speed: 5
  381. samples: 2
  382. samples_result: average
  383. sample_retract_dist: 3.0
  384. samples_tolerance: 0.08
  385. samples_tolerance_retries:3
  386.  
  387. [screws_tilt_adjust]
  388. screw1: 23, 43
  389. screw1_name: Front left screw
  390. screw2: 203, 43
  391. screw2_name: Front right screw
  392. screw3: 203, 223
  393. screw3_name: Rear right screw
  394. screw4: 223, 223
  395. screw4_name: Rear left screw
  396. horizontal_move_z: 8
  397. speed: 300
  398. screw_thread: CCW-M4
  399.  
  400. #################################################
  401. # Shake and Tune
  402. #################################################
  403.  
  404. [shaketune]
  405. result_folder: ~/printer_data/config/ShakeTune_results #The folder where the results will be stored. It will be created if it doesn't exist.
  406. number_of_results_to_keep: 3 #The number of results to keep in the result_folder. The oldest results will be automatically deleted after each runs.
  407. keep_raw_data: False #If True, the raw CSV files will be kept in the result_folder alongside the PNG graphs. If False, they will be deleted and only the graphs will be kept.
  408. show_macros_in_webui: True #Mainsail and Fluidd doesn't create buttons for "system" macros that are not in the printer.cfg file. If you want to see the macros in the webui, set this to True.
  409. timeout: 300 #The maximum time in seconds to let Shake&Tune process the CSV files and generate the graphs.
  410.  
  411. #################################################
  412. # Input shaping
  413. #################################################
  414. [adxl345]
  415. cs_pin: MKS_THR:gpio13
  416. spi_software_sclk_pin: MKS_THR:gpio14
  417. spi_software_mosi_pin: MKS_THR:gpio15
  418. spi_software_miso_pin: MKS_THR:gpio12
  419. axes_map: -x, z, -y
  420.  
  421. [resonance_tester]
  422. accel_chip:adxl345
  423. probe_points:
  424. 140, 140, 20 # an example
  425.  
  426. [input_shaper]
  427. shaper_freq_x: 48.0
  428. shaper_type_x: mzv
  429. damping_ratio_x: 0.059
  430. shaper_freq_y: 42.2
  431. shaper_type_y: mzv
  432. damping_ratio_y: 0.049
  433.  
  434. #################################################
  435. # TMC AutoTune
  436. #################################################
  437.  
  438. [autotune_tmc stepper_x]
  439. motor: qidi-BJ42D29-28V07
  440. [autotune_tmc stepper_y]
  441. motor: qidi-BJ42D29-28V07
  442.  
  443. [autotune_tmc stepper_z]
  444. motor: qidi-BJ42D29-22V08
  445.  
  446. [autotune_tmc extruder]
  447. motor: qidi-BJY36D12-04V13
  448.  
  449.  
  450. #################################################
  451. # Miscellaneous
  452. #################################################
  453.  
  454. #################################################
  455. # client.cfg contains: #
  456. # - virtual_sdcard #
  457. # - pause_resume #
  458. # - display_status #
  459. # - respond #
  460. #################################################
  461.  
  462. [exclude_object]
  463.  
  464. [gcode_arcs]
  465. resolution: 0.2 #1.0
  466.  
  467. [idle_timeout]
  468. timeout: 86400
  469.  
  470. [virtual_sdcard]
  471. path: /home/scox/printer_data/gcodes
  472. on_error_gcode: CANCEL_PRINT
  473.  
  474.  
  475. #################################################
  476. # Auto-Config
  477. #################################################
  478.  
  479. #*# <---------------------- SAVE_CONFIG ---------------------->
  480. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  481. #*#
  482. #*# [bed_mesh default]
  483. #*# version = 1
  484. #*# points =
  485. #*# -0.091250, -0.081250, -0.033750, -0.057500, -0.072500, -0.050000, -0.015000, -0.006250
  486. #*# -0.026250, -0.002500, -0.001250, -0.021250, -0.030000, -0.018750, 0.023750, 0.030000
  487. #*# -0.018750, -0.020000, 0.015000, -0.008750, -0.018750, -0.008750, 0.020000, 0.028750
  488. #*# -0.003750, -0.008750, 0.018750, 0.000000, -0.011250, -0.023750, 0.008750, 0.026250
  489. #*# -0.005000, -0.023750, 0.008750, -0.018750, -0.040000, -0.036250, -0.012500, 0.005000
  490. #*# -0.013750, -0.031250, -0.008750, -0.037500, -0.065000, -0.072500, -0.050000, -0.031250
  491. #*# -0.015000, -0.026250, -0.035000, -0.062500, -0.101250, -0.112500, -0.072500, -0.088750
  492. #*# -0.021250, -0.062500, -0.062500, -0.110000, -0.151250, -0.162500, -0.150000, -0.160000
  493. #*# x_count = 8
  494. #*# y_count = 8
  495. #*# mesh_x_pps = 5
  496. #*# mesh_y_pps = 5
  497. #*# algo = bicubic
  498. #*# tension = 0.2
  499. #*# min_x = 18.0
  500. #*# max_x = 259.99
  501. #*# min_y = 20.0
  502. #*# max_y = 259.96000000000004
  503. #*#
  504. #*# [bed_mesh kamp]
  505. #*# version = 1
  506. #*# points =
  507. #*# -0.187500, -0.150000, -0.151250, -0.162500, -0.146250, -0.151250, -0.146250, -0.121250
  508. #*# -0.128750, -0.101250, -0.100000, -0.102500, -0.101250, -0.105000, -0.107500, -0.081250
  509. #*# -0.066250, -0.065000, -0.068750, -0.062500, -0.063750, -0.070000, -0.070000, -0.052500
  510. #*# -0.011250, -0.015000, -0.016250, -0.028750, -0.032500, -0.056250, -0.056250, -0.042500
  511. #*# 0.023750, -0.005000, -0.007500, -0.020000, -0.023750, -0.042500, -0.053750, -0.045000
  512. #*# 0.050000, 0.027500, 0.006250, -0.018750, -0.040000, -0.063750, -0.071250, -0.065000
  513. #*# 0.075000, 0.040000, 0.002500, -0.030000, -0.050000, -0.072500, -0.095000, -0.105000
  514. #*# x_count = 8
  515. #*# y_count = 7
  516. #*# mesh_x_pps = 5
  517. #*# mesh_y_pps = 5
  518. #*# algo = bicubic
  519. #*# tension = 0.2
  520. #*# min_x = 18.0
  521. #*# max_x = 259.99
  522. #*# min_y = 26.8028
  523. #*# max_y = 222.70280000000002
  524. #*#
  525. #*# [probe]
  526. #*# z_offset = 1.430
  527.  
Advertisement
Add Comment
Please, Sign In to add comment