Guest User

Untitled

a guest
Nov 16th, 2019
116
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [gcode_macro G10]
  2. gcode:
  3. G91
  4. G1 E-2.5 F4000
  5. G90
  6.  
  7. [gcode_macro G11]
  8. gcode:
  9. G91
  10. G1 E2.5 F1200
  11. 90
  12.  
  13. [gcode_macro START_PRINT]
  14. gcode:
  15. G21 ;metric values
  16. G90 ;absolute positioning
  17. M82 ;set extruder to absolute mode
  18. M107 ;start with the fan off
  19. G28; Home Axis
  20. ; BED_MESH_PROFILE LOAD=cr10s
  21. G92 E0 ;Reset Extruder
  22. G1 Z2.0 F3000 ;Move Z Axis up
  23. G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
  24. G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
  25. G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
  26. G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
  27. G92 E0 ;Reset Extruder
  28. G1 Z2.0 F3000 ;Move Z Axis up
  29. M117 Printing...
  30.  
  31. [gcode_macro END_PRINT]
  32. gcode:
  33. M117 Ending print
  34. G10
  35. G91
  36. G1 Z+10
  37. G1 E-10 F300
  38. G90
  39. G1 X0 Y300 ;Present print
  40. M107 ; turn fan off
  41. M104 S0 ;Turn-off hotend
  42. M140 S0 ;Turn-off bed
  43. M84 X Y E ;Disable all steppers but Z
  44. M300 P300 S4000
  45. BED_MESH_CLEAR
  46. M117 All done!
  47.  
  48.  
  49. # Bed Levelling (Automatic)
  50. [gcode_macro G29]
  51. gcode:
  52. G28
  53. BED_MESH_CLEAR
  54. BED_MESH_CALIBRATE
  55. ; BED_MESH_PROFILE SAVE=cr10s
  56. M140 S0
  57. M117 Finished bed levelling
  58. SAVE_CONFIG
  59.  
  60.  
  61. [stepper_x]
  62. step_pin: P2.2
  63. dir_pin: !P2.6
  64. enable_pin: !P2.1
  65. step_distance: .0125
  66. endstop_pin: P1.29 # P1.28 for X-max
  67. position_endstop: 0
  68. position_max: 300
  69. homing_speed: 50
  70.  
  71. [tmc2209 stepper_x]
  72. uart_pin: P1.17
  73. microsteps: 64
  74. interpolate: True
  75. run_current: 0.800
  76. hold_current: 0.500
  77. stealthchop_threshold: 100
  78.  
  79. [stepper_y]
  80. step_pin: P0.19
  81. dir_pin: !P0.20
  82. enable_pin: !P2.8
  83. step_distance: .0125
  84. endstop_pin: P1.27 # P1.26 for Y-max
  85. position_endstop: 0
  86. position_max: 300
  87. homing_speed: 50
  88.  
  89. [tmc2209 stepper_y]
  90. uart_pin: P1.15
  91. microsteps: 32
  92. interpolate: True
  93. run_current: 0.800
  94. hold_current: 0.500
  95. sense_resistor: 0.110
  96. stealthchop_threshold: 100
  97.  
  98. [probe]
  99. pin: P1.24
  100. x_offset: 48.0
  101. y_offset: -2
  102. z_offset: 2.499
  103. speed: 10.0
  104.  
  105. [stepper_z]
  106. step_pin: P0.22
  107. dir_pin: P2.11
  108. enable_pin: !P0.21
  109. step_distance: .0025
  110. endstop_pin: probe:z_virtual_endstop
  111. position_endstop: 0.5
  112. position_max: 400
  113.  
  114. [stepper_z1]
  115. step_pin: P0.1
  116. dir_pin: P0.0
  117. enable_pin: !P0.10
  118. step_distance: .0025
  119.  
  120. [tmc2209 stepper_z]
  121. uart_pin: P1.10
  122. microsteps: 16
  123. interpolate: True
  124. run_current: 1.000
  125. hold_current: 0.700
  126. stealthchop_threshold: 0
  127.  
  128. [homing_override]
  129. set_position_z: 5
  130. gcode:
  131. M106 S255
  132. G90
  133. G0 Z20 F500
  134. G28 X Y Z
  135. G0 X150 Y150 Z10 F3000
  136.  
  137. [bed_mesh]
  138. min_point: 20,20
  139. max_point: 240,280
  140. probe_count: 4
  141.  
  142. ### To tune extruder step_distance:
  143. ## mark 120mm from extruder entrance
  144. ## M83
  145. ## G1 E100 F100
  146. ## ((120 - measured) / 100) * current_step_distance
  147.  
  148. [extruder]
  149. step_pin: P2.13
  150. dir_pin: !P0.11
  151. enable_pin: !P2.12
  152. step_distance: .010526
  153. nozzle_diameter: 0.400
  154. filament_diameter: 1.750
  155. heater_pin: P2.7
  156. sensor_type: EPCOS 100K B57560G104F
  157. sensor_pin: P0.24
  158. control: pid
  159. pid_Kp: 22.2
  160. pid_Ki: 1.08
  161. pid_Kd: 114
  162. min_temp: 0
  163. max_temp: 260
  164.  
  165. #[tmc2209 extruder]
  166. #uart_pin: P1.8
  167. #microsteps: 16
  168. #interpolate: True
  169. #run_current: 0.800
  170. #hold_current: 0.500
  171. #stealthchop_threshold: 0
  172.  
  173. [heater_bed]
  174. heater_pin: P2.5
  175. sensor_type: ATC Semitec 104GT-2
  176. sensor_pin: P0.23
  177. control: watermark
  178. min_temp: 0
  179. max_temp: 130
  180.  
  181. [fan]
  182. pin: P2.3
  183.  
  184. [mcu]
  185. serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
  186.  
  187. [printer]
  188. kinematics: cartesian
  189. max_velocity: 300
  190. max_accel: 3000
  191. max_z_velocity: 5
  192. max_z_accel: 100
  193.  
  194. ######################################################################
  195. # 128x64 Full Graphic Creality CR10 / ENDER 3 stockdisplay
  196. ######################################################################
  197.  
  198. [display]
  199. lcd_type: st7920
  200. cs_pin: EXP1_7
  201. sclk_pin: EXP1_6
  202. sid_pin: EXP1_8
  203. encoder_pins: ^EXP1_5, ^EXP1_3
  204. click_pin: ^!EXP1_2
  205.  
  206. [output_pin beeper]
  207. pin: EXP1_1
  208.  
  209.  
  210. ########################################
  211. # EXP1 / EXP2 (display) pins
  212. ########################################
  213.  
  214. [board_pins]
  215. aliases:
  216. # EXP1 header
  217. EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
  218. EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
  219. # EXP2 header
  220. EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
  221. EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
  222. # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
RAW Paste Data