Guest User

klipper_conf

a guest
May 4th, 2023
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.69 KB | Source Code | 0 0
  1. [bltouch]
  2. sensor_pin: ^PB1
  3. control_pin: PB0
  4. #z_offset: 0
  5. #stow_on_each_sample: false
  6. #probe_with_touch_mode: True
  7. pin_up_reports_not_triggered: True
  8. pin_up_touch_mode_reports_triggered: True
  9. x_offset: -42.5
  10. y_offset: -9.0
  11.  
  12. [bed_mesh]
  13. speed: 80
  14. horizontal_move_z: 5
  15. mesh_min: 9.5, 15 #!!min and max co-ords are based on the probes location not the nozzle!!
  16. mesh_max: 202.5, 220 #needs to be calibrated for your individual printer
  17. probe_count: 5,5 #this is the number of probing points on X then Y axis
  18. mesh_pps: 2,2
  19. fade_start: 1
  20. fade_end: 10
  21. fade_target: 0
  22.  
  23. [safe_z_home]
  24. home_xy_position: 125,125 #this should be the center of your bed
  25. speed: 50
  26. z_hop: 10
  27. z_hop_speed: 5
  28.  
  29. [stepper_x]
  30. step_pin: PC2
  31. dir_pin: PB9
  32. enable_pin: !PC3
  33. microsteps: 16
  34. rotation_distance: 40
  35. endstop_pin: ^PA5
  36. position_endstop: 1
  37. position_max: 245
  38. homing_speed: 70
  39.  
  40. [stepper_y]
  41. step_pin: PB8
  42. dir_pin: PB7
  43. enable_pin: !PC3
  44. microsteps: 16
  45. rotation_distance: 40
  46. endstop_pin: ^PA6
  47. position_endstop: -6
  48. position_max: 234
  49. position_min: -6
  50. homing_speed: 50
  51.  
  52. [stepper_z]
  53. step_pin: PB6
  54. dir_pin: !PB5
  55. enable_pin: !PC3
  56. microsteps: 16
  57. rotation_distance: 8
  58. endstop_pin: probe:z_virtual_endstop
  59. #position_endstop: 0.0
  60. position_max: 250
  61. position_min: -6
  62.  
  63.  
  64. [extruder]
  65. max_extrude_only_distance: 100.0
  66. step_pin: PB4
  67. dir_pin: PB3
  68. enable_pin: !PC3
  69. microsteps: 16
  70. rotation_distance: 29.590
  71. nozzle_diameter: 0.400
  72. filament_diameter: 1.750
  73. heater_pin: PA1
  74. sensor_type: EPCOS 100K B57560G104F
  75. sensor_pin: PC5
  76. control: pid
  77. # tuned for stock hardware with 200 degree Celsius target
  78. pid_Kp: 21.527
  79. pid_Ki: 1.063
  80. pid_Kd: 108.982
  81. min_temp: 0
  82. max_temp: 250
  83. # PA dodane 15.03.2023 (0.0 + 48mm * 0.02 = 0.96)
  84. pressure_advance: 0.96
  85.  
  86. [heater_bed]
  87. heater_pin: PA2
  88. sensor_type: EPCOS 100K B57560G104F
  89. sensor_pin: PC4
  90. control: pid
  91. # tuned for stock hardware with 50 degree Celsius target
  92. pid_Kp: 54.027
  93. pid_Ki: 0.770
  94. pid_Kd: 948.182
  95. min_temp: 0
  96. max_temp: 100
  97.  
  98. [fan]
  99. pin: PA0
  100.  
  101. [mcu]
  102. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  103. restart_method: command
  104.  
  105. [printer]
  106. kinematics: cartesian
  107. max_velocity: 300
  108. max_accel: 3000
  109. max_z_velocity: 5
  110. max_z_accel: 100
  111. #dodane 16.03.2023 na podstawie https://teachingtechyt.github.io/calibration.html#accel
  112. max_accel: 400
  113. max_accel_to_decel: 400
  114. square_corner_velocity: 8.0
  115.  
  116. [virtual_sdcard]
  117. path: /home/turbo/printer_data/gcodes
  118.  
  119.  
  120. [display] # RET6 12864 LCD
  121. lcd_type: st7920
  122. cs_pin: PB12
  123. sclk_pin: PB13
  124. sid_pin: PB15
  125. encoder_pins: ^PB14, ^PB10
  126. click_pin: ^!PB2
  127.  
  128. [pause_resume]
  129.  
  130. [include timelapse.cfg]
  131.  
  132. [gcode_macro SIEMANO]
  133. gcode:
  134. M117 SIEMANO!
  135.  
  136. [gcode_macro M205]
  137. gcode:
  138. G4 P0
  139.  
  140. [gcode_macro clean_nozzle]
  141. gcode:
  142. SAVE_GCODE_STATE NAME=clean_nozzle_state
  143. G90
  144. G0 Z2 F5000
  145. G0 X116.8 Y354 F10000
  146. {% for wipe in range(8) %}
  147. {% for coordinate in [(81.8,354),(116.8,354)] %}
  148. G0 X{coordinate[0]} Y{coordinate[1] - 0.5 * wipe} Z0 F6000
  149. {% endfor %}
  150. {% endfor %}
  151. G0 X116.8 Y354 Z2 F5000
  152. RESTORE_GCODE_STATE NAME=clean_nozzle_state
  153.  
  154. [include bed_level_mesh_macro.cfg]
  155.  
  156. [gcode_macro PAUSE]
  157. rename_existing: BASE_PAUSE
  158. gcode:
  159. {% set X = params.X|default(220) %}
  160. {% set Y = params.Y|default(220) %}
  161. {% set Z = params.Z|default(10) %}
  162. {% set E = params.E|default(1) %}
  163. SAVE_GCODE_STATE NAME=PAUSE_state
  164. BASE_PAUSE
  165. G91
  166. G1 E-{E} F2100
  167. G1 Z{Z}
  168. G90
  169. G1 X{X} Y{Y} F6000
  170.  
  171. [gcode_macro RESUME]
  172. rename_existing: BASE_RESUME
  173. gcode:
  174. {% set E = params.E|default(1) %}
  175. G91
  176. G1 E{E} F2100
  177. G90
  178. RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
  179. BASE_RESUME
  180.  
  181. [gcode_macro CANCEL_PRINT]
  182. rename_existing: BASE_CANCEL_PRINT
  183. gcode:
  184. TURN_OFF_HEATERS
  185. CLEAR_PAUSE
  186. SDCARD_RESET_FILE
  187. BASE_CANCEL_PRINT
  188.  
  189. [gcode_macro PART_COOLING_FAN_ON]
  190. gcode:
  191. M106 S255
  192.  
  193. [gcode_macro PART_COOLING_FAN_OFF]
  194. gcode:
  195. M106 S0
  196.  
  197. # Do nozzle priming
  198. [gcode_macro PRIME_EXTRUDER]
  199. gcode:
  200. M117 Priming
  201. G92 E0
  202. G1 X10.1 Y20 Z2.0 F2000
  203. G1 X10.1 Y200 Z0.28 F2000.0 E15; Draw the first line
  204. G1 X10.4 Y200 Z0.28 F5000.0; Move to the side a little
  205. G1 X10.4 Y20.0 Z0.28 F2000.0 E30; Draw the second line
  206. G92 E0
  207. G1 F2400 E-0.7 # Small retract to remove pressure
  208. G1 Z2.0 F3000 ;Move Z Axis up
  209.  
  210. [gcode_macro START_PRINT]
  211. gcode:
  212. {% set BED_TEMP = params.BED_TEMP|default(0)|float %}
  213. {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(0)|float %}
  214. G28 ;Home
  215. G29 ;Load Mesh Bed Level
  216.  
  217. # Start bed heating
  218. M117 Heating bed
  219. M140 S{BED_TEMP}
  220. # Use absolute coordinates
  221. G90
  222. # Reset the G-Code Z offset (adjust Z offset if needed)
  223. SET_GCODE_OFFSET Z=0.0
  224. # Home the printer
  225. G28
  226. # Move the nozzle near the bed
  227. G1 Z5 F3000
  228. # Move the nozzle very close to the bed
  229. G1 Z0.15 F300
  230. # Wait for bed to reach temperature
  231. M190 S{BED_TEMP}
  232. # Start nozzle heating
  233. M117 Heating nozzle
  234. M104 S{EXTRUDER_TEMP}
  235. # Set and wait for nozzle to reach temperature
  236. M109 S{EXTRUDER_TEMP}
  237. # Prime line
  238. PRIME_EXTRUDER
  239. M117 Printing
  240.  
  241. [gcode_macro END_PRINT]
  242. gcode:
  243. # Move nozzle away from print while retracting
  244. G91
  245. # Raise nozzle and retract
  246. G1 E-2 F1800
  247. G1 Z5 F3000
  248. # Move to absolute position
  249. G90
  250. G1 X10 Y200 F2000
  251. # Turn off bed, extruder, and fan
  252. M140 S0
  253. M104 S0
  254. M106 S0
  255. # Disable steppers
  256. M84
  257. M117 JOB DONE!
  258.  
  259. #*# <---------------------- SAVE_CONFIG ---------------------->
  260. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  261. #*#
  262. #*# [bltouch]
  263. #*# z_offset = 3.700
  264. #*#
  265. #*# [bed_mesh 27042023]
  266. #*# version = 1
  267. #*# points =
  268. #*# -0.080000, -0.095000, -0.117500, -0.140000, -0.202500
  269. #*# 0.025000, 0.005000, -0.027500, -0.057500, -0.112500
  270. #*# 0.017500, 0.017500, -0.017500, -0.062500, -0.125000
  271. #*# -0.075000, -0.037500, -0.020000, -0.012500, -0.050000
  272. #*# -0.087500, -0.065000, -0.050000, -0.090000, -0.037500
  273. #*# x_count = 5
  274. #*# y_count = 5
  275. #*# mesh_x_pps = 2
  276. #*# mesh_y_pps = 2
  277. #*# algo = lagrange
  278. #*# tension = 0.2
  279. #*# min_x = 9.5
  280. #*# max_x = 202.5
  281. #*# min_y = 15.0
  282. #*# max_y = 220.0
  283. #*#
  284. #*# [bed_mesh default]
  285. #*# version = 1
  286. #*# points =
  287. #*# 0.037500, 0.020000, 0.025000, -0.015000, -0.077500
  288. #*# 0.040000, 0.032500, 0.027500, -0.020000, -0.057500
  289. #*# -0.042500, -0.012500, -0.000000, -0.015000, -0.032500
  290. #*# -0.130000, -0.045000, -0.022500, 0.020000, 0.032500
  291. #*# -0.057500, -0.005000, -0.000000, 0.015000, 0.035000
  292. #*# x_count = 5
  293. #*# y_count = 5
  294. #*# mesh_x_pps = 2
  295. #*# mesh_y_pps = 2
  296. #*# algo = lagrange
  297. #*# tension = 0.2
  298. #*# min_x = 9.5
  299. #*# max_x = 202.5
  300. #*# min_y = 15.0
  301. #*# max_y = 220.0
  302.  
Tags: klipper
Advertisement
Add Comment
Please, Sign In to add comment