Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. ########################################################
  2.  
  3. ########################################################
  4. [stepper_x]
  5. step_pin: P2.2
  6. #dir_pin: !P2.6
  7. dir_pin: P2.6
  8. enable_pin: !P2.1
  9. step_distance: 0.025
  10. endstop_pin: tmc2130_stepper_x:virtual_endstop
  11. #position_endstop: 0
  12. position_endstop: 235
  13. position_min: 0
  14. position_max: 235
  15. homing_speed: 50
  16. homing_retract_dist: 0
  17.  
  18. [tmc2130 stepper_x]
  19. cs_pin: P1.17
  20. spi_software_miso_pin: P0.5
  21. spi_software_mosi_pin: P4.28
  22. spi_software_sclk_pin: P0.4
  23. microsteps: 4
  24. interpolate: True
  25. run_current: 0.900
  26. hold_current: 0.300
  27. sense_resistor: 0.110
  28. stealthchop_threshold: 999
  29. driver_SGT: -4 #IF Stopped shorted (+) values, If grinding happens (-) values
  30. diag1_pin: !P1.29
  31.  
  32. ########################################################
  33.  
  34. ########################################################
  35. # 1x 0.1
  36. # 2x 0.05
  37. # 4x 0.025
  38. # 8x 0.0125
  39. # 16x 0.00625
  40. ########################################################
  41. [stepper_y]
  42. step_pin: P0.19
  43. #dir_pin: !P0.20
  44. dir_pin: P0.20
  45. enable_pin: !P2.8
  46. step_distance: 0.025
  47. endstop_pin: tmc2130_stepper_y:virtual_endstop
  48. #position_endstop: 0
  49. position_endstop: 235
  50. position_min: 0
  51. position_max: 235
  52. homing_speed: 50
  53. homing_retract_dist: 0
  54.  
  55. [tmc2130 stepper_y]
  56. cs_pin: P1.15
  57. spi_software_miso_pin: P0.5
  58. spi_software_mosi_pin: P4.28
  59. spi_software_sclk_pin: P0.4
  60. microsteps: 4
  61. interpolate: True
  62. run_current: 0.900
  63. hold_current: 0.300
  64. sense_resistor: 0.110
  65. stealthchop_threshold: 999
  66. driver_SGT: -4 #IF Stopped shorted (+) values, If grinding happens (-) values
  67. diag1_pin: !P1.27
  68. ########################################################
  69.  
  70. #Z
  71. ########################################################
  72. # 1x 0.04
  73. # 2x 0.02
  74. # 4x 0.01
  75. # 8x 0.005
  76. # 16x 0.0025
  77. ########################################################
  78. [stepper_z]
  79. step_pin: P0.22
  80. dir_pin: P2.11
  81. enable_pin: !P0.21
  82. step_distance: 0.04
  83. endstop_pin: probe:z_virtual_endstop
  84. position_min: -2
  85. position_max: 245
  86.  
  87. [tmc2130 stepper_z]
  88. cs_pin: P1.10
  89. spi_software_miso_pin: P0.5
  90. spi_software_mosi_pin: P4.28
  91. spi_software_sclk_pin: P0.4
  92. microsteps: 1
  93. interpolate: True
  94. run_current: 0.900
  95. hold_current: 0.500
  96. sense_resistor: 0.110
  97. stealthchop_threshold: 999
  98.  
  99. [endstop_phase stepper_z]
  100. endstop_align_zero: True
  101. ########################################################
  102.  
  103. #Extruder
  104. ########################################################
  105. [extruder]
  106. step_pin: P2.13
  107. dir_pin: !P0.11
  108. enable_pin: !P2.12
  109. step_distance: 0.0024096385542169 #415 Marlin EStep
  110. nozzle_diameter: 0.400
  111. filament_diameter: 1.750
  112. max_extrude_cross_section: 1000
  113. max_extrude_only_distance: 200
  114. pressure_advance: 0.000
  115. pressure_advance_lookahead_time: 0.010
  116. heater_pin: P2.7
  117. sensor_type: ATC Semitec 104GT-2
  118. sensor_pin: P0.24
  119. #control: pid
  120. #pid_Kp: 25.615
  121. #pid_Ki: 1.626
  122. #pid_Kd: 100.860
  123. min_temp: -5
  124. max_temp: 250
  125. min_extrude_temp: 0
  126.  
  127. [tmc2130 extruder]
  128. cs_pin: P1.1
  129. spi_software_miso_pin: P0.5
  130. spi_software_mosi_pin: P4.28
  131. spi_software_sclk_pin: P0.4
  132. microsteps: 4
  133. interpolate: True
  134. run_current: 0.900
  135. hold_current: 0.300
  136. sense_resistor: 0.110
  137. stealthchop_threshold: 0
  138. ########################################################
  139.  
  140. ########################################################
  141. [heater_fan hotend_fan]
  142. pin: P2.4
  143. max_power: 1.0
  144. shutdown_speed: 1.0
  145. kick_start_time: 0.100
  146. heater: extruder
  147. heater_temp: 50.0
  148. fan_speed: 1.0
  149.  
  150. [heater_bed]
  151. heater_pin: P2.5
  152. sensor_type: EPCOS 100K B57560G104F
  153. sensor_pin: P0.23
  154. #control: pid
  155. #pid_kp: 68.719
  156. #pid_ki: 1.332
  157. #pid_kd: 886.474
  158. min_temp: -5
  159. max_temp: 100
  160.  
  161. [fan]
  162. pin: P2.3
  163.  
  164. [mcu]
  165. serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
  166. #serial: /dev/ttyACM0
  167. baud: 250000
  168.  
  169. [printer]
  170. kinematics: cartesian
  171. max_velocity: 300
  172. max_accel: 3000 # 2nd Target 4000
  173. max_accel_to_decel: 1500 # 3rd Target 3000
  174. square_corner_velocity: 6.0 # 1st Target 4
  175. max_z_velocity: 20 # Target 20
  176. max_z_accel: 1000 # Target 2000
  177.  
  178. #[skew_correction]
  179.  
  180. [virtual_sdcard]
  181. path: ~/.octoprint/uploads/
  182.  
  183. [force_move]
  184. enable_force_move: true
  185. ########################################
  186. # EXP1 / EXP2 (display) pins
  187. ########################################
  188.  
  189. [board_pins]
  190. aliases:
  191. # EXP1 header
  192. EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
  193. EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
  194. # EXP2 header
  195. EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
  196. EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
  197. # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
  198.  
  199. [display]
  200. lcd_type: st7920
  201. cs_pin: EXP1_7
  202. sclk_pin: EXP1_6
  203. sid_pin: EXP1_8
  204. encoder_pins: ^EXP1_5, ^EXP1_3
  205. click_pin: ^!EXP1_2
  206.  
  207. [output_pin beeper]
  208. pin: EXP1_1
  209.  
  210. ########################################
  211.  
  212. #[bltouch]
  213. #sensor_pin: P1.25
  214. #control_pin: P2.0
  215. #pin_move_time: 0.400
  216. #pin_up_reports_not_triggered: True
  217. #pin_up_touch_mode_reports_triggered: False
  218. #speed: 80
  219. #samples: 3
  220. #sample_retract_dist: 5
  221. #samples_tolerance: 0.500
  222. #x_offset: 44
  223. #y_offset: -2
  224. #z_offset: 0.000
  225.  
  226. [probe]
  227. pin: !P1.25
  228. x_offset: 0.0
  229. y_offset: 0.0
  230. z_offset: 0
  231. speed: 50.0
  232. samples: 3
  233. sample_retract_dist: 2.0
  234. samples_result: average
  235. samples_tolerance: 0.100
  236.  
  237. [safe_z_home]
  238. speed: 80
  239. home_xy_position: 76, 115
  240. z_hop: 5.0
  241. z_hop_speed: 20.0
  242.  
  243. #[homing_override]
  244. #gcode:
  245. # G90 ; Use absolute position mode
  246. # G1 Z5 ; Move up 5mm
  247. # G28 X Y
  248. # G1 X117.5 Y117.5 F6000
  249. #axes: xy
  250. #set_position_z: 0.0
  251.  
  252. [bed_mesh]
  253. speed: 80
  254. horizontal_move_z: 5
  255. min_point: 6, 36
  256. max_point: 147, 193
  257. probe_count: 5,5
  258. algorithm: bicubic
  259. ########################################
  260. [gcode_macro START_PRINT]
  261. gcode:
  262. SET_GCODE_OFFSET Z=0.0
  263. G29
  264. G0 X5 Y5 F6000 #Go to front
  265. G0 Z0.15 #Lower Z
  266. G92 E0 #Reset Extruder
  267. G1 Y40 E45 F300 #Purge Extuder
  268. G92 E0 #Reset Extruder
  269. G1 E-1 F500 #Retract
  270. G4 S10 #Wait
  271. G1 Y80 F4000
  272. G1 Z0.3
  273.  
  274. [gcode_macro END_PRINT]
  275. gcode:
  276. ; process ENDGCODE
  277. G4 S10 # Wait
  278. M220 S100 # Reset Speed factor override percentage to default (100%)
  279. M221 S100 # Reset Extrude factor override percentage to default (100%)
  280. G91 # Set coordinates to relative
  281. G1 F1800 E-5 # Retract filament 5 mm to prevent oozing
  282. G1 F1500 Z10 # Move Z Axis up 10 mm to allow filament ooze freely
  283. G90 # Set coordinates to absolute
  284. G28 X
  285. M104 S0 # Turn off Extruder temperature
  286. M140 S0 # Turn off Heat Bed
  287. M106 S0 # Turn off Cooling Fan
  288. M107 # Turn off Fan
  289. M84 # Disable stepper motors
  290.  
  291. [gcode_macro G29]
  292. gcode:
  293. G28
  294. BED_MESH_CALIBRATE
  295.  
  296. [gcode_macro PURGE]
  297. gcode:
  298. G92 E0
  299. M83
  300. G1 E100 F300
  301.  
  302. #*# <---------------------- SAVE_CONFIG ---------------------->
  303. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  304. #*#
  305. #*# [extruder]
  306. #*# control = pid
  307. #*# pid_kp = 23.131
  308. #*# pid_ki = 1.142
  309. #*# pid_kd = 117.101
  310. #*#
  311. #*# [heater_bed]
  312. #*# control = pid
  313. #*# pid_kp = 72.391
  314. #*# pid_ki = 1.658
  315. #*# pid_kd = 789.972
  316. #*#
  317. #*# [bed_mesh default]
  318. #*# points =
  319. #*# -0.160000, -0.120000, -0.120000, -0.093333, -0.066667
  320. #*# -0.120000, -0.080000, -0.080000, -0.040000, -0.040000
  321. #*# -0.080000, -0.080000, -0.080000, -0.080000, -0.013333
  322. #*# -0.080000, -0.040000, -0.040000, 0.000000, 0.040000
  323. #*# -0.026667, 0.000000, 0.040000, 0.066667, 0.120000
  324. #*# x_count = 5
  325. #*# y_count = 5
  326. #*# min_x = 6.0
  327. #*# max_x = 147.0
  328. #*# min_y = 36.0
  329. #*# max_y = 193.0
  330. #*# x_offset = 44.0
  331. #*# y_offset = -2.0
  332. #*# mesh_x_pps = 2
  333. #*# mesh_y_pps = 2
  334. #*# algo = bicubic
  335. #*# tension = 0.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement