Advertisement
Guest User

Untitled

a guest
Oct 14th, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.69 KB | None | 0 0
  1. # !Ender-3 Max
  2. # printer_size: 300x300x340
  3. # version: 3.6
  4. # This file contains pin mappings for the stock 2020 Creality Ender 3
  5. # MAX. To use this config, during "make menuconfig" select the
  6. # STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9)
  7. # communication.
  8.  
  9. # Because this printer has factory wiring, mounts, and firmware for
  10. # a BLTouch, but does not ship with one at this time, default values
  11. # for the sensor have been specified, but disabled, in anticipation of
  12. # future revisions or user modification. User should take care to
  13. # customize the offsets, particularly z-offset, for their specific unit.
  14.  
  15. # If you prefer a direct serial connection, in "make menuconfig"
  16. # select "Enable extra low-level configuration options" and select
  17. # serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
  18.  
  19. # Flash this firmware by copying "out/klipper.bin" to a SD card and
  20. # turning on the printer with the card inserted. The firmware
  21. # filename must end in ".bin" and must not match the last filename
  22. # that was flashed.
  23.  
  24. # See docs/Config_Reference.md for a description of parameters.
  25.  
  26. ###fluidd set
  27. [virtual_sdcard]
  28. path: ~/gcode_files
  29.  
  30.  
  31.  
  32. [display_status]
  33.  
  34. [pause_resume]
  35.  
  36. [gcode_macro PAUSE]
  37. description: Pause the actual running print
  38. rename_existing: PAUSE_BASE
  39. # change this if you need more or less extrusion
  40. variable_extrude: 1.0
  41. gcode:
  42. ##### read E from pause macro #####
  43. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  44. ##### set park positon for x and y #####
  45. # default is your max posion from your printer.cfg
  46. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  47. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  48. ##### calculate save lift position #####
  49. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  50. {% set act_z = printer.toolhead.position.z|float %}
  51. {% if act_z < (max_z - 2.0) %}
  52. {% set z_safe = 2.0 %}
  53. {% else %}
  54. {% set z_safe = max_z - act_z %}
  55. {% endif %}
  56. ##### end of definitions #####
  57. PAUSE_BASE
  58. G91
  59. {% if printer.extruder.can_extrude|lower == 'true' %}
  60. G1 E-{E} F2100
  61. {% else %}
  62. {action_respond_info("Extruder not hot enough")}
  63. {% endif %}
  64. {% if "xyz" in printer.toolhead.homed_axes %}
  65. G1 Z{z_safe} F900
  66. G90
  67. G1 X{x_park} Y{y_park} F6000
  68. {% else %}
  69. {action_respond_info("Printer not homed")}
  70. {% endif %}
  71.  
  72. [gcode_macro RESUME]
  73. description: Resume the actual running print
  74. rename_existing: RESUME_BASE
  75. gcode:
  76. ##### read E from pause macro #####
  77. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  78. #### get VELOCITY parameter if specified ####
  79. {% if 'VELOCITY' in params|upper %}
  80. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  81. {%else %}
  82. {% set get_params = "" %}
  83. {% endif %}
  84. ##### end of definitions #####
  85. {% if printer.extruder.can_extrude|lower == 'true' %}
  86. G91
  87. G1 E{E} F2100
  88. {% else %}
  89. {action_respond_info("Extruder not hot enough")}
  90. {% endif %}
  91. RESUME_BASE {get_params}
  92.  
  93. [gcode_macro CANCEL_PRINT]
  94. description: Cancel the actual running print
  95. rename_existing: CANCEL_PRINT_BASE
  96. gcode:
  97. TURN_OFF_HEATERS
  98. {% if "xyz" in printer.toolhead.homed_axes %}
  99. G91
  100. G1 Z4.5 F300
  101. G90
  102. {% else %}
  103. {action_respond_info("Printer not homed")}
  104. {% endif %}
  105. G28 X Y
  106. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  107. G1 Y{y_park} F2000
  108. M84
  109. CANCEL_PRINT_BASE
  110.  
  111. [stepper_x]
  112. step_pin: PC2
  113. dir_pin: PB9
  114. enable_pin: !PC3
  115. microsteps: 16
  116. rotation_distance: 40
  117. endstop_pin: ^PA5
  118. position_endstop: 0
  119. position_max: 300
  120. homing_speed: 80
  121.  
  122. [stepper_y]
  123. step_pin: PB8
  124. dir_pin: PB7
  125. enable_pin: !PC3
  126. microsteps: 16
  127. rotation_distance: 40
  128. endstop_pin: ^PA6
  129. position_endstop: 0
  130. position_max: 300
  131. homing_speed: 80
  132.  
  133. [stepper_z]
  134. step_pin: PB6
  135. dir_pin: !PB5
  136. enable_pin: !PC3
  137. microsteps: 16
  138. rotation_distance: 8
  139. #position_endstop: 0.0 # disable to use BLTouch
  140. #endstop_pin: ^PA7 # disable to use BLTouch
  141. endstop_pin: probe:z_virtual_endstop # enable to use BLTouch
  142. position_min: -5 # enable to use BLTouch
  143. position_max: 345
  144.  
  145. [safe_z_home] # enable for BLTouch
  146. home_xy_position: 150, 150
  147. speed: 100
  148. z_hop: 10
  149. z_hop_speed: 5
  150.  
  151. [bltouch] # enable for BLTouch - fast-mode
  152. sensor_pin: ^PB1
  153. control_pin: PB0
  154. pin_up_touch_mode_reports_triggered: True
  155. probe_with_touch_mode: True
  156. x_offset: 50 # modify as needed for bltouch location
  157. y_offset: -12 # modify as needed for bltouch location
  158. z_offset: -0.0 # modify as needed for bltouch or run PROBE_CALIBRATE
  159. speed: 20
  160. samples: 3
  161. sample_retract_dist: 5.0 # Can be set lower, example 2.5 depending on height of bltouch from bed
  162. lift_speed: 40
  163. samples_tolerance_retries: 3
  164. speed: 10
  165. samples: 2
  166.  
  167. [idle_timeout]
  168. timeout: 172800
  169.  
  170. [bed_mesh] # enable for BLTouch
  171. speed: 300
  172. mesh_min: 50, 0
  173. mesh_max: 290, 290
  174. algorithm: bicubic
  175. probe_count: 7,7
  176. horizontal_move_z: 5
  177.  
  178. [bed_screws]
  179. screw1:30,25
  180. screw1_name:1
  181. screw2:270,25
  182. screw2_name:2
  183. screw3:270,270
  184. screw3_name:3
  185. screw4:30,270
  186. screw4_name:4
  187.  
  188. [gcode_macro G29]
  189. gcode:
  190. G28
  191. BED_MESH_CALIBRATE
  192. G1 X0 Y0 Z10 F4000
  193.  
  194. [extruder]
  195. gear_ratio: 1:1
  196. max_extrude_only_distance: 1000.0
  197. step_pin: PB4
  198. dir_pin: PB3
  199. enable_pin: !PC3
  200. microsteps: 16
  201. rotation_distance: 31.901
  202. nozzle_diameter: 0.400
  203. filament_diameter: 1.750
  204. heater_pin: PA1
  205. sensor_type: EPCOS 100K B57560G104F
  206. sensor_pin: PC5
  207. control: pid
  208. pid_Kp: 21.527
  209. pid_Ki: 1.063
  210. pid_Kd: 108.982
  211. min_temp: 0
  212. max_temp: 230
  213. pressure_advance: 0.0
  214. pressure_advance_smooth_time: 0.04
  215.  
  216. [heater_bed]
  217. heater_pin: PA2
  218. sensor_type: EPCOS 100K B57560G104F
  219. sensor_pin: PC4
  220. control: pid
  221. pid_Kp: 54.027
  222. pid_Ki: 0.770
  223. pid_Kd: 948.182
  224. min_temp: 0
  225. max_temp: 65
  226.  
  227. [fan]
  228. pin: PA0
  229.  
  230. [fan_generic extruder_partfan]
  231. pin: PC6
  232.  
  233. # [mcu rpi]
  234. # serial: /tmp/klipper_host_mcu
  235.  
  236. # [adxl345]
  237. # cs_pin: rpi:None
  238. # spi_speed: 2000000
  239. # spi_bus: spidev2.0
  240.  
  241. # [resonance_tester]
  242. # accel_chip: adxl345
  243. # accel_per_hz: 70
  244. # probe_points:
  245. # 150,150,10
  246.  
  247. [input_shaper]
  248. shaper_type_x = ei
  249. shaper_freq_x = 136.8
  250. shaper_type_y = mzv
  251. shaper_freq_y = 28.6
  252.  
  253. [filament_switch_sensor filament_sensor]
  254. switch_pin: PA4
  255.  
  256. [mcu]
  257. serial: /dev/serial/by-id/usb_serial_1
  258. restart_method: command
  259.  
  260. [printer]
  261. kinematics: cartesian
  262. max_velocity: 300
  263. max_accel: 5000
  264. max_z_velocity: 10
  265. max_z_accel: 1000
  266. square_corner_velocity: 5.0
  267.  
  268. [include timelapse.cfg]
  269.  
  270. [exclude_object]
  271.  
  272. [gcode_arcs]
  273. #resolution: 1.0
  274.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement