Advertisement
Guest User

Ender_6_SKR_Mini_E3_v3_Klipper

a guest
Nov 27th, 2022
2,404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. [include macros.cfg]
  2.  
  3. [stepper_x]
  4. step_pin: PB13
  5. dir_pin: !PB12
  6. enable_pin: !PB14
  7. microsteps: 16
  8. rotation_distance: 40
  9. endstop_pin: ^PC0
  10. position_endstop: 260
  11. position_min: 0
  12. position_max: 260
  13. homing_speed: 50
  14.  
  15. [tmc2209 stepper_x]
  16. uart_pin: PC11
  17. tx_pin: PC10
  18. uart_address: 0
  19. run_current: 0.580
  20. #stealthchop_threshold: 999999
  21.  
  22. [stepper_y]
  23. step_pin: PB10
  24. dir_pin: PB2
  25. enable_pin: !PB11
  26. microsteps: 16
  27. rotation_distance: 40
  28. endstop_pin: ^PC1
  29. position_endstop: 260
  30. position_min: 0
  31. position_max: 260
  32. homing_speed: 50
  33.  
  34. [tmc2209 stepper_y]
  35. uart_pin: PC11
  36. tx_pin: PC10
  37. uart_address: 2
  38. run_current: 0.580
  39. #stealthchop_threshold: 999999
  40.  
  41. [stepper_z]
  42. step_pin: PB0
  43. dir_pin: !PC5
  44. enable_pin: !PB1
  45. microsteps: 16
  46. rotation_distance: 8
  47. endstop_pin: ^PC2
  48. position_endstop: 0.0
  49. position_max: 400
  50.  
  51. [tmc2209 stepper_z]
  52. uart_pin: PC11
  53. tx_pin: PC10
  54. uart_address: 1
  55. run_current: 0.580
  56. #stealthchop_threshold: 999999
  57.  
  58. [extruder]
  59. step_pin: PB3
  60. dir_pin: PB4
  61. enable_pin: !PD1
  62. microsteps: 16
  63. rotation_distance: 22.857
  64. nozzle_diameter: 0.400
  65. filament_diameter: 1.750
  66. heater_pin: PC8
  67. sensor_type: EPCOS 100K B57560G104F
  68. sensor_pin: PA0
  69. #control: pid
  70. #pid_Kp: 21.527
  71. #pid_Ki: 1.063
  72. #pid_Kd: 108.982
  73. min_temp: 0
  74. max_temp: 250
  75.  
  76. [tmc2209 extruder]
  77. uart_pin: PC11
  78. tx_pin: PC10
  79. uart_address: 3
  80. run_current: 0.650
  81. #stealthchop_threshold: 999999
  82.  
  83. [heater_bed]
  84. heater_pin: PC9
  85. sensor_type: ATC Semitec 104GT-2
  86. sensor_pin: PC4
  87. #control: pid
  88. #pid_Kp: 54.027
  89. #pid_Ki: 0.770
  90. #pid_Kd: 948.182
  91. min_temp: 0
  92. max_temp: 130
  93.  
  94. [heater_fan heatbreak_cooling_fan]
  95. pin: PC7
  96. heater_temp: 50.0
  97.  
  98. [heater_fan controller_fan]
  99. pin: PB15
  100.  
  101.  
  102. [fan]
  103. pin: PC6
  104.  
  105. [mcu]
  106. serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_210027000150414D39343620-if00
  107.  
  108. [temperature_sensor raspberry_pi]
  109. sensor_type: temperature_host
  110. min_temp: 5
  111. max_temp: 100
  112.  
  113. [temperature_sensor mcu_temp]
  114. sensor_type: temperature_mcu
  115. min_temp: 0
  116. max_temp: 100
  117.  
  118. [printer]
  119. kinematics: corexy
  120. max_velocity: 500
  121. max_accel: 2000
  122. max_z_velocity: 10
  123. max_z_accel: 100
  124.  
  125. [bed_screws]
  126. screw1: 232, 15
  127. screw2: 232, 205
  128. screw3: 43, 205
  129. screw4: 43, 15
  130.  
  131. [virtual_sdcard]
  132. path: ~/gcode_files
  133.  
  134. [display_status]
  135.  
  136. [gcode_macro PAUSE]
  137. #description: Pause the actual running print
  138. rename_existing: PAUSE_BASE
  139. # change this if you need more or less extrusion
  140. variable_extrude: 1.0
  141. gcode:
  142. ##### read E from pause macro #####
  143. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  144. ##### set park positon for x and y #####
  145. # default is your max posion from your printer.cfg
  146. # {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  147. # {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  148. {% set x_park = 5 %}
  149. {% set y_park = 5 %}
  150.  
  151. ##### calculate save lift position #####
  152. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  153. {% set act_z = printer.toolhead.position.z|float %}
  154. {% if act_z < (max_z - 2.0) %}
  155. {% set z_safe = 2.0 %}
  156. {% else %}
  157. {% set z_safe = max_z - act_z %}
  158. {% endif %}
  159. ##### end of definitions #####
  160. PAUSE_BASE
  161. G91
  162. {% if printer.extruder.can_extrude|lower == 'true' %}
  163. G1 E-{E} F2100
  164. {% else %}
  165. {action_respond_info("Extruder not hot enough")}
  166. {% endif %}
  167. {% if "xyz" in printer.toolhead.homed_axes %}
  168. G1 Z{z_safe} F900
  169. G90
  170. G1 X{x_park} Y{y_park} F6000
  171. {% else %}
  172. {action_respond_info("Printer not homed")}
  173. {% endif %}
  174.  
  175. [gcode_macro RESUME]
  176. #description: Resume the actual running print
  177. rename_existing: RESUME_BASE
  178. gcode:
  179. ##### read E from pause macro #####
  180. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  181. #### get VELOCITY parameter if specified ####
  182. {% if 'VELOCITY' in params|upper %}
  183. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  184. {%else %}
  185. {% set get_params = "" %}
  186. {% endif %}
  187. ##### end of definitions #####
  188. {% if printer.extruder.can_extrude|lower == 'true' %}
  189. G91
  190. G1 E{E} F2100
  191. {% else %}
  192. {action_respond_info("Extruder not hot enough")}
  193. {% endif %}
  194. RESUME_BASE {get_params}
  195.  
  196. [gcode_macro CANCEL_PRINT]
  197. #description: Cancel the actual running print
  198. rename_existing: CANCEL_PRINT_BASE
  199. gcode:
  200. # Turn off bed, extruder, and fan
  201. M140 S0
  202. M104 S0
  203. M106 S0
  204. M107
  205. G91 ;Relative positioning
  206. G1 E-0.6 Z0.2 F4200 ;Retract and raise Z
  207. G1 X5 Y5 F3000 ;Wipe out
  208. G1 Z20 ;Raise Z more
  209. # Move Nozzle away and present print
  210. G90 ;Absolute positioning
  211. G1 X30 Y151 F3000
  212. M84 X Y E ; disable motors
  213. SET_LED LED=neo RED=0.5 GREEN=0.5 BLUE=0.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement