Advertisement
Guest User

Sidewinder-X2 printer.cfg

a guest
Oct 19th, 2022
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.99 KB | None | 0 0
  1. [extruder]
  2. max_extrude_only_distance: 100.0
  3. max_extrude_cross_section: 50.0
  4. step_pin: PA7
  5. dir_pin: PA6
  6. enable_pin: !PC4
  7. microsteps: 16
  8. rotation_distance: 7.1910
  9. nozzle_diameter: 0.400
  10. filament_diameter: 1.750
  11. heater_pin: PC9
  12. sensor_type: EPCOS 100K B57560G104F
  13. sensor_pin: PC0
  14. #control: pid
  15. #pid_Kp: 23.223
  16. #pid_Ki: 1.518
  17. #pid_Kd: 88.826
  18. min_temp: 0
  19. max_temp: 250
  20. pressure_advance = 0.05
  21.  
  22. [input_shaper]
  23. shaper_freq_x: 43.26
  24. shaper_freq_y: 45.28
  25. shaper_type: mzv
  26.  
  27. [stepper_x]
  28. step_pin: !PB14
  29. dir_pin: PB13
  30. enable_pin: !PB15
  31. microsteps: 16
  32. rotation_distance: 40
  33. endstop_pin: !PA2
  34. position_endstop: 0
  35. position_max: 310
  36. homing_speed: 50
  37.  
  38. [stepper_y]
  39. step_pin: PB10
  40. dir_pin: PB2
  41. enable_pin: !PB12
  42. microsteps: 16
  43. rotation_distance: 40
  44. endstop_pin: !PA1
  45. position_endstop: 0
  46. position_max: 310
  47. homing_speed: 50
  48.  
  49. [stepper_z]
  50. step_pin: PB0
  51. dir_pin: !PC5
  52. enable_pin: !PB1
  53. microsteps: 16
  54. rotation_distance: 8
  55. endstop_pin: probe:z_virtual_endstop
  56. position_max: 400
  57.  
  58. [heater_bed]
  59. heater_pin: PA8
  60. sensor_type: EPCOS 100K B57560G104F
  61. sensor_pin: PC1
  62. #control: pid
  63. #pid_Kp: 23.223
  64. #pid_Ki: 1.518
  65. #pid_Kd: 88.826
  66. min_temp: 0
  67. max_temp: 130
  68.  
  69. [fan]
  70. pin: PC6
  71. pin: PC8
  72.  
  73. [heater_fan hotend_fan]
  74. pin: PC7
  75. heater: extruder
  76. heater_temp: 50.0
  77.  
  78. [controller_fan stepper_fan]
  79. pin: PC6
  80. idle_timeout: 300
  81.  
  82. [mcu]
  83. serial: /dev/serial/by-id/usb-Klipper_stm32f401xc_32001E000651383434373331-if00
  84. restart_method: command
  85.  
  86. [printer]
  87. kinematics: cartesian
  88. max_velocity: 500
  89. max_accel: 4000
  90. max_accel_to_decel: 4000
  91. max_z_velocity: 5
  92. square_corner_velocity: 5.0
  93. max_z_accel: 100
  94.  
  95. [bltouch]
  96. sensor_pin: PC2
  97. control_pin: PC3
  98. x_offset:27.25
  99. y_offset:-12.8
  100. z_offset: 1.69
  101. speed:10
  102. samples:1
  103. samples_result:average
  104.  
  105. [bed_mesh]
  106. speed: 100
  107. mesh_min: 30, 20
  108. mesh_max: 290, 290
  109. algorithm: bicubic
  110. probe_count: 5,5
  111.  
  112. [neopixel my_neopixel]
  113. pin: PB7
  114. color_order: GRB
  115. initial_RED: 0.0
  116. initial_GREEN: 0.0
  117. initial_BLUE: 0.0
  118.  
  119. [safe_z_home]
  120. home_xy_position: 150,150
  121. speed: 100
  122. z_hop: 10
  123. z_hop_speed: 5
  124.  
  125. [virtual_sdcard]
  126. path: ~/printer_data/gcodes
  127.  
  128. [display_status]
  129.  
  130. [pause_resume]
  131.  
  132. [gcode_macro M150]
  133. description: Change neopixel color
  134. gcode:
  135. {% set r = params.R|default(0.0)|float %}
  136. {% set g = params.G|default(0.0)|float %}
  137. {% set b = params.B|default(0.0)|float %}
  138. SET_LED LED=my_neopixel RED={r / 255} GREEN={g / 255} BLUE={b / 255}
  139.  
  140. [gcode_macro M204]
  141. rename_existing: M204.1
  142. gcode:
  143. {% set f = params.F|default(0.5)|float %}
  144.  
  145. {% if 'S' in params %}
  146. {% set s = params.S|float %}
  147. SET_VELOCITY_LIMIT ACCEL={s} ACCEL_TO_DECEL={ s * f }
  148. {% else %}
  149. {% if 'P' in params %}
  150. {% set p = params.P|float %}
  151. {% if 'T' in params %}
  152. {% set t = params.T|float %}
  153. {% if p < t %}
  154. SET_VELOCITY_LIMIT ACCEL={p} ACCEL_TO_DECEL={ p * f }
  155. {% else %}
  156. SET_VELOCITY_LIMIT ACCEL={t} ACCEL_TO_DECEL={ t * f }
  157. {% endif %}
  158. {% else %}
  159. SET_VELOCITY_LIMIT ACCEL={p} ACCEL_TO_DECEL={ p * f }
  160. {% endif %}
  161. {% elif 'T' in params %}
  162. {% set t = params.T|float %}
  163. SET_VELOCITY_LIMIT ACCEL={t} ACCEL_TO_DECEL={ t * f }
  164. {% endif %}
  165. {% endif %}
  166.  
  167. [gcode_macro PAUSE]
  168. description: Pause the actual running print
  169. rename_existing: PAUSE_BASE
  170. # change this if you need more or less extrusion
  171. variable_extrude: 1.0
  172. gcode:
  173. ##### read E from pause macro #####
  174. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  175. ##### set park positon for x and y #####
  176. # default is your max posion from your printer.cfg
  177. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  178. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  179. ##### calculate save lift position #####
  180. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  181. {% set act_z = printer.toolhead.position.z|float %}
  182. {% if act_z < (max_z - 2.0) %}
  183. {% set z_safe = 2.0 %}
  184. {% else %}
  185. {% set z_safe = max_z - act_z %}
  186. {% endif %}
  187. ##### end of definitions #####
  188. PAUSE_BASE
  189. G91
  190. {% if printer.extruder.can_extrude|lower == 'true' %}
  191. G1 E-{E} F2100
  192. {% else %}
  193. {action_respond_info("Extruder not hot enough")}
  194. {% endif %}
  195. {% if "xyz" in printer.toolhead.homed_axes %}
  196. G1 Z{z_safe} F900
  197. G90
  198. G1 X{x_park} Y{y_park} F6000
  199. {% else %}
  200. {action_respond_info("Printer not homed")}
  201. {% endif %}
  202.  
  203. [gcode_macro RESUME]
  204. description: Resume the actual running print
  205. rename_existing: RESUME_BASE
  206. gcode:
  207. ##### read E from pause macro #####
  208. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  209. #### get VELOCITY parameter if specified ####
  210. {% if 'VELOCITY' in params|upper %}
  211. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  212. {%else %}
  213. {% set get_params = "" %}
  214. {% endif %}
  215. ##### end of definitions #####
  216. {% if printer.extruder.can_extrude|lower == 'true' %}
  217. G91
  218. G1 E{E} F2100
  219. {% else %}
  220. {action_respond_info("Extruder not hot enough")}
  221. {% endif %}
  222. RESUME_BASE {get_params}
  223.  
  224. [gcode_macro CANCEL_PRINT]
  225. description: Cancel the actual running print
  226. rename_existing: CANCEL_PRINT_BASE
  227. gcode:
  228. TURN_OFF_HEATERS
  229. CANCEL_PRINT_BASE
  230.  
  231. #*# <---------------------- SAVE_CONFIG ---------------------->
  232. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  233. #*#
  234. #*# [extruder]
  235. #*# control = pid
  236. #*# pid_kp = 22.027
  237. #*# pid_ki = 0.807
  238. #*# pid_kd = 150.336
  239. #*#
  240. #*# [bed_mesh default]
  241. #*# version = 1
  242. #*# points =
  243. #*# 0.197500, 0.115000, 0.012500, 0.000000, -0.045000
  244. #*# 0.197500, 0.067500, -0.075000, -0.140000, -0.235000
  245. #*# 0.200000, 0.112500, 0.025000, -0.042500, -0.120000
  246. #*# 0.092500, 0.070000, 0.037500, 0.025000, 0.030000
  247. #*# 0.170000, 0.097500, 0.142500, 0.177500, 0.212500
  248. #*# tension = 0.2
  249. #*# min_x = 30.0
  250. #*# algo = bicubic
  251. #*# y_count = 5
  252. #*# mesh_y_pps = 2
  253. #*# min_y = 20.0
  254. #*# x_count = 5
  255. #*# max_y = 290.0
  256. #*# mesh_x_pps = 2
  257. #*# max_x = 290.0
  258. #*#
  259. #*# [heater_bed]
  260. #*# control = pid
  261. #*# pid_kp = 48.182
  262. #*# pid_ki = 0.486
  263. #*# pid_kd = 1194.309
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement