dorcu

printer.cfg con ADX

Aug 21st, 2022
739
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. #Updated 07/29/21
  2. [stepper_x]
  3. step_pin: ar54
  4. dir_pin: ar55
  5. enable_pin: !ar38
  6. microsteps: 16
  7. rotation_distance: 40
  8. endstop_pin: ^!ar3
  9. position_endstop: 0
  10. position_max: 225
  11. homing_speed: 40.0
  12.  
  13. [stepper_y]
  14. step_pin: ar60
  15. dir_pin: ar61
  16. enable_pin: !ar56
  17. microsteps: 16
  18. rotation_distance: 40
  19. endstop_pin: ^!ar14
  20. position_endstop: 0
  21. position_max: 225
  22. homing_speed: 40
  23. homing_positive_dir: false
  24.  
  25. [stepper_z]
  26. step_pin: ar46
  27. dir_pin: !ar48
  28. enable_pin: !ar62
  29. microsteps: 16
  30. rotation_distance: 8
  31. endstop_pin: ^!ar18
  32. #position_endstop: 0
  33. position_min: -3
  34. position_max: 250
  35. homing_speed: 30
  36. second_homing_speed: 1
  37.  
  38. [stepper_z1]
  39. step_pin: ar36
  40. dir_pin: !ar34
  41. enable_pin: !ar30
  42. microsteps: 16
  43. rotation_distance: 8
  44.  
  45. [extruder]
  46. step_pin: ar26
  47. dir_pin: ar28
  48. enable_pin: !ar24
  49. microsteps: 16
  50. rotation_distance: 7
  51. nozzle_diameter: 0.400
  52. filament_diameter: 1.750
  53. heater_pin: ar10
  54. sensor_type: EPCOS 100K B57560G104F
  55. sensor_pin: analog13
  56. min_extrude_temp: 190
  57. min_temp: 5
  58. max_temp: 300
  59. max_extrude_only_distance: 500
  60. max_extrude_cross_section: 2.0
  61.  
  62. [heater_bed]
  63. heater_pin: ar8
  64. sensor_type: EPCOS 100K B57560G104F
  65. sensor_pin: analog14
  66. min_temp: 5
  67. max_temp: 150
  68.  
  69. [fan]
  70. pin: ar9
  71. kick_start_time: 0.500
  72.  
  73. [heater_fan my_nozzle_fan]
  74. pin:ar7
  75. heater: extruder
  76. heater_temp: 50.0
  77. fan_speed: 1.0
  78.  
  79. [mcu]
  80. #make sure this reflects your serial port you found when flashing klipper
  81. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  82.  
  83. [virtual_sdcard]
  84. path: ~/gcode_files
  85.  
  86. [mcu rpi]
  87. serial = /tmp/klipper_host_mcu
  88.  
  89. [adxl345]
  90. cs_pin = rpi:None
  91.  
  92. [resonance_tester]
  93. accel_chip = adxl345
  94. probe_points = 137,140,20
  95.  
  96. [input_shaper]
  97. shaper_freq_x: 63.4
  98. shaper_freq_y: 59.8
  99. shaper_type_x: mzv
  100.  
  101. [display_status]
  102.  
  103. [pause_resume]
  104.  
  105. [gcode_macro PAUSE]
  106. description: Pause the actual running print
  107. rename_existing: PAUSE_BASE
  108. # change this if you need more or less extrusion
  109. variable_extrude: 1.0
  110. gcode:
  111. ##### read E from pause macro #####
  112. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  113. ##### set park positon for x and y #####
  114. # default is your max posion from your printer.cfg
  115. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  116. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  117. ##### calculate save lift position #####
  118. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  119. {% set act_z = printer.toolhead.position.z|float %}
  120. {% if act_z < (max_z - 2.0) %}
  121. {% set z_safe = 2.0 %}
  122. {% else %}
  123. {% set z_safe = max_z - act_z %}
  124. {% endif %}
  125. ##### end of definitions #####
  126. PAUSE_BASE
  127. G91
  128. {% if printer.extruder.can_extrude|lower == 'true' %}
  129. G1 E-{E} F2100
  130. {% else %}
  131. {action_respond_info("Extruder not hot enough")}
  132. {% endif %}
  133. {% if "xyz" in printer.toolhead.homed_axes %}
  134. G1 Z{z_safe} F900
  135. G90
  136. G1 X{x_park} Y{y_park} F6000
  137. {% else %}
  138. {action_respond_info("Printer not homed")}
  139. {% endif %}
  140.  
  141. [gcode_macro RESUME]
  142. description: Resume the actual running print
  143. rename_existing: RESUME_BASE
  144. gcode:
  145. ##### read E from pause macro #####
  146. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  147. #### get VELOCITY parameter if specified ####
  148. {% if 'VELOCITY' in params|upper %}
  149. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  150. {%else %}
  151. {% set get_params = "" %}
  152. {% endif %}
  153. ##### end of definitions #####
  154. {% if printer.extruder.can_extrude|lower == 'true' %}
  155. G91
  156. G1 E{E} F2100
  157. {% else %}
  158. {action_respond_info("Extruder not hot enough")}
  159. {% endif %}
  160. RESUME_BASE {get_params}
  161.  
  162. [gcode_macro CANCEL_PRINT]
  163. description: Cancel the actual running print
  164. rename_existing: CANCEL_PRINT_BASE
  165. gcode:
  166. TURN_OFF_HEATERS
  167. CANCEL_PRINT_BASE
  168.  
  169. [printer]
  170. kinematics: cartesian
  171. max_velocity: 200
  172. max_accel: 3000
  173. max_z_velocity: 50
  174. max_z_accel: 100
  175. square_corner_velocity: 5
  176.  
  177. [bed_screws]
  178. screw1: 45,45
  179. screw1_name: front left
  180. screw2: 185,45
  181. screw2_name: front right
  182. screw3: 185,185
  183. screw3_name: back right
  184. screw4: 45,185
  185. screw4_name: back left
  186. speed: 100.0
  187.  
  188. [screws_tilt_adjust]
  189. screw1: 17,78
  190. screw1_name: front left
  191. screw2: 157,78
  192. screw2_name: front right
  193. screw3: 17,218
  194. screw3_name: back left
  195. screw4: 157,218
  196. screw4_name: back right
  197. speed: 100.0
  198. screw_thread: CW-M5
  199.  
  200. [gcode_macro START_PRINT]
  201. # Reference https://github.com/KevinOConnor/klipper/blob/master/docs/Config_Reference.md#gcode_macroA
  202. # On how to override default parameters
  203. #default_parameter_BED_TEMP: 60
  204. #default_parameter_EXTRUDER_TEMP: 200
  205.  
  206. gcode:
  207. # Home the printer
  208. G28
  209. # Use absolute coordinates
  210. G90
  211. # Move the nozzle near the bed
  212. G1 X0 Y0 Z5 F3000
  213. # Move the nozzle very close to the bed
  214. G1 Z0.15 F300
  215. G92 E0 ;Reset Extruder
  216. G1 X20 Y5 Z0.3 F5000.0
  217. G1 Z0.3 F1000
  218. G1 X200 Y5 F1500.0 E15
  219. G1 X200 Y5.3 Z0.3 F5000.0
  220. G1 X5.3 Y5.3 Z0.3 F1500.0 E30
  221. G1 Z3 F3000
  222. G21 ; set units to millimeters
  223. G90 ; use absolute coordinates
  224. M83 ; use relative distances for extrusion
  225. G92 E0
  226.  
  227. [gcode_macro END_PRINT]
  228. gcode:
  229. # Turn off bed, extruder, and fan
  230. M140 S0
  231. M104 S0
  232. M106 S0
  233. # Move nozzle away from print while retracting
  234. G91
  235. G1 X-2 Y-2 E-3 F300
  236. # Raise nozzle by 10mm
  237. G1 Z30 F3000
  238. G90
  239. # Disable steppers
  240. M84
  241.  
  242. [pause_resume]
  243. recover_velocity: 50.
  244.  
  245. #[filament_switch_sensor my_sensor]
  246. #Move filament runout sensor from TFT to X+ endstop pin. Umcomment all but this line if you want to use this
  247. #pause_on_runout: False
  248. #runout_gcode: PAUSE
  249. #insert_gcode: RESUME
  250. #switch_pin: ar2
  251.  
  252. # Arduino aliases for atmega2560/1280 (Arduino mega) boards
  253. [board_pins arduino-mega]
  254. aliases:
  255. ar0=PE0, ar1=PE1, ar2=PE4, ar3=PE5, ar4=PG5,
  256. ar5=PE3, ar6=PH3, ar7=PH4, ar8=PH5, ar9=PH6,
  257. ar10=PB4, ar11=PB5, ar12=PB6, ar13=PB7, ar14=PJ1,
  258. ar15=PJ0, ar16=PH1, ar17=PH0, ar18=PD3, ar19=PD2,
  259. ar20=PD1, ar21=PD0, ar22=PA0, ar23=PA1, ar24=PA2,
  260. ar25=PA3, ar26=PA4, ar27=PA5, ar28=PA6, ar29=PA7,
  261. ar30=PC7, ar31=PC6, ar32=PC5, ar33=PC4, ar34=PC3,
  262. ar35=PC2, ar36=PC1, ar37=PC0, ar38=PD7, ar39=PG2,
  263. ar40=PG1, ar41=PG0, ar42=PL7, ar43=PL6, ar44=PL5,
  264. ar45=PL4, ar46=PL3, ar47=PL2, ar48=PL1, ar49=PL0,
  265. ar50=PB3, ar51=PB2, ar52=PB1, ar53=PB0, ar54=PF0,
  266. ar55=PF1, ar56=PF2, ar57=PF3, ar58=PF4, ar59=PF5,
  267. ar60=PF6, ar61=PF7, ar62=PK0, ar63=PK1, ar64=PK2,
  268. ar65=PK3, ar66=PK4, ar67=PK5, ar68=PK6, ar69=PK7,
  269. analog0=PF0, analog1=PF1, analog2=PF2, analog3=PF3, analog4=PF4,
  270. analog5=PF5, analog6=PF6, analog7=PF7, analog8=PK0, analog9=PK1,
  271. analog10=PK2, analog11=PK3, analog12=PK4, analog13=PK5, analog14=PK6,
  272. analog15=PK7,
  273. # Marlin adds these additional aliases
  274. ml70=PG4, ml71=PG3, ml72=PJ2, ml73=PJ3, ml74=PJ7,
  275. ml75=PJ4, ml76=PJ5, ml77=PJ6, ml78=PE2, ml79=PE6,
  276. ml80=PE7, ml81=PD4, ml82=PD5, ml83=PD6, ml84=PH2,
  277. ml85=PH7
  278.  
  279. #*# <---------------------- SAVE_CONFIG ---------------------->
  280. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  281. #*#
  282. #*# [extruder]
  283. #*# control = pid
  284. #*# pid_kp = 21.465
  285. #*# pid_ki = 0.980
  286. #*# pid_kd = 117.521
  287. #*#
  288. #*# [heater_bed]
  289. #*# control = pid
  290. #*# pid_kp = 48.362
  291. #*# pid_ki = 0.638
  292. #*# pid_kd = 915.854
  293. #*#
  294. #*# [stepper_z]
  295. #*# position_endstop = -0.100
  296.  
Advertisement
Add Comment
Please, Sign In to add comment