Daniels Lab Wiki

It is worth noting that.

Benutzer-Werkzeuge

Webseiten-Werkzeuge


projekte:3d-printing:anycubic-mega-s:klipper

Anycubic Mega S - Klipper Einrichtung und Konfiguration

Klipper Config Check

Calibrate PID settings

Um die Temperatur des Extruder zu kalibrieren führt man den ersten Befehl aus, wartet ab bis der Kalibriervorgang abgeschlossen wurde und speichert die gefundenen Werte in der printer.cnf ab (passiert automatisch und wird am Ende eingefügt).

PID_CALIBRATE HEATER=extruder TARGET=170
SAVE_CONFIG

Um die Temperatur des Printbed zu kalibrieren führt man den ersten Befehl aus, wartet ab bis der Kalibriervorgang abgeschlossen wurde und speichert die gefundenen Werte in der printer.cnf ab (passiert automatisch und wird am Ende eingefügt).

PID_CALIBRATE HEATER=heater_bed TARGET=60
SAVE_CONFIG
Extruder Printbed

Basiskonfiguration

Basiskonfiguration (Beispiel) für einen Anycubic Mega S ohne Modifikationen / Originalzustand

printer.cfg
  1. # This file contains pin mappings for the Anycubic i3 Mega with
  2. # Ultrabase from 2017. (This config may work on an Anycubic i3 Mega v1
  3. # prior to the Ultrabase if you comment out the definition of the
  4. # endstop_pin in the stepper_z1 section.) To use this config, the
  5. # firmware should be compiled for the AVR atmega2560.
  6.  
  7. # See docs/Config_Reference.md for a description of parameters.
  8.  
  9. [stepper_x]
  10. step_pin: PF0
  11. dir_pin: PF1
  12. enable_pin: !PD7
  13. microsteps: 16
  14. rotation_distance: 40
  15. endstop_pin: ^!PE5
  16. position_min: -5
  17. position_endstop: -5
  18. position_max: 210
  19. homing_speed: 30.0
  20.  
  21. [stepper_y]
  22. step_pin: PF6
  23. dir_pin: !PF7
  24. enable_pin: !PF2
  25. microsteps: 16
  26. rotation_distance: 40
  27. endstop_pin: ^!PL7
  28. position_endstop: 0
  29. position_max: 210
  30. homing_speed: 30.0
  31.  
  32. [stepper_z]
  33. step_pin: PL3
  34. dir_pin: !PL1
  35. enable_pin: !PK0
  36. microsteps: 16
  37. rotation_distance: 8
  38. endstop_pin: ^!PD3
  39. position_endstop: 0.0
  40. position_max: 205
  41. homing_speed: 5.0
  42.  
  43. [stepper_z1]
  44. step_pin: PC1
  45. dir_pin: !PC3
  46. enable_pin: !PC7
  47. microsteps: 16
  48. rotation_distance: 8
  49. endstop_pin: ^!PL6
  50.  
  51. [extruder]
  52. step_pin: PA4
  53. dir_pin: !PA6
  54. enable_pin: !PA2
  55. microsteps: 16
  56. rotation_distance: 34.557
  57. nozzle_diameter: 0.400
  58. filament_diameter: 1.750
  59. heater_pin: PB4
  60. sensor_type: ATC Semitec 104GT-2
  61. sensor_pin: PK5
  62. #control: pid
  63. #pid_Kp: 15.717
  64. #pid_Ki: 0.569
  65. #pid_Kd: 108.451
  66. min_temp: 0
  67. max_temp: 245
  68.  
  69. [heater_fan extruder_fan]
  70. pin: PL5
  71.  
  72. [heater_bed]
  73. heater_pin: PH5
  74. sensor_type: EPCOS 100K B57560G104F
  75. sensor_pin: PK6
  76. #control: pid
  77. #pid_Kp: 74.883
  78. #pid_Ki: 1.809
  79. #pid_Kd: 775.038
  80. min_temp: 0
  81. max_temp: 110
  82.  
  83. [fan]
  84. pin: PH6
  85.  
  86. [mcu]
  87. serial: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
  88.  
  89. [printer]
  90. kinematics: cartesian
  91. max_velocity: 300
  92. max_accel: 3000
  93. max_z_velocity: 10
  94. max_z_accel: 60
  95.  
  96. [heater_fan stepstick_fan]
  97. pin: PH4
  98.  
  99. # additional manual config
  100. # see https://docs.fluidd.xyz/configuration/initial_setup
  101.  
  102. [virtual_sdcard]
  103. path:/home/pi/printer_data/gcodes
  104.  
  105. [display_status]
  106.  
  107. [pause_resume]
  108.  
  109. [gcode_macro PAUSE]
  110. description: Pause the actual running print
  111. rename_existing: PAUSE_BASE
  112. # change this if you need more or less extrusion
  113. variable_extrude: 1.0
  114. gcode:
  115. ##### read E from pause macro #####
  116. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  117. ##### set park positon for x and y #####
  118. # default is your max posion from your printer.cfg
  119. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  120. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  121. ##### calculate save lift position #####
  122. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  123. {% set act_z = printer.toolhead.position.z|float %}
  124. {% if act_z < (max_z - 2.0) %}
  125. {% set z_safe = 2.0 %}
  126. {% else %}
  127. {% set z_safe = max_z - act_z %}
  128. {% endif %}
  129. ##### end of definitions #####
  130. PAUSE_BASE
  131. G91
  132. {% if printer.extruder.can_extrude|lower == 'true' %}
  133. G1 E-{E} F2100
  134. {% else %}
  135. {action_respond_info("Extruder not hot enough")}
  136. {% endif %}
  137. {% if "xyz" in printer.toolhead.homed_axes %}
  138. G1 Z{z_safe} F900
  139. G90
  140. G1 X{x_park} Y{y_park} F6000
  141. {% else %}
  142. {action_respond_info("Printer not homed")}
  143. {% endif %}
  144.  
  145. [gcode_macro RESUME]
  146. description: Resume the actual running print
  147. rename_existing: RESUME_BASE
  148. gcode:
  149. ##### read E from pause macro #####
  150. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  151. #### get VELOCITY parameter if specified ####
  152. {% if 'VELOCITY' in params|upper %}
  153. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  154. {%else %}
  155. {% set get_params = "" %}
  156. {% endif %}
  157. ##### end of definitions #####
  158. {% if printer.extruder.can_extrude|lower == 'true' %}
  159. G91
  160. G1 E{E} F2100
  161. {% else %}
  162. {action_respond_info("Extruder not hot enough")}
  163. {% endif %}
  164. RESUME_BASE {get_params}
  165.  
  166. [gcode_macro CANCEL_PRINT]
  167. description: Cancel the actual running print
  168. rename_existing: CANCEL_PRINT_BASE
  169. gcode:
  170. TURN_OFF_HEATERS
  171. CANCEL_PRINT_BASE
  172.  
  173. [gcode_macro START_PRINT]
  174. gcode:
  175. G28 X0 Y0 ; move X/Y to min endstops
  176. G28 Z0 ; move Z to min endstops
  177. G1 Z20 Y5 F500 ; move nozzle away from bed
  178. G92 E0 ; zero the extruded length
  179. G1 E2 F2400 ; extrude 5mm of feed stock
  180. G92 E0 ; zero the extruded length again
  181. M117 Printing...
  182.  
  183. [gcode_macro END_PRINT]
  184. gcode:
  185. M400 ; Clear Buffer
  186. M104 S0 ; turn off extruder
  187. M140 S0 ; turn off bed
  188. G10 ; retract
  189. G91 ; relative positioning
  190. G1 E-0.03 Z1.00 X20.0 Y20.0 ; move nozzle to remove stringing
  191. M106 S0 ; turn off fan
  192. G1 Z20 ; move nozzle up 20mm
  193. G90 ; absolute positioning
  194. G0 X0 Y175 ; park nozzle at rear
  195. M84 ; steppers off
  196. G4 P250 ; dwell
  197. _TIMELAPSE_NEW_FRAME
  198. M300 ; Beep
  199.  
  200. #*# <---------------------- SAVE_CONFIG ---------------------->
  201. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  202. #*#
  203. #*# [extruder]
  204. #*# control = pid
  205. #*# pid_kp = 20.315
  206. #*# pid_ki = 0.748
  207. #*# pid_kd = 137.890
  208. #*#
  209. #*# [heater_bed]
  210. #*# control = pid
  211. #*# pid_kp = 73.517
  212. #*# pid_ki = 1.696
  213. #*# pid_kd = 796.738
projekte/3d-printing/anycubic-mega-s/klipper.txt · Zuletzt geändert: 2023/06/22 15:53 von daniel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki