Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.78 KB | None | 0 0
  1. [gcode_macro M600]
  2. description: Filament change
  3. gcode: PAUSE X=10 Y=10 Z_MIN=50 RESTORE=0
  4.  
  5. [include macros.cfg]
  6.  
  7. [include mainsail.cfg]
  8.  
  9. [virtual_sdcard]
  10. path: "my new location"
  11. on_error_gcode: CANCEL_PRINT
  12.  
  13. [filament_switch_sensor Filament_Switch_Sensor]
  14. switch_pin: PC12
  15. pause_on_runout: False
  16. #runout_gcode: PAUSE M117
  17. #Filament switch runout insert_gcode: M117 Filament switch inserted
  18.  
  19. [filament_motion_sensor Filament_motion_sensor]
  20. switch_pin: PC15
  21. extruder: extruder
  22. detection_length: 2.88
  23. pause_on_runout: False
  24. #runout_gcode: PAUSE M117
  25. #Filament motion runout insert_gcode: M117 Filament motion inserted
  26.  
  27. #[filament_switch_sensor filament_sensor]
  28. #switch_pin: !PA4 # "Pulled-high"
  29. #pause_on_runout: True
  30. #insert_gcode:
  31. #M117 Insert Detected
  32. #{ action_respond_info("Insert Detected") }
  33. #runout_gcode:
  34. #M117 Runout Detected
  35. #{ action_respond_info("Runout Detected") }
  36. #CONDITIONAL_BEEP i=3 dur=300 freq=400
  37.  
  38. [temperature_sensor raspberry_pi]
  39. sensor_type: temperature_host
  40. min_temp: 10
  41. max_temp: 100
  42.  
  43. [temperature_sensor SKR_Mini_E3_V2]
  44. sensor_type: temperature_mcu
  45. min_temp: 0
  46. max_temp: 100
  47.  
  48. #[adxl345]
  49. #cs_pin: rpi:None
  50.  
  51. #[resonance_tester]
  52. #accel_chip: adxl345
  53. #probe_points:
  54. #200, 200, 20
  55.  
  56. [bed_mesh]
  57. speed: 120
  58. horizontal_move_z: 8
  59. mesh_min: 53,24
  60. mesh_max: 420, 384
  61. probe_count: 7, 7
  62. algorithm: bicubic
  63. fade_start: 1
  64. fade_end: 10
  65. fade_target: 0
  66.  
  67.  
  68. [screws_tilt_adjust]
  69. screw1: 80, 378
  70. screw1_name: rear left screw
  71. screw2: 420, 372
  72. screw2_name: rear right screw
  73. screw3: 418, 32
  74. screw3_name: front right screw
  75. screw4: 80, 38
  76. screw4_name: front left screw
  77. horizontal_move_z: 10
  78. speed: 50
  79. screw_thread: CW-M4 # Use CW for Clockwise and CCW for Counter Clockwise
  80.  
  81. [bed_screws]
  82. screw1: 31, 368 # Using rear left to take measurements as harder to reach
  83. screw1_name: rear left screw
  84. screw2: 371, 362
  85. screw2_name: rear right screw
  86. screw3: 371, 23
  87. screw3_name: front right screw
  88. screw4: 31, 28
  89. screw4_name: front left screw
  90.  
  91.  
  92. [exclude_object]
  93.  
  94. [heater_bed]
  95. heater_pin: PC9
  96. sensor_type: EPCOS 100K B57560G104F
  97. sensor_pin: PC4
  98. control: pid
  99. pid_Kp: 54.027
  100. pid_Ki: 0.770
  101. pid_Kd: 948.182
  102. min_temp: 0
  103. max_temp: 130
  104.  
  105. [include macros.cfg]
  106.  
  107. #[include Line_Purge.cfg]
  108.  
  109. [display_status]
  110.  
  111. [pause_resume]
  112.  
  113. [mcu]
  114. serial:/dev/serial/by-id/usb-Klipper_stm32g0b1xx_530046000150414D39343620-if00 #/dev/serial/by-id/usb-Klipper_stm32g0b1xx_530046000150414D39343620-if00 #/dev/serial/by-id/usb-Klipper_stm32g0b1xx_27000D000150414235363020-if00
  115. # restart_method: command
  116.  
  117. [fan]
  118. pin: PC6
  119.  
  120. [heater_fan hotend_fan]
  121. pin: PB15
  122. heater: extruder
  123. heater_temp: 50.0
  124.  
  125. [controller_fan electronic_enclosure_fan]
  126. pin: PC7
  127. idle_timeout: 60
  128.  
  129. [display]
  130. lcd_type: st7920
  131. cs_pin: PB8
  132. sclk_pin: PB9
  133. sid_pin: PD6
  134. encoder_pins: ^PA10, ^PA9
  135. click_pin: ^!PA15
  136.  
  137. [output_pin beeper]
  138. pin: PB5
  139.  
  140. [bltouch]
  141. sensor_pin: ^PC14
  142. control_pin: PA1
  143. x_offset: 0 #-36
  144. y_offset: 0 #-3 #-8 #-10 #-36 #0
  145. #z_offset: 5 #2.00
  146.  
  147. [safe_z_home]
  148. home_xy_position: 248, 202 #203,194 #151,115 # Nozzle coordinates
  149. speed: 250
  150. z_hop: 10
  151. z_hop_speed: 5
  152.  
  153. [stepper_z]
  154. step_pin: PB5
  155. dir_pin: !PB6
  156. enable_pin: !PC3
  157. microsteps: 16
  158. rotation_distance: 8
  159. endstop_pin: probe:z_virtual_endstop
  160. #position_endstop: 0.0
  161. position_min: -4
  162. position_max: 410
  163.  
  164. [stepper_x]
  165. step_pin: PB13
  166. dir_pin: !PB12
  167. enable_pin: !PB14
  168. microsteps: 64
  169. rotation_distance: 40
  170. endstop_pin: ^PC0
  171. position_endstop: 0
  172. position_min: 0
  173. position_max: 440 #420 #407
  174. homing_speed: 50
  175.  
  176. [tmc2209 stepper_x]
  177. uart_pin: PC11
  178. tx_pin: PC10
  179. uart_address: 0
  180. run_current: 0.580
  181. interpolate: False
  182. stealthchop_threshold: 0
  183.  
  184. [stepper_y]
  185. step_pin: PB10
  186. dir_pin: !PB2
  187. enable_pin: !PB11
  188. microsteps: 64
  189. rotation_distance: 40
  190. endstop_pin: ^PC1
  191. position_endstop: -12
  192. position_min: -12
  193. position_max: 400
  194. homing_speed: 50
  195.  
  196. [tmc2209 stepper_y]
  197. uart_pin: PC11
  198. tx_pin: PC10
  199. uart_address: 2
  200. run_current: 0.580
  201. interpolate: False
  202. stealthchop_threshold: 0
  203.  
  204. [stepper_z]
  205. step_pin: PB0
  206. dir_pin: PC5
  207. enable_pin: !PB1
  208. microsteps: 64
  209. rotation_distance: 8
  210. # endstop_pin: ^PC2
  211. # position_endstop: 0.0
  212. endstop_pin: probe:z_virtual_endstop
  213. position_min: -4
  214. position_max: 400
  215.  
  216. [tmc2209 stepper_z]
  217. uart_pin: PC11
  218. tx_pin: PC10
  219. uart_address: 1
  220. run_current: 0.580
  221. interpolate: False
  222. stealthchop_threshold: 0
  223.  
  224. [extruder]
  225. step_pin: PB3
  226. dir_pin: !PB4
  227. enable_pin: !PD1
  228. microsteps: 64
  229. rotation_distance: 7.71
  230. nozzle_diameter: 0.400
  231. filament_diameter: 1.750
  232. max_extrude_only_distance: 100
  233. pressure_advance: 0.04
  234. pressure_advance_smooth_time: 0.040
  235.  
  236. heater_pin: PC8
  237. sensor_type: ATC Semitec 104GT-2
  238. sensor_pin: PA0
  239. control: pid
  240. pid_Kp: 21.527
  241. pid_Ki: 1.063
  242. pid_Kd: 108.982
  243. min_temp: 0
  244. max_temp: 300
  245.  
  246. [tmc2209 extruder]
  247. uart_pin: PC11
  248. tx_pin: PC10
  249. uart_address: 3
  250. run_current: 0.580
  251. interpolate: False
  252. stealthchop_threshold: 0
  253.  
  254. [printer]
  255. kinematics: cartesian
  256. max_velocity: 300
  257. max_accel: 3000
  258. max_z_velocity: 5
  259. max_z_accel: 100
  260.  
  261. [virtual_sdcard]
  262. path: /home/pi/printer_data/gcodes
  263. on_error_gcode: CANCEL_PRINT
  264.  
  265. #[gcode_macro _CLIENT_VARIABLE]
  266. #variable_use_custom_pos : False ; use custom park coordinates for x,y [True/False]
  267. #variable_custom_park_x : 0.0 ; custom x position; value must be within your defined min and max of X
  268. #variable_custom_park_y : 0.0 ; custom y position; value must be within your defined min and max of Y
  269. #variable_custom_park_dz : 2.0 ; custom dz value; the value in mm to lift the nozzle when move to park position
  270. #variable_retract : 1.0 ; the value to retract while PAUSE
  271. #variable_cancel_retract : 5.0 ; the value to retract while CANCEL_PRINT
  272. #variable_speed_retract : 35.0 ; retract speed in mm/s
  273. #variable_unretract : 1.0 ; the value to unretract while RESUME
  274. #variable_speed_unretract : 35.0 ; unretract speed in mm/s
  275. #variable_speed_hop : 15.0 ; z move speed in mm/s
  276. #variable_speed_move : 100.0 ; move speed in mm/s
  277. #variable_park_at_cancel : False ; allow to move the toolhead to park while execute CANCEL_PRINT [True/False]
  278. #variable_park_at_cancel_x : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
  279. #variable_park_at_cancel_y : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
  280. ### !!! Caution [firmware_retraction] must be defined in the printer.cfg if you set use_fw_retract: True !!!
  281. #variable_use_fw_retract : False ; use fw_retraction instead of the manual version [True/False]
  282. #variable_idle_timeout : 0 ; time in sec until idle_timeout kicks in. Value 0 means that no value will be set or restored
  283. #variable_runout_sensor : "" ; If a sensor is defined, it will be used to cancel the execution of RESUME in case no filament is detected.
  284. ### Specify the config name of the runout sensor e.g "filament_switch_sensor runout". Hint use the same as in your printer.cfg
  285. ## !!! Custom macros, please use with care and review the section of the corresponding macro.
  286. ## These macros are for simple operations like setting a status LED. Please make sure your macro does not interfere with the basic macro functions.
  287. ## Only single line commands are supported, please create a macro if you need more than one command.
  288. #variable_user_pause_macro : "" ; Everything inside the "" will be executed after the klipper base pause (PAUSE_BASE) function
  289. #variable_user_resume_macro: "" ; Everything inside the "" will be executed before the klipper base resume (RESUME_BASE) function
  290. #variable_user_cancel_macro: "" ; Everything inside the "" will be executed before the klipper base cancel (CANCEL_PRINT_BASE) function
  291. #gcode:
  292.  
  293. [board_pins]
  294. aliases:
  295. # EXP1 header
  296. EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
  297. EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PD6, EXP1_10=<5V>
  298.  
  299. #*# <---------------------- SAVE_CONFIG ---------------------->
  300. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  301. #*#
  302. #*# [bed_mesh default]
  303. #*# version = 1
  304. #*# points =
  305. #*# 0.803125, 0.783750, 0.692500, 0.669375, 0.667500, 0.654375, 0.670000
  306. #*# 0.248750, 0.257500, 0.188750, 0.225625, 0.215625, 0.230625, 0.237500
  307. #*# 0.041250, 0.129375, 0.100625, 0.120000, 0.132500, 0.140000, 0.088750
  308. #*# -0.046250, 0.039375, 0.013750, 0.062500, 0.053750, 0.045000, 0.035625
  309. #*# 0.012500, 0.143750, 0.142500, 0.183750, 0.156875, 0.161250, 0.089375
  310. #*# 0.185625, 0.276875, 0.285000, 0.289375, 0.279375, 0.253750, 0.240625
  311. #*# 0.534375, 0.643125, 0.617500, 0.610625, 0.651875, 0.597500, 0.503750
  312. #*# x_count = 7
  313. #*# y_count = 7
  314. #*# mesh_x_pps = 2
  315. #*# mesh_y_pps = 2
  316. #*# algo = bicubic
  317. #*# tension = 0.2
  318. #*# min_x = 53.0
  319. #*# max_x = 419.96
  320. #*# min_y = 24.0
  321. #*# max_y = 384.0
  322. #*#
  323. #*# [bltouch]
  324. #*# z_offset = 1.550
  325.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement