Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.70 KB | None | 0 0
  1. [force_move]
  2. enable_force_move: True
  3.  
  4. [pause_resume]
  5.  
  6. [gcode_macro START_PRINT]
  7. gcode:
  8. G21 ;metric values
  9. G90 ;absolute positioning
  10. M82 ;set extruder to absolute mode
  11. M107 ;start with the fan off
  12. G29; Bed mesh levelling
  13. ; BED_MESH_PROFILE LOAD=cr10s
  14. G92 E0 ;Reset Extruder
  15. G1 Z2.0 F3000 ;Move Z Axis up
  16. G1 X35 Y20 Z0.28 F5000.0 ;Move to start position
  17. G1 X35 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
  18. G1 X35.3 Y200.0 Z0.28 F5000.0 ;Move to side a little
  19. G1 X35.3 Y20 Z0.28 F1500.0 E30 ;Draw the second line
  20. G92 E0 ;Reset Extruder
  21. G1 Z2.0 F3000 ;Move Z Axis up
  22. M117 Printing...
  23.  
  24. [gcode_macro END_PRINT]
  25. gcode:
  26. M117 Ending print
  27. G10
  28. G91
  29. G1 Z+10
  30. G1 E-10 F300
  31. G90
  32. G1 X0 Y300 ;Present print
  33. M107 ; turn fan off
  34. M104 S0 ;Turn-off hotend
  35. M140 S0 ;Turn-off bed
  36. M84 X Y E ;Disable all steppers but Z
  37. M300 P300 S4000
  38. BED_MESH_CLEAR
  39. M117 All done!
  40.  
  41. [gcode_macro M600]
  42. default_parameter_X: 50
  43. default_parameter_Y: 0
  44. default_parameter_Z: 10
  45. gcode:
  46. SAVE_GCODE_STATE NAME=M600_state
  47. PAUSE
  48. G91
  49. G1 E-.8 F2700
  50. G1 Z{Z}
  51. G90
  52. G1 X{X} Y{Y} F3000
  53. G91
  54. G1 E-50 F1000
  55. RESTORE_GCODE_STATE NAME=M600_state
  56.  
  57.  
  58. # Bed Levelling (Automatic)
  59. [gcode_macro G29]
  60. gcode:
  61. G28
  62. BED_MESH_CLEAR
  63. BED_MESH_CALIBRATE
  64. ; BED_MESH_PROFILE SAVE=cr10s
  65. M140 S0
  66. M117 Finished bed levelling
  67. ; SAVE_CONFIG
  68.  
  69.  
  70. [stepper_x]
  71. step_pin: P2.2
  72. dir_pin: !P2.6
  73. enable_pin: !P2.1
  74. step_distance: .0125
  75. #endstop_pin: !P1.29
  76. endstop_pin: tmc2209_stepper_x:virtual_endstop
  77. position_endstop: 0
  78. position_max: 300
  79. homing_speed: 50
  80. homing_retract_dist: 0 # to avoid sensor triggered after retract errors
  81.  
  82. [tmc2209 stepper_x]
  83. uart_pin: P1.17
  84. microsteps: 16
  85. interpolate: True
  86. run_current: 0.8
  87. hold_current: 0.5
  88. stealthchop_threshold: 250
  89. diag_pin: P1.29
  90. driver_SGTHRS: 140 # tuning value for sensor-less homing, set to 250 as a start
  91.  
  92. [stepper_y]
  93. step_pin: P0.19
  94. dir_pin: !P0.20
  95. enable_pin: !P2.8
  96. step_distance: .0125
  97. #endstop_pin: !P1.27
  98. endstop_pin: tmc2209_stepper_y:virtual_endstop
  99. position_endstop: 0
  100. position_max: 300
  101. homing_speed: 50
  102. homing_retract_dist: 0 # to avoid sensor triggered after retract errors
  103.  
  104. [tmc2209 stepper_y]
  105. uart_pin: P1.15
  106. microsteps: 16
  107. run_current: 0.8
  108. hold_current: 0.5
  109. stealthchop_threshold: 250
  110. diag_pin: P1.27
  111. driver_SGTHRS: 140 # tuning value for sensor-less homing, set to 250 as a start
  112.  
  113. [probe]
  114. pin: !P1.25
  115. x_offset: -40
  116. y_offset: -10
  117. #z_offset: 2.499
  118. speed: 10.0
  119.  
  120. [stepper_z]
  121. step_pin: P0.22
  122. dir_pin: P2.11
  123. enable_pin: !P0.21
  124. step_distance: .0025
  125. endstop_pin: probe:z_virtual_endstop
  126. position_min: 0
  127. position_max: 400
  128.  
  129. [tmc2209 stepper_z]
  130. uart_pin: P1.10
  131. microsteps: 16
  132. run_current: 0.8
  133. hold_current: 0.5
  134. stealthchop_threshold: 5
  135. ## TODO: driver_SGTHRS: 160 # tuning value for sensorless homing, set to 0 as a start
  136.  
  137. [stepper_z1]
  138. step_pin: P0.1
  139. dir_pin: P0.0
  140. enable_pin: !P0.10
  141. step_distance: .0025
  142.  
  143. [tmc2209 stepper_z1]
  144. uart_pin: P1.1
  145. microsteps: 16
  146. run_current: 0.8
  147. hold_current: 0.5
  148. stealthchop_threshold: 5
  149. ## TODO: driver_SGTHRS: 160 # tuning value for sensorless homing, set to 0 as a start
  150.  
  151. #[homing_override]
  152. #set_position_z: 5
  153. #gcode:
  154. # M106 S255
  155. # G90
  156. # G0 Z20 F500
  157. # G28 X Y Z
  158. # G0 X150 Y150 Z10 F3000
  159.  
  160. [safe_z_home]
  161. home_xy_position: 150,150 # Change coordinates to the center of your print bed
  162. speed: 50
  163. z_hop: 10 # Move up 10mm
  164. z_hop_speed: 5
  165.  
  166. [bed_mesh]
  167. min_point: 45,20
  168. max_point: 285,285
  169. probe_count: 4
  170.  
  171. # thermistor values taken from https://www.sliceengineering.com/pages/documentation
  172. [thermistor mosquito_thermistor]
  173. temperature1: 20
  174. resistance1: 613400
  175. temperature2: 190
  176. resistance2: 4509
  177. temperature3: 260
  178. resistance3: 1359
  179.  
  180. ### To tune extruder step_distance:
  181. ## mark 120mm from extruder entrance
  182. ## M83
  183. ## G1 E100 F100
  184. ## ((120 - measured) / 100) * current_step_distance
  185.  
  186. [extruder]
  187. step_pin: P2.13
  188. dir_pin: !P0.11
  189. enable_pin: !P2.12
  190. #step_distance: .010526
  191. ### BMG Extruder is 3:1 gear ratio:
  192. step_distance: 0.002445
  193. nozzle_diameter: 0.400
  194. filament_diameter: 1.750
  195. heater_pin: P2.7
  196. # sensor_type: EPCOS 100K B57560G104F
  197. sensor_type: mosquito_thermistor
  198. sensor_pin: P0.24
  199. #control: pid
  200. #pid_Kp: 22.2
  201. #pid_Ki: 1.08
  202. #pid_Kd: 114
  203. min_temp: 0
  204. max_temp: 260
  205.  
  206. [tmc2209 extruder]
  207. uart_pin: P1.8
  208. microsteps: 16
  209. run_current: 0.800
  210. hold_current: 0.500
  211. stealthchop_threshold: 250
  212.  
  213. [heater_bed]
  214. heater_pin: P2.5
  215. sensor_type: ATC Semitec 104GT-2
  216. sensor_pin: P0.23
  217. control: pid
  218. pid_Kp: 690.34
  219. pid_Ki: 111.47
  220. pid_Kd: 1068.83
  221. min_temp: 0
  222. max_temp: 130
  223.  
  224. [fan]
  225. pin: P2.3
  226.  
  227. [firmware_retraction]
  228. retract_length: 2.5
  229. retract_speed: 20
  230. unretract_speed: 10
  231.  
  232. ######################################################################
  233. # Filament sensors
  234. ######################################################################
  235.  
  236. [filament_switch_sensor filament]
  237. pause_on_runout: True
  238. switch_pin: P1.24
  239.  
  240. [mcu]
  241. serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
  242.  
  243. [printer]
  244. kinematics: cartesian
  245. max_velocity: 300
  246. max_accel: 3000
  247. max_z_velocity: 5
  248. max_z_accel: 100
  249.  
  250. ######################################################################
  251. # 128x64 Full Graphic Creality CR10 / ENDER 3 stockdisplay
  252. ######################################################################
  253.  
  254. [display]
  255. lcd_type: st7920
  256. cs_pin: EXP1_7
  257. sclk_pin: EXP1_6
  258. sid_pin: EXP1_8
  259. encoder_pins: ^EXP1_5, ^EXP1_3
  260. click_pin: ^!EXP1_2
  261.  
  262. [output_pin beeper]
  263. pin: EXP1_1
  264.  
  265.  
  266. ########################################
  267. # EXP1 / EXP2 (display) pins
  268. ########################################
  269.  
  270. [board_pins]
  271. aliases:
  272. # EXP1 header
  273. EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
  274. EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
  275. # EXP2 header
  276. EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
  277. EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
  278. # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
  279.  
  280. #*# <---------------------- SAVE_CONFIG ---------------------->
  281. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  282. #*#
  283. #*# [bed_mesh default]
  284. #*# points =
  285. #*# -0.117500, -0.065000, 0.045000, 0.320000
  286. #*# -0.192500, -0.105000, 0.000000, 0.307500
  287. #*# -0.112500, -0.055000, 0.030000, 0.320000
  288. #*# 0.005000, 0.030000, 0.117500, 0.397500
  289. #*# x_count = 4
  290. #*# y_count = 4
  291. #*# min_x = 45.0
  292. #*# max_x = 285.0
  293. #*# min_y = 20.0
  294. #*# max_y = 284.99
  295. #*# x_offset = -40.0
  296. #*# y_offset = -10.0
  297. #*# mesh_x_pps = 2
  298. #*# mesh_y_pps = 2
  299. #*# algo = lagrange
  300. #*# tension = 0.2
  301. #*#
  302. #*# [probe]
  303. #*# z_offset = 0.750
  304. #*#
  305. #*# [extruder]
  306. #*# control = pid
  307. #*# pid_kp = 35.289
  308. #*# pid_ki = 2.768
  309. #*# pid_kd = 112.482
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement