Advertisement
Guest User

Ender S1 Pro Klipper printer config

a guest
Dec 28th, 2022
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.24 KB | None | 0 0
  1. ##################Creality Ender 3 S1 Pro Klipper Config - 3DPrintBeginner###############
  2. ######Full guide: https://3dprintbeginner.com/how-to-install-klipper-on-ender-3-s1/######
  3.  
  4. [stepper_x]
  5. step_pin: PC2
  6. dir_pin: PB9
  7. enable_pin: !PC3
  8. microsteps: 16
  9. rotation_distance: 40
  10. endstop_pin: !PA5
  11. position_endstop: -10
  12. position_min: -15
  13. position_max: 235
  14. homing_speed: 50
  15.  
  16. [stepper_y]
  17. step_pin: PB8
  18. dir_pin: PB7
  19. enable_pin: !PC3
  20. microsteps: 16
  21. rotation_distance: 40
  22. endstop_pin: !PA6
  23. position_endstop: -8
  24. position_min: -13
  25. position_max: 238
  26. homing_speed: 50
  27.  
  28. [stepper_z]
  29. step_pin: PB6
  30. dir_pin: !PB5
  31. enable_pin: !PC3
  32. microsteps: 16
  33. rotation_distance: 8
  34. endstop_pin: probe:z_virtual_endstop
  35. position_max: 270
  36. position_min: -5
  37.  
  38. [extruder]
  39. max_extrude_only_distance: 100.0
  40. step_pin: PB4
  41. dir_pin: PB3
  42. enable_pin: !PC3
  43. microsteps: 16
  44. rotation_distance: 7.6190
  45. nozzle_diameter: 0.400
  46. filament_diameter: 1.750
  47. heater_pin: PA1
  48. sensor_type: EPCOS 100K B57560G104F
  49. sensor_pin: PC5
  50. #control: pid
  51. #pid_Kp: 21.761
  52. #pid_Ki: 1.261
  53. #pid_Kd: 93.844
  54. min_temp: 0
  55. max_temp: 300
  56. pressure_advance = 0.665
  57.  
  58. [firmware_retraction]
  59. retract_length: 0.8
  60. retract_speed: 45
  61.  
  62. [filament_switch_sensor RunoutSensor]
  63. pause_on_runout: False
  64. runout_gcode: PAUSE
  65. insert_gcode: RESUME
  66. switch_pin: !PC15
  67.  
  68. [heater_bed]
  69. heater_pin: PA7
  70. sensor_type: EPCOS 100K B57560G104F
  71. sensor_pin: PC4
  72. #control: pid
  73. #pid_Kp: 68.385
  74. #pid_Ki: 1.093
  75. #pid_Kd: 1069.370
  76. min_temp: 0
  77. max_temp: 130
  78.  
  79.  
  80. [heater_fan hotend_fan]
  81. pin: PC0
  82. heater: extruder
  83. heater_temp: 50.0
  84.  
  85. [fan]
  86. pin: PA0
  87.  
  88. [mcu]
  89. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  90. restart_method: command
  91.  
  92. [printer]
  93. kinematics: cartesian
  94. max_velocity: 500
  95. max_accel: 3000
  96. max_accel_to_decel: 3000
  97. max_z_velocity: 5
  98. square_corner_velocity: 5.0
  99. max_z_accel: 100
  100.  
  101. [bed_screws]
  102. screw1: 32, 203
  103. screw2: 32, 33
  104. screw3: 212, 33
  105. screw4: 205, 203
  106.  
  107. [screws_tilt_adjust]
  108. screw1: 55, 64
  109. screw1_name: vorne links
  110. screw2: 230, 64
  111. screw2_name: vorne rechts
  112. screw3: 230, 237
  113. screw3_name: hinten rechts
  114. screw4: 55, 237
  115. screw4_name: hinten links
  116. horizontal_move_z: 10.
  117. speed: 50.
  118. screw_thread: CW-M3
  119.  
  120. [bltouch]
  121. sensor_pin: ^PC14
  122. control_pin: PC13
  123. x_offset: -32.5
  124. y_offset: -39.5
  125. #z_offset: 0
  126. speed:10
  127. samples:3
  128. samples_result:average
  129. probe_with_touch_mode: true
  130. stow_on_each_sample: false
  131.  
  132. [safe_z_home]
  133. home_xy_position: 147,154
  134. speed: 100
  135. z_hop: 10
  136. z_hop_speed: 5
  137.  
  138. [bed_mesh]
  139. speed: 100
  140. mesh_min: 20, 20
  141. mesh_max: 200, 197
  142. algorithm: bicubic
  143. probe_count: 5,5
  144. fade_start: 1
  145. fade_end: 3
  146. fade_target: 0
  147. mesh_pps: 2,2
  148. algorithm: bicubic
  149. bicubic_tension: 0.2
  150.  
  151. [temperature_sensor Raspberry_Pi]
  152. sensor_type: temperature_host
  153. min_temp: 0
  154. max_temp: 100
  155.  
  156. [virtual_sdcard]
  157. path: ~/printer_data/gcodes
  158.  
  159. [display_status]
  160.  
  161. [pause_resume]
  162.  
  163. [gcode_macro START_PRINT]
  164. gcode:
  165.   {% set BED_TEMP = params.BED_TEMP|default(60)|float %}
  166.     {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(210)|float %}
  167.     # Use absolute coordinates
  168.     G90
  169.     # Set GCODE offset
  170.     SET_GCODE_OFFSET Z=0
  171.     # Home the printer
  172.     G28
  173.     #load default bed mesh
  174.     BED_MESH_PROFILE LOAD="default"
  175.     # Reset extruder
  176.     G92 E0
  177.     # Set extruder temperature
  178.     M104 S{EXTRUDER_TEMP}
  179.     # Wait for Bed temperature
  180.     M190 S{BED_TEMP}
  181.     # Wait for Extruder temperature
  182.     M109 S{EXTRUDER_TEMP}
  183.  
  184. [gcode_macro PAUSE]
  185. description: Pause the actual running print
  186. rename_existing: PAUSE_BASE
  187. # change this if you need more or less extrusion
  188. variable_extrude: 1.0
  189. gcode:
  190.   ##### read E from pause macro #####
  191.   {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  192.   ##### set park positon for x and y #####
  193.   # default is your max posion from your printer.cfg
  194.   {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  195.   {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  196.   ##### calculate save lift position #####
  197.   {% set max_z = printer.toolhead.axis_maximum.z|float %}
  198.   {% set act_z = printer.toolhead.position.z|float %}
  199.   {% if act_z < (max_z - 2.0) %}
  200.       {% set z_safe = 2.0 %}
  201.   {% else %}
  202.       {% set z_safe = max_z - act_z %}
  203.   {% endif %}
  204.   ##### end of definitions #####
  205.   PAUSE_BASE
  206.   G91
  207.   {% if printer.extruder.can_extrude|lower == 'true' %}
  208.     G1 E-{E} F2100
  209.   {% else %}
  210.     {action_respond_info("Extruder not hot enough")}
  211.   {% endif %}
  212.   {% if "xyz" in printer.toolhead.homed_axes %}
  213.     G1 Z{z_safe} F900
  214.     G90
  215.     G1 X{x_park} Y{y_park} F6000
  216.   {% else %}
  217.     {action_respond_info("Printer not homed")}
  218.   {% endif %}
  219.  
  220. [gcode_macro RESUME]
  221. description: Resume the actual running print
  222. rename_existing: RESUME_BASE
  223. gcode:
  224.   ##### read E from pause macro #####
  225.   {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  226.   #### get VELOCITY parameter if specified ####
  227.   {% if 'VELOCITY' in params|upper %}
  228.     {% set get_params = ('VELOCITY=' + params.VELOCITY)  %}
  229.   {%else %}
  230.     {% set get_params = "" %}
  231.   {% endif %}
  232.   ##### end of definitions #####
  233.   {% if printer.extruder.can_extrude|lower == 'true' %}
  234.     G91
  235.     G1 E{E} F2100
  236.   {% else %}
  237.     {action_respond_info("Extruder not hot enough")}
  238.   {% endif %}  
  239.   RESUME_BASE {get_params}
  240.  
  241. [gcode_macro CANCEL_PRINT]
  242. description: Cancel the actual running print
  243. rename_existing: CANCEL_PRINT_BASE
  244. gcode:
  245.   TURN_OFF_HEATERS
  246.   CANCEL_PRINT_BASE
  247.  
  248. #*# <---------------------- SAVE_CONFIG ---------------------->
  249. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  250. #*#
  251. #*# [bltouch]
  252. #*# z_offset = 2.676
  253. #*#
  254. #*# [bed_mesh default]
  255. #*# version = 1
  256. #*# points =
  257. #*#     -0.058333, -0.017500, -0.070000, -0.117500, -0.077500
  258. #*#     -0.035000, 0.032500, -0.035833, -0.102500, -0.052500
  259. #*#     -0.012500, 0.045000, -0.025000, -0.067500, -0.037500
  260. #*#     -0.050000, -0.014167, -0.049167, -0.105000, -0.056667
  261. #*#     -0.084167, -0.035000, -0.092500, -0.115000, -0.080000
  262. #*# x_count = 5
  263. #*# y_count = 5
  264. #*# mesh_x_pps = 2
  265. #*# mesh_y_pps = 2
  266. #*# algo = bicubic
  267. #*# tension = 0.2
  268. #*# min_x = 20.0
  269. #*# max_x = 200.0
  270. #*# min_y = 20.0
  271. #*# max_y = 197.0
  272. #*#
  273. #*# [extruder]
  274. #*# control = pid
  275. #*# pid_kp = 20.569
  276. #*# pid_ki = 1.016
  277. #*# pid_kd = 104.130
  278. #*#
  279. #*# [heater_bed]
  280. #*# control = pid
  281. #*# pid_kp = 69.986
  282. #*# pid_ki = 1.436
  283. #*# pid_kd = 852.958
  284.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement