Guest User

Untitled

a guest
Nov 6th, 2026
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.80 KB | None | 0 0
  1. [include mainsail.cfg]
  2. [include Klicky/klicky-variables.cfg]
  3. [include Klicky/klicky-macros.cfg]
  4. [include Klicky/homing-current.cfg]
  5.  
  6. [exclude_object]
  7.  
  8. [tmc5160 stepper_x]
  9. cs_pin: PC4
  10. spi_software_sclk_pin: PA5
  11. spi_software_mosi_pin: PA7
  12. spi_software_miso_pin: PA6
  13. run_current: 1.9
  14. sense_resistor: 0.075
  15. #driver_PWM_AUTOSCALE: True
  16. #driver_PWM_AUTOGRAD: True
  17. #driver_SGTHRS: 255
  18. diag1_pin: ^!PG6
  19. driver_SGT: 2
  20. stealthchop_threshold: 0
  21. interpolate: true
  22. home_current: 1.5
  23.  
  24. [stepper_x]
  25. step_pin: PF13
  26. dir_pin: PF12
  27. enable_pin: !PF14
  28. microsteps: 4
  29. rotation_distance: 40 #40.05
  30. endstop_pin: tmc5160_stepper_x:virtual_endstop
  31. homing_retract_dist: 0
  32. position_endstop: 350
  33. position_min: 0
  34. position_max: 350
  35. homing_speed: 70
  36. use_sensorless_homing: true
  37.  
  38. [stepper_y]
  39. step_pin: PG0
  40. dir_pin: PG1
  41. enable_pin: !PF15
  42. microsteps: 4
  43. rotation_distance: 40
  44. endstop_pin: tmc5160_stepper_y:virtual_endstop
  45. homing_retract_dist: 0
  46. position_endstop: 0
  47. position_min: 0
  48. position_max: 380
  49. homing_speed: 70
  50. use_sensorless_homing: true
  51.  
  52. [tmc5160 stepper_y]
  53. cs_pin: PD11
  54. spi_software_sclk_pin: PA5
  55. spi_software_mosi_pin: PA7
  56. spi_software_miso_pin: PA6
  57. diag1_pin: ^!PG9
  58. driver_SGT: 2
  59. run_current: 1.9
  60. sense_resistor: 0.075
  61. interpolate: true
  62. stealthchop_threshold: 0
  63. home_current: 1.5
  64.  
  65. [stepper_z]
  66. step_pin: PF11
  67. dir_pin: PG3
  68. enable_pin: !PG5
  69. microsteps: 16
  70. rotation_distance: 4
  71. endstop_pin: probe:z_virtual_endstop
  72. position_min: -10
  73. position_max: 400
  74. homing_speed: 10
  75.  
  76. [tmc5160 stepper_z]
  77. cs_pin: PC6
  78. spi_software_sclk_pin: PA5
  79. spi_software_mosi_pin: PA7
  80. spi_software_miso_pin: PA6
  81. run_current: 0.7
  82. sense_resistor: 0.075
  83.  
  84. [force_move]
  85. enable_force_move: True
  86.  
  87. [extruder]
  88. step_pin: PG4
  89. dir_pin: !PC1
  90. enable_pin: !PA2 #!PG2
  91.  
  92. microsteps: 32
  93. pressure_advance: 0.035
  94. rotation_distance: 4.637 #5.7 #5.998 #53.49
  95. max_extrude_only_distance: 101
  96.  
  97. full_steps_per_rotation: 200
  98. nozzle_diameter: 0.400
  99. filament_diameter: 1.750
  100.  
  101. heater_pin: PA0
  102. sensor_type: PT1000
  103. sensor_pin: PF4
  104.  
  105. min_temp: 0
  106. max_temp: 330
  107. min_extrude_temp: 0
  108. max_extrude_cross_section: 100
  109.  
  110. [tmc5160 extruder]
  111. cs_pin: PC7
  112. spi_software_sclk_pin: PA5
  113. spi_software_mosi_pin: PA7
  114. spi_software_miso_pin: PA6
  115. run_current: 0.8
  116. sense_resistor: 0.075
  117. interpolate: false
  118. stealthchop_threshold: 0
  119.  
  120. [firmware_retraction]
  121. retract_length: 0.4
  122. retract_speed: 35
  123. unretract_extra_length: 0
  124. unretract_speed: 35
  125.  
  126. [gcode_arcs]
  127. resolution: 1.0
  128.  
  129. [heater_bed]
  130. heater_pin: PA3
  131. sensor_type: EPCOS 100K B57560G104F
  132. sensor_pin: PF3
  133. min_temp: -100
  134. max_temp: 115
  135.  
  136.  
  137. [heater_fan heatbreak_cooling_fan]
  138. pin: PA8
  139.  
  140. [controller_fan controller_fan]
  141. pin: PD12
  142.  
  143. [fan]
  144. pin: PE5
  145.  
  146. [temperature_sensor host]
  147. sensor_type: temperature_host
  148. min_temp: 0
  149. max_temp: 100
  150.  
  151.  
  152. [mcu]
  153. serial: /dev/serial/by-id/usb-Klipper_stm32h723xx_160041000851313339373836-if00
  154.  
  155. [mcu rpi]
  156. serial: /tmp/klipper_host_mcu
  157.  
  158. [probe]
  159. pin: ^PB7
  160. x_offset: 0
  161. y_offset: 0
  162. #z_offset: -2
  163. speed: 5
  164. samples: 3
  165. samples_result: median
  166. sample_retract_dist: 2.0
  167. samples_tolerance: 0.05
  168. samples_tolerance_retries: 5
  169.  
  170. [bed_mesh]
  171. mesh_min: 1, 3
  172. mesh_max: 350, 350
  173. probe_count: 5, 5
  174. fade_start: 1.0
  175. fade_end: 10.0
  176. fade_target: 0.0
  177. horizontal_move_z: 7
  178. speed: 500
  179.  
  180. [printer]
  181. kinematics: corexy
  182. max_velocity: 1000
  183. max_accel: 30000
  184. max_z_velocity: 20
  185. max_z_accel: 500
  186. square_corner_velocity: 5
  187.  
  188. [input_shaper] shaper_freq_x = 44.6 shaper_freq_y = 41.4 shaper_type = ei
  189.  
  190. [adxl345]
  191. cs_pin: rpi:gpio5
  192. spi_bus: spidev0.0
  193.  
  194. [resonance_tester]
  195. accel_chip: adxl345
  196. probe_points:
  197. 175, 171, 20
  198.  
  199. [bed_screws]
  200. screw1: 72, 206
  201. screw2: 243, 206
  202. screw3: 243, 28
  203. screw4: 72, 28
  204.  
  205. [screws_tilt_adjust]
  206. screw1: 72, 206
  207. screw1_name: rear left screw
  208. screw2: 243, 206
  209. screw2_name: rear right screw
  210. screw3: 243, 28
  211. screw3_name: front right screw
  212. screw4: 72, 28
  213. screw4_name: front left screw
  214. horizontal_move_z: 5
  215. speed: 150
  216. screw_thread: CW-M3
  217.  
  218. [virtual_sdcard]
  219. path: ~/printer_data/gcodes
  220.  
  221. [include config_backup.cfg]
  222.  
  223.  
  224.  
  225. [gcode_macro BED_MESH_CALIBRATE]
  226. rename_existing: _BED_MESH_CALIBRATE
  227. gcode:
  228. ATTACH_PROBE
  229. _BED_MESH_CALIBRATE {rawparams}
  230. DOCK_PROBE
  231.  
  232.  
  233.  
  234. [gcode_macro START_PRINT]
  235. gcode:
  236. {% set BED_TEMP=params.BED_TEMP|default(60)|float %}
  237. {% set EXTRUDER_TEMP=params.EXTRUDER_TEMP|default(190)|float %}
  238.  
  239. # Home the printer
  240. G90
  241. M83
  242. G28
  243.  
  244. # Preheat the bed
  245. M140 S{BED_TEMP}
  246. M190 S{BED_TEMP}
  247. M104 S190
  248.  
  249. # Z probing sequence
  250. #BED_MESH_CALIBRATE
  251. BED_MESH_PROFILE LOAD=default
  252.  
  253. # Heat the extruder to the desired temperature
  254. M104 S{EXTRUDER_TEMP}
  255. M109 S{EXTRUDER_TEMP}
  256.  
  257. # Prime line sequence
  258. G1 Z5 F3000 ; lift
  259. G1 X20 Y5 F1500 ; move to prime position
  260. G1 Z0.15 F3000 ; get ready to prime
  261. G92 E0 ; reset extrusion distance
  262. G1 X100 E30 F600 ; prime nozzle with adjusted extrusion / E__ based on how much you like
  263.  
  264. # String removal circle after priming
  265. G1 Z0.2 F3000 ; adjust to 0.2mm above the bed
  266. G1 Y15 F10000 ; move the toolhead in the Y direction by 15 units
  267.  
  268. # Execute the circle 3 times
  269. G2 I-5 J0 F10000 ; circle with 5mm radius
  270. G2 I-5 J0 F10000
  271. G2 I-5 J0 F10000
  272.  
  273. [gcode_macro PURGE]
  274. gcode:
  275. {% if printer["gcode_macro status_cleaning"] != null %}
  276. status_cleaning
  277. {% endif %}
  278. SAVE_GCODE_STATE NAME=Pre_Prime
  279.  
  280. G90
  281. G92 E0 ;Reset Extruder
  282.  
  283. G1 Z10.0 F3000 ;Move Z Axis up
  284. G1 X0 Y0;
  285. G1 E10.0 F1800
  286. G1 Z3.65 F5000.0 ;Move to start position
  287. G1 X220 Y0 Z0.28 F1500.0 E30 ;Draw the first line
  288. G92 E0 ;Reset Extruder
  289. G1 Z10 F3000 ;Move Z Axis up
  290. RESTORE_GCODE_STATE NAME=Pre_Prime
  291.  
  292. {% if printer["gcode_macro status_printing"] != null %}
  293. status_printing
  294. {% endif %}
  295.  
  296. [gcode_macro SPEED]
  297. gcode:
  298. {action_respond_info("Current velocity: %.1f mm/s" % printer.motion_report.live_velocity)}
  299.  
  300. #*# <---------------------- SAVE_CONFIG ---------------------->
  301. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  302. #*#
  303. #*# [input_shaper]
  304. #*# shaper_type_y = 2hump_ei
  305. #*# shaper_freq_y = 56.6
  306. #*# shaper_type_x = mzv
  307. #*# shaper_freq_x = 52.4
  308. #*#
  309. #*# [extruder]
  310. #*# control = pid
  311. #*# pid_kp = 40.842
  312. #*# pid_ki = 13.614
  313. #*# pid_kd = 30.632
  314. #*#
  315. #*# [heater_bed]
  316. #*# control = pid
  317. #*# pid_kp = 68.556
  318. #*# pid_ki = 0.853
  319. #*# pid_kd = 1377.974
  320. #*#
  321. #*# [probe]
  322. #*# z_offset = 2.050
  323. #*#
  324. #*# [bed_mesh default]
  325. #*# version = 1
  326. #*# points =
  327. #*# -0.861250, -0.693750, -0.600000, -0.606250, -0.651250
  328. #*# -0.651250, -0.456250, -0.308750, -0.293750, -0.312500
  329. #*# -0.522500, -0.258750, -0.061250, -0.017500, -0.025000
  330. #*# -0.396250, -0.052500, 0.161250, 0.235000, 0.237500
  331. #*# -0.236250, 0.177500, 0.428750, 0.518750, 0.526250
  332. #*# x_count = 5
  333. #*# y_count = 5
  334. #*# mesh_x_pps = 2
  335. #*# mesh_y_pps = 2
  336. #*# algo = lagrange
  337. #*# tension = 0.2
  338. #*# min_x = 1.0
  339. #*# max_x = 350.0
  340. #*# min_y = 3.0
  341. #*# max_y = 350.0
  342.  
Advertisement
Add Comment
Please, Sign In to add comment