Advertisement
Guest User

Untitled

a guest
Nov 14th, 2023
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 KB | None | 0 0
  1. [include mainsail.cfg]
  2. [virtual_sdcard]
  3. path: /home/pi/printer_data/gcodes
  4. on_error_gcode: CANCEL_PRINT
  5.  
  6.  
  7. # MKS Gen l V1
  8.  
  9. [stepper_x]
  10. step_pin: PF0
  11. dir_pin: PF1
  12. enable_pin: !PD7
  13. microsteps: 16
  14. rotation_distance: 32 ##rotation_distance = ((360°/1.8°) * microsteps) / 100 # # 旋转距离 = (圆周360°/步距角)*细分/每MM脉冲值
  15. endstop_pin: ^!PE5 #X-Min, PE4:X-Max
  16. position_endstop: 0
  17. position_max: 210
  18. homing_speed: 30
  19.  
  20. [stepper_y]
  21. step_pin: PF6
  22. dir_pin: PF7
  23. enable_pin: !PF2
  24. microsteps: 16
  25. rotation_distance: 32
  26. endstop_pin: ^!PJ1 #Y-Min, PJ0:Y-Max
  27. position_endstop: 0
  28. position_max: 210
  29. homing_speed: 30
  30.  
  31. [stepper_z]
  32. step_pin: PL3
  33. dir_pin: !PL1
  34. enable_pin: !PK0
  35. microsteps: 16
  36. rotation_distance: 8
  37. endstop_pin: ^!PD3 #Z-Min, PD2:Z-Max
  38. position_endstop: 0
  39. position_max: 210
  40. position_min: -3
  41.  
  42. [extruder]
  43. step_pin: PA4
  44. dir_pin: PA6
  45. enable_pin: !PA2
  46. microsteps: 16
  47. rotation_distance: 33.500
  48. nozzle_diameter: 0.4
  49. filament_diameter: 1.750
  50. heater_pin: PB4
  51. sensor_type: ATC Semitec 104GT-2
  52. sensor_pin: PK5
  53. min_temp: 0
  54. max_temp: 250
  55. control: pid
  56. pid_Kp: 22.2
  57. pid_Ki: 1.08
  58. pid_Kd: 114
  59.  
  60. #[extruder1]
  61. #step_pin: PC1
  62. #dir_pin: !PC3
  63. #enable_pin: !PC7
  64. #heater_pin: PH4
  65. #sensor_pin: PK7
  66. #...
  67.  
  68. [heater_bed]
  69. heater_pin: PH5
  70. sensor_type: ATC Semitec 104GT-2
  71. sensor_pin: PK6
  72. min_temp: 0
  73. max_temp: 130
  74. control: pid
  75. pid_Kp: 325.10
  76. pid_Ki: 63.35
  77. pid_Kd: 417.10
  78.  
  79. [fan]
  80. pin: PH6
  81.  
  82. [mcu]
  83. serial:/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  84.  
  85. ########################################
  86. # TMC UART configuration
  87. ########################################
  88.  
  89. #[tmc2209 stepper_x]
  90. #uart_pin: PK1
  91. #interpolate: True
  92. #run_current: 0.8
  93. #hold_current: 0.5
  94. #sense_resistor: 0.110
  95. #stealthchop_threshold: 999999
  96. #diag_pin: ^PE5 # Set to MCU pin connected to TMC DIAG pin
  97. #driver_SGTHRS: 60 # 255 is most sensitive value, 0 is least sensitiv # Set to MCU pin connected to TMC DIAG pin
  98.  
  99.  
  100. #[tmc2209 stepper_y]
  101. #uart_pin: PK2
  102. #interpolate: True
  103. #run_current: 0.8
  104. #hold_current: 0.5
  105. #sense_resistor: 0.110
  106. #stealthchop_threshold: 999999
  107. #diag_pin: ^PJ1 # Set to MCU pin connected to TMC DIAG pin
  108. #driver_SGTHRS: 60 # 255 is most sensitive value, 0 is least sensitiv
  109.  
  110. #[tmc2209 stepper_z]
  111. #uart_pin: PK3
  112. #interpolate: True
  113. #run_current: 0.8
  114. #hold_current: 0.5
  115. #sense_resistor: 0.110
  116. #stealthchop_threshold: 999999
  117. #diag_pin: ^PD2 # Set to MCU pin connected to TMC DIAG pin
  118. #driver_SGTHRS: 255 # 255 is most sensitive value, 0 is least sensitiv
  119.  
  120. #[tmc2209 extruder]
  121. #uart_pin: PK4
  122. #interpolate: True
  123. #run_current: 0.8
  124. #hold_current: 0.5
  125. #sense_resistor: 0.110
  126. #stealthchop_threshold: 999999
  127.  
  128. #[tmc2209 stepper_e1]
  129. #uart_pin: PB6
  130. ##interpolate: True
  131. #run_current: 0.8
  132. #hold_current: 0.5
  133. #sense_resistor: 0.110
  134. #stealthchop_threshold: 0
  135.  
  136.  
  137. [printer]
  138. kinematics: cartesian
  139. max_velocity: 200
  140. max_accel: 1500
  141. max_z_velocity: 10
  142. max_z_accel: 500
  143. square_corner_velocity: 10.0
  144.  
  145.  
  146. ########################################
  147. # EXP1 / EXP2 (display) pins
  148. ########################################
  149.  
  150. [board_pins]
  151. aliases:
  152. # EXP1 header
  153. EXP1_1=PC0, EXP1_3=PH0, EXP1_5=PA1, EXP1_7=PA5, EXP1_9=<GND>,
  154. EXP1_2=PC2, EXP1_4=PH1, EXP1_6=PA3, EXP1_8=PA7, EXP1_10=<5V>,
  155. # EXP2 header
  156. EXP2_1=PB3, EXP2_3=PC6, EXP2_5=PC4, EXP2_7=PL0, EXP2_9=<GND>,
  157. EXP2_2=PB1, EXP2_4=PB0, EXP2_6=PB2, EXP2_8=PG0, EXP2_10=<NC>
  158. # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp1"
  159. # See the MKS Lcd Config path file for definitions of common LCD displays.
  160. #[include mks_lcd_12864.cfg]
  161.  
  162. [pause_resume]
  163.  
  164. [gcode_macro CANCEL_PRINT]
  165. description: Cancel the actual running print
  166. rename_existing: CANCEL_PRINT_BASE
  167. gcode:
  168. TURN_OFF_HEATERS
  169. CANCEL_PRINT_BASE
  170.  
  171.  
  172. #[display_status]
  173.  
  174. #[bltouch]
  175. #sensor_pin: ^PD2
  176. #control_pin:PB5
  177. #x_offset: -44
  178. #y_offset: -14
  179. #z_offset: 3.099
  180. #speed: 10.0
  181. #samples: 2
  182. #samples_result: median
  183. #sample_retract_dist: 3.0
  184. #samples_tolerance: 0.1
  185. #samples_tolerance_retries: 1
  186.  
  187. #[safe_z_home]
  188. #home_xy_position: 100,100 # Change coordinates to the center of your print bed
  189. #speed: 50
  190. #z_hop: 10 # Move up 10mm
  191. #z_hop_speed: 5
  192.  
  193.  
  194. [gcode_macro G29]
  195. gcode:
  196. BED_MESH_CLEAR
  197. G28
  198. BED_MESH_CALIBRATE
  199. BED_MESH_PROFILE SAVE=name
  200. SAVE_CONFIG
  201. BED_MESH_PROFILE LOAD=name
  202.  
  203. [bed_mesh]
  204. speed: 50
  205. horizontal_move_z: 10
  206. mesh_min:20,50
  207. mesh_max:170,200
  208. probe_count: 3,3
  209.  
  210. #*# <---------------------- SAVE_CONFIG ---------------------->
  211. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  212. #*#
  213. #*# [bed_mesh default]
  214. #*# version = 1
  215. #*# points =
  216. #*# 0.052500, -0.032500, 0.186250
  217. #*# 0.053750, -0.070000, 0.233750
  218. #*# 0.182500, 0.037500, 0.240000
  219. #*# tension = 0.2
  220. #*# min_x = 20.0
  221. #*# algo = lagrange
  222. #*# y_count = 3
  223. #*# mesh_y_pps = 2
  224. #*# min_y = 50.0
  225. #*# x_count = 3
  226. #*# max_y = 200.0
  227. #*# mesh_x_pps = 2
  228. #*# max_x = 170.0
  229. #*#
  230. #*# [bed_mesh name]
  231. #*# version = 1
  232. #*# points =
  233. #*# 0.052500, -0.032500, 0.186250
  234. #*# 0.053750, -0.070000, 0.233750
  235. #*# 0.182500, 0.037500, 0.240000
  236. #*# tension = 0.2
  237. #*# min_x = 20.0
  238. #*# algo = lagrange
  239. #*# y_count = 3
  240. #*# mesh_y_pps = 2
  241. #*# min_y = 50.0
  242. #*# x_count = 3
  243. #*# max_y = 200.0
  244. #*# mesh_x_pps = 2
  245. #*# max_x = 170.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement