Advertisement
Fuma83

wut

Dec 23rd, 2023
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.05 KB | None | 0 0
  1. # This file contains pin mappings for the LDO Kit using BigTreeTech Octopus V1 as the main controller.
  2. # To use this config, the firmware should be compiled for the STM32F446 with a "32KiB bootloader"
  3. # Enable "extra low-level configuration options" and select the "12MHz crystal" as clock reference
  4.  
  5. # after running "make", copy the generated "klipper/out/klipper.bin" file to a
  6. # file named "firmware.bin" on an SD card and then restart the Octopus with that SD card.
  7.  
  8. # See docs/Config_Reference.md for a description of parameters.
  9.  
  10. ## Voron Design VORON2 250/300/350mm BigTreeTech Octopus V1 TMC2209 UART config
  11.  
  12. ## *** THINGS TO CHANGE/CHECK: ***
  13. ## MCU paths [mcu] section
  14. ## Thermistor types [extruder] and [heater_bed] sections - See 'sensor types' list at end of file
  15. ## Z Endstop Switch location [safe_z_home] section
  16. ## Homing end position [gcode_macro G32] section
  17. ## Z Endstop Switch offset for Z0 [stepper_z] section
  18. ## Probe points [quad_gantry_level] section
  19. ## Min & Max gantry corner postions [quad_gantry_level] section
  20. ## PID tune [extruder] and [heater_bed] sections
  21. ## Thermistor types [extruder] and [heater_bed] sections
  22. ## Probe pin [probe] section
  23. ## Fine tune E steps [extruder] section
  24.  
  25.  
  26. ####### Includes #######
  27. [include mainsail.cfg]
  28. #[include klicky-probe.cfg]
  29. [include neopixels.cfg]
  30. #[include auto-z-calibration.cfg]
  31. [include purge.cfg]
  32. [include macros.cfg]
  33. #[include input-shaper.cfg] Removed, now on canbus
  34. [include runout.cfg]
  35. [include ebb-sb-canbus.cfg]
  36. [include sensorless-homing.cfg]
  37. [force_move]
  38. enable_force_move: True
  39. [exclude_object]
  40.  
  41. [mcu]
  42. ## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
  43. ##--------------------------------------------------------------------
  44. serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_3E003A000650535556323420-if00
  45. restart_method: command
  46. ##--------------------------------------------------------------------
  47. [input_shaper]
  48. #shaper_freq_x: 54.6
  49. #shaper_type_x: mzv
  50. #shaper_freq_y: 35.8
  51. #shaper_type_y: mzv
  52.  
  53.  
  54. [printer]
  55. kinematics: corexy
  56. max_velocity: 500
  57. max_accel: 4000
  58. max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V
  59. max_z_accel: 350
  60. square_corner_velocity: 5.0
  61.  
  62. #####################################################################
  63. # X/Y Stepper Settings
  64. #####################################################################
  65.  
  66. ## B Stepper - Left
  67. ## Connected to MOTOR0
  68. ## Endstop connected to DIAG0
  69. [stepper_x]
  70. step_pin:PF13
  71. dir_pin: PF12
  72. enable_pin: !PF14
  73. rotation_distance: 40
  74. microsteps: 32
  75. full_steps_per_rotation:400 #set to 200 for 1.8 degree stepper
  76. endstop_pin: tmc2209_stepper_x:virtual_endstop #originally PG6
  77. position_min: 0
  78. ##--------------------------------------------------------------------
  79.  
  80. ## Uncomment below for 250mm build
  81. #position_endstop: 250
  82. #position_max: 250
  83.  
  84. ## Uncomment for 300mm build
  85. #position_endstop: 300
  86. #position_max: 300
  87.  
  88. ## Uncomment for 350mm build
  89. position_endstop: 352
  90. position_max: 352
  91.  
  92. ##--------------------------------------------------------------------
  93. homing_speed: 40 #Max 100
  94. homing_retract_dist: 0
  95. homing_positive_dir: true
  96.  
  97. ## Make sure to update below for your relevant driver (2208 or 2209)
  98. [tmc2209 stepper_x]
  99. uart_pin: PC4
  100. interpolate: false
  101. run_current: 0.8 #original 0.8 max 1.2
  102. sense_resistor: 0.110
  103. stealthchop_threshold: 0
  104. diag_pin: ^PG6
  105. driver_SGTHRS: 133 #Max 255 - Highest: 154 min:123 calcs: 123+(154-123)/3
  106.  
  107. ## A Stepper - Right
  108. ## Connected to MOTOR1
  109. ## Endstop connected to DIAG1
  110. [stepper_y]
  111. step_pin: PG0
  112. dir_pin: PG1
  113. enable_pin: !PF15
  114. rotation_distance: 40
  115. microsteps: 32
  116. full_steps_per_rotation:400 #set to 200 for 1.8 degree stepper
  117. endstop_pin: tmc2209_stepper_y:virtual_endstop #Originally PG9
  118. position_min: 0
  119. ##--------------------------------------------------------------------
  120.  
  121. ## Uncomment for 250mm build
  122. #position_endstop: 250
  123. #position_max: 250
  124.  
  125. ## Uncomment for 300mm build
  126. #position_endstop: 300
  127. #position_max: 300
  128.  
  129. ## Uncomment for 350mm build
  130. position_endstop: 357
  131. position_max: 357
  132.  
  133. ##--------------------------------------------------------------------
  134. homing_speed: 40 #Max 100
  135. homing_retract_dist: 0
  136. homing_positive_dir: true
  137.  
  138. ## Make sure to update below for your relevant driver (2208 or 2209)
  139. [tmc2209 stepper_y]
  140. uart_pin: PD11
  141. interpolate: false
  142. run_current: 0.8 #original 0.8 - max 1.2
  143. sense_resistor: 0.110
  144. stealthchop_threshold: 0
  145. diag_pin: ^PG9
  146. driver_SGTHRS: 126 #Max 255 - Highest: 147 min:116 calcs: 116+(147-116)/3
  147.  
  148. #####################################################################
  149. # Z Stepper Settings
  150. #####################################################################
  151.  
  152. ## Z0 Stepper - Front Left
  153. ## Connected to MOTOR2_1
  154. ## Endstop connected to DIAG_2
  155. [stepper_z]
  156. step_pin: PF11
  157. dir_pin: PG3
  158. enable_pin: !PG5
  159. rotation_distance: 40
  160. gear_ratio: 80:16
  161. microsteps: 32
  162. #endstop_pin: PG10
  163. endstop_pin: probe:z_virtual_endstop
  164. ## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
  165. ## (+) value = endstop above Z0, (-) value = endstop below
  166. ## Increasing position_endstop brings nozzle closer to the bed
  167. ## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
  168. #position_endstop: -0.5
  169. ##--------------------------------------------------------------------
  170.  
  171. ## Uncomment below for 250mm build
  172. #position_max: 210
  173.  
  174. ## Uncomment below for 300mm build
  175. #position_max: 260
  176.  
  177. ## Uncomment below for 350mm build
  178. position_max: 310
  179.  
  180. ##--------------------------------------------------------------------
  181. position_min: -5
  182. homing_speed: 8
  183. second_homing_speed: 5
  184. homing_retract_dist: 3
  185.  
  186. ## Make sure to update below for your relevant driver (2208 or 2209)
  187. [tmc2209 stepper_z]
  188. uart_pin: PC6
  189. interpolate: false
  190. run_current: 0.8 #original 0.8
  191. sense_resistor: 0.110
  192. stealthchop_threshold: 999999
  193.  
  194. ## Z1 Stepper - Rear Left
  195. ## Connected to MOTOR3
  196. [stepper_z1]
  197. step_pin: PG4
  198. dir_pin: !PC1
  199. enable_pin: !PA0
  200. rotation_distance: 40
  201. gear_ratio: 80:16
  202. microsteps: 32
  203.  
  204. ## Make sure to update below for your relevant driver (2208 or 2209)
  205. [tmc2209 stepper_z1]
  206. uart_pin: PC7
  207. interpolate: false
  208. run_current: 0.8 #original 0.8
  209. sense_resistor: 0.110
  210. stealthchop_threshold: 999999
  211.  
  212. ## Z2 Stepper - Rear Right
  213. ## Connected to MOTOR4
  214. [stepper_z2]
  215. step_pin: PF9
  216. dir_pin: PF10
  217. enable_pin: !PG2
  218. rotation_distance: 40
  219. gear_ratio: 80:16
  220. microsteps: 32
  221.  
  222. ## Make sure to update below for your relevant driver (2208 or 2209)
  223. [tmc2209 stepper_z2]
  224. uart_pin: PF2
  225. interpolate: false
  226. run_current: 0.8 # original 0.8
  227. sense_resistor: 0.110
  228. stealthchop_threshold: 999999
  229.  
  230. ## Z3 Stepper - Front Right
  231. ## Connected to MOTOR5
  232. [stepper_z3]
  233. step_pin: PC13
  234. dir_pin: !PF0
  235. enable_pin: !PF1
  236. rotation_distance: 40
  237. gear_ratio: 80:16
  238. microsteps: 32
  239.  
  240. ## Make sure to update below for your relevant driver (2208 or 2209)
  241. [tmc2209 stepper_z3]
  242. uart_pin: PE4
  243. interpolate: false
  244. run_current: 0.8 #original 0.8
  245. sense_resistor: 0.110
  246. stealthchop_threshold: 999999
  247.  
  248.  
  249. #####################################################################
  250. # Extruder - removed now on canbus
  251. #####################################################################
  252.  
  253. ## Connected to MOTOR_6
  254. ## Heater - HE0
  255. ## Thermistor - T0
  256. #[extruder]
  257. #step_pin: PE2
  258. #dir_pin: !PE3
  259. #enable_pin: !PD4
  260. ## Update value below when you perform extruder calibration
  261. ## If you ask for 100mm of filament, but in reality it is 98mm:
  262. ## rotation_distance = <previous_rotation_distance> * <actual_extrude_distance> / 100
  263. ## 22.6789511 is a good starting point
  264. #rotation_distance: 22.452161589 #Bondtech 5mm Drive Gears, default: 22.6789511 , value without hotend: 22.905740611
  265. ## Update Gear Ratio depending on your Extruder Type
  266. ## Use 50:17 for Afterburner/Clockwork (BMG Gear Ratio)
  267. ## Use 80:20 for M4, M3.1
  268. #gear_ratio: 50:10 #BMG Gear Ratio
  269. #microsteps: 16
  270. #full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
  271. #nozzle_diameter: 0.400
  272. #filament_diameter: 1.75
  273. #heater_pin: PA2
  274. ## Validate the following thermistor type to make sure it is correct
  275. ## See https://www.klipper3d.org/Config_Reference.html#common-thermistors for additional options
  276. #sensor_type: ATC Semitec 104NT-4-R025H42G
  277. #sensor_pin: PF4
  278. #min_temp: 5
  279. #max_temp: 300
  280. #max_power: 1.0
  281. #min_extrude_temp: 10
  282. #control = pid
  283. #pid_kp = 26.213
  284. #pid_ki = 1.304
  285. #pid_kd = 131.721
  286. ## Try to keep pressure_advance below 1.0
  287. #pressure_advance: 0.055
  288. ## Default is 0.040, leave stock
  289. #pressure_advance_smooth_time: 0.040
  290.  
  291. ## E0 on MOTOR6
  292. ## Make sure to update below for your relevant driver (2208 or 2209)
  293. #[tmc2209 extruder]
  294. #uart_pin: PE1
  295. #interpolate: false
  296. #run_current: 0.5 #original 0.5 - max 0.7
  297. #sense_resistor: 0.110
  298. #stealthchop_threshold: 0
  299.  
  300.  
  301. #####################################################################
  302. # Bed Heater
  303. #####################################################################
  304.  
  305. [heater_bed]
  306. ## SSR Pin - HE1
  307. ## Thermistor - TB
  308. heater_pin: PA1
  309. ## Validate the following thermistor type to make sure it is correct
  310. ## Keenovo branded bed heaters should use Generic 3950
  311. ## LDO branded bed heaters will have the sensor type labelled on the heater
  312. ## See https://www.klipper3d.org/Config_Reference.html#common-thermistors for additional options
  313. sensor_type: Generic 3950
  314. sensor_pin: PF3
  315. ## Adjust Max Power so your heater doesn't warp your bed. Rule of thumb is 0.4 watts / cm^2 .
  316. max_power: 0.6
  317. min_temp: 0
  318. max_temp: 120
  319. #control: pid
  320. #pid_kp: 58.437
  321. #pid_ki: 2.347
  322. #pid_kd: 363.769
  323. pwm_cycle_time: 0.0166
  324.  
  325. #####################################################################
  326. # Probe TAP
  327. #####################################################################
  328. [probe]
  329. pin: can0:PB5
  330. x_offset:0
  331. y_offset:0
  332. #z_offset:0
  333. speed:3.0
  334. lift_speed: 10
  335. samples: 5
  336. samples_result: median
  337. samples_tolerance: 0.006
  338. samples_tolerance_retries: 4
  339.  
  340. activate_gcode:
  341. {% set PROBE_TEMP = 150 %}
  342. {% set MAX_TEMP = PROBE_TEMP + 5 %}
  343. {% set ACTUAL_TEMP = printer.extruder.temperature %}
  344. {% set TARGET_TEMP = printer.extruder.target %}
  345.  
  346. {% if TARGET_TEMP > PROBE_TEMP %}
  347. { action_respond_info('Extruder temperature target of %.1fC is too high, lowering to %.1fC' % (TARGET_TEMP, PROBE_TEMP)) }
  348. M109 S{ PROBE_TEMP }
  349. {% else %}
  350. # Temperature target is already low enough, but nozzle may still be too hot.
  351. {% if ACTUAL_TEMP > MAX_TEMP %}
  352. { action_respond_info('Extruder temperature %.1fC is still too high, waiting until below %.1fC' % (ACTUAL_TEMP, MAX_TEMP)) }
  353. TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={ MAX_TEMP }
  354. {% endif %}
  355. {% endif %}
  356.  
  357.  
  358. #[settling_probe]
  359. #settling_sample:
  360. # Globally enable the throw-away settling sample. Default is 'False'.
  361. # Setting this to 'True' will enable the throw-away sample for all
  362. # commands/operations that perform Z probing (QGL, Z tilt, Bed Mesh,
  363. # Screw Tilt, etc.)
  364.  
  365. #[probe]
  366. ## Inductive Probe - DIAG7
  367. ## This probe is not used for Z height, only Quad Gantry Leveling
  368. #pin: PG15
  369. #x_offset: 0
  370. #y_offset: 25.0
  371. #z_offset: 0
  372. #speed: 10.0
  373. #samples: 5
  374. #samples_result: median
  375. #sample_retract_dist: 3.0
  376. #samples_tolerance: 0.0075
  377. #samples_tolerance_retries: 6
  378.  
  379. #####################################################################
  380. # Fan Control
  381. #####################################################################
  382.  
  383. #[fan]
  384. ## Print Cooling Fan - CNC_FAN0
  385. #pin: PA8
  386. #kick_start_time: 0.5
  387. ## Depending on your fan, you may need to increase this value
  388. ## if your fan will not start. Can change cycle_time (increase)
  389. ## if your fan is not able to slow down effectively
  390. #off_below: 0.10
  391.  
  392. #[heater_fan hotend_fan]
  393. ## Hotend Fan - CNC_FAN1
  394. #pin: PE5
  395. #max_power: 1.0
  396. #kick_start_time: 0.5
  397. #heater: extruder
  398. #heater_temp: 50.0
  399. ## If you are experiencing back flow, you can reduce fan_speed
  400. #fan_speed: 1.0
  401.  
  402. [controller_fan controller_fan]
  403. ## Controller fan - CNC_FAN2
  404. pin: PD12
  405. kick_start_time: 0.5
  406. heater: heater_bed
  407. fan_speed: 1.0
  408.  
  409. [controller_fan mcudrivers_fan]
  410. ## Controller fan - CNC_FAN2
  411. pin: PD14
  412. kick_start_time: 0.5
  413. heater: heater_bed
  414. fan_speed: 1.0
  415.  
  416. [heater_fan exhaust_fan]
  417. ## Exhaust fan - CNC_FAN3
  418. pin: PD13
  419. max_power: 1.0
  420. shutdown_speed: 0.0
  421. kick_start_time: 5.0
  422. heater: heater_bed
  423. heater_temp: 60
  424. fan_speed: 1.0
  425.  
  426.  
  427.  
  428. [output_pin caselight]
  429. ## Chamber Lighting - CNC_FAN5
  430. pin: PD15
  431. pwm:true
  432. shutdown_value: 0
  433. value:0
  434. cycle_time: 0.01
  435.  
  436. #####################################################################
  437. # Additional Sensors
  438. #####################################################################
  439.  
  440. [thermistor CMFB103F3950FANT]
  441. temperature1: 0.0
  442. resistance1: 32116.0
  443. temperature2: 40.0
  444. resistance2: 5309.0
  445. temperature3: 80.0
  446. resistance3: 1228.0
  447.  
  448. [temperature_sensor chamber_temp]
  449. ## Chamber Temperature - T1
  450. sensor_type: ATC Semitec 104NT-4-R025H42G
  451. sensor_pin: PF5
  452. min_temp: 0
  453. max_temp: 70
  454. gcode_id: chamber_th
  455.  
  456.  
  457. [temperature_sensor raspberry_pi]
  458. sensor_type: temperature_host
  459. min_temp: 10
  460. max_temp: 90
  461.  
  462. [temperature_sensor mcu_temp]
  463. sensor_type: temperature_mcu
  464. min_temp: 0
  465. max_temp: 90
  466.  
  467. [temperature_sensor can0]
  468. sensor_type: temperature_mcu
  469. sensor_mcu: can0
  470. min_temp: 0
  471. max_temp: 90
  472. #####################################################################
  473. # Homing and Gantry Adjustment Routines
  474. #####################################################################
  475.  
  476. [idle_timeout]
  477. timeout: 900
  478.  
  479. #[safe_z_home] #################Commented because sensorless homing
  480. ## XY Location of the Z Endstop Switch
  481. ## Update -10,-10 to the XY coordinates of your endstop pin
  482. ## (such as 157,305) after going through Z Endstop Pin
  483. ## Location Definition step.
  484. #home_xy_position:175,175
  485. #speed:100
  486. #z_hop:10
  487. #z_hop_speed:10
  488.  
  489. [quad_gantry_level]
  490. ## Use QUAD_GANTRY_LEVEL to level a gantry.
  491. ## Min & Max gantry corners - measure from nozzle at MIN (0,0) and
  492. ## MAX (250, 250), (300,300), or (350,350) depending on your printer size
  493. ## to respective belt positions
  494.  
  495. #--------------------------------------------------------------------
  496. ## Gantry Corners for 250mm Build
  497. ## Uncomment for 250mm build
  498. #gantry_corners:
  499. # -60,-10
  500. # 310, 320
  501. ## Probe points
  502. #points:
  503. # 50,25
  504. # 50,175
  505. # 200,175
  506. # 200,25
  507.  
  508. ## Gantry Corners for 300mm Build
  509. ## Uncomment for 300mm build
  510. #gantry_corners:
  511. # -60,-10
  512. # 360,370
  513. ## Probe points
  514. #points:
  515. # 50,25
  516. # 50,225
  517. # 250,225
  518. # 250,25
  519.  
  520. ## Gantry Corners for 350mm Build
  521. ## Uncomment for 350mm build
  522. gantry_corners:
  523. -60,-10
  524. 410,420
  525. ## Probe points
  526. points:
  527. 50,25
  528. 50,275
  529. 300,275
  530. 300,25
  531.  
  532. #--------------------------------------------------------------------
  533. speed: 100
  534. horizontal_move_z: 10
  535. retries: 5
  536. retry_tolerance: 0.0075
  537. max_adjust: 10
  538.  
  539. #####################################################################
  540. # Bed Mesh (from https://docs.vorondesign.com/tuning/secondary_printer_tuning.html)
  541. #####################################################################
  542. [bed_mesh]
  543. speed: 300
  544. horizontal_move_z: 10
  545. mesh_min: 30, 30
  546. mesh_max: 320,320
  547. fade_start: 0.6
  548. fade_end: 10.0
  549. probe_count: 9,9
  550. algorithm: bicubic
  551.  
  552. #zero_reference_position: #new version of deprecated #relative_reference_index: 40
  553.  
  554. ########################################
  555. # EXP1 / EXP2 (display) pins
  556. ########################################
  557.  
  558. [board_pins]
  559. aliases:
  560. # EXP1 header
  561. EXP1_1=PE8, EXP1_2=PE7,
  562. EXP1_3=PE9, EXP1_4=PE10,
  563. EXP1_5=PE12, EXP1_6=PE13, # Slot in the socket on this side
  564. EXP1_7=PE14, EXP1_8=PE15,
  565. EXP1_9=<GND>, EXP1_10=<5V>,
  566.  
  567. # EXP2 header
  568. EXP2_1=PA6, EXP2_2=PA5,
  569. EXP2_3=PB1, EXP2_4=PA4,
  570. EXP2_5=PB2, EXP2_6=PA7, # Slot in the socket on this side
  571. EXP2_7=PC15, EXP2_8=<RST>,
  572. EXP2_9=<GND>, EXP2_10=<5V>
  573.  
  574. #####################################################################
  575. # Displays
  576. #####################################################################
  577.  
  578. [display]
  579. # mini12864 LCD Display
  580. lcd_type: uc1701
  581. cs_pin: EXP1_3
  582. a0_pin: EXP1_4
  583. rst_pin: EXP1_5
  584. encoder_pins: ^EXP2_5, ^EXP2_3
  585. click_pin: ^!EXP1_2
  586. contrast: 63
  587. spi_software_miso_pin: EXP2_1
  588. spi_software_mosi_pin: EXP2_6
  589. spi_software_sclk_pin: EXP2_2
  590.  
  591. [neopixel btt_mini12864]
  592. # To control Neopixel RGB in mini12864 display
  593. pin: EXP1_6
  594. chain_count: 3
  595. initial_RED: 0.0
  596. initial_GREEN: 1.0
  597. initial_BLUE: 0.0
  598. color_order: RGB
  599.  
  600. ## Set RGB values on boot up for each Neopixel.
  601. ## Index 1 = display, Index 2 and 3 = Knob
  602. [delayed_gcode setdisplayneopixel]
  603. initial_duration: 1
  604. gcode:
  605. SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=1 TRANSMIT=0
  606. SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=2 TRANSMIT=0
  607. SET_LED LED=btt_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3
  608.  
  609. #--------------------------------------------------------------------
  610.  
  611.  
  612. #####################################################################
  613. # Macros
  614. #####################################################################
  615.  
  616. #[gcode_macro G32] ;removed for custom g32
  617. #gcode:
  618. # G28
  619. # QUAD_GANTRY_LEVEL
  620. # G28
  621. # ## Uncomment for for your size printer:
  622. # #--------------------------------------------------------------------
  623. # ## Uncomment for 250mm build
  624. # #G0 X125 Y125 Z30 F3600
  625. #
  626. # ## Uncomment for 300 build
  627. # #G0 X150 Y150 Z30 F3600
  628. #
  629. # ## Uncomment for 350mm build
  630. # G0 X175 Y175 Z30 F3600
  631. # #--------------------------------------------------------------------
  632.  
  633. #[gcode_macro PRINT_START]; removed for custom print start
  634. # Use PRINT_START for the slicer starting script - please customise for your slicer of choice
  635. #gcode:
  636. # G32 ; home all axes
  637. # G1 Z20 F3000 ; move nozzle away from bed
  638.  
  639.  
  640. [gcode_macro PRINT_END]
  641. # Use PRINT_END for the slicer ending script - please customise for your slicer of choice
  642. gcode:
  643. # safe anti-stringing move coords
  644. {% set th = printer.toolhead %}
  645. {% set x_safe = th.position.x + 20 * (1 if th.axis_maximum.x - th.position.x > 20 else -1) %}
  646. {% set y_safe = th.position.y + 20 * (1 if th.axis_maximum.y - th.position.y > 20 else -1) %}
  647. {% set z_safe = [th.position.z + 2, th.axis_maximum.z]|min %}
  648.  
  649. SAVE_GCODE_STATE NAME=STATE_PRINT_END
  650.  
  651. M400 ; wait for buffer to clear
  652. G92 E0 ; zero the extruder
  653. G1 E-5.0 F1800 ; retract filament
  654. SET_IDLE_TIMEOUT TIMEOUT=600
  655. SET_HEATER_TEMPERATURE HEATER=extruder TARGET=160 ; set extruder temp to 160 for cleaning after print
  656.  
  657.  
  658. G90 ; absolute positioning
  659. G0 X{x_safe} Y{y_safe} Z{z_safe} F20000 ; move nozzle to remove stringing
  660. G0 X{th.axis_maximum.x//2} Y{th.axis_maximum.y - 2} F3600 ; park nozzle at rear
  661.  
  662. M107 ; turn off fan
  663. M109 S160
  664. CLEAN_NOZZLE
  665.  
  666. G0 X{th.axis_maximum.x//2} Y{th.axis_maximum.y - 2} F3600 ; park nozzle at rear
  667. TURN_OFF_HEATERS
  668. SET_CASELIGHT_OFF
  669. BED_MESH_CLEAR
  670. G4 P120000
  671. RESTORE_GCODE_STATE NAME=STATE_PRINT_END
  672. SAVE_IF_SET ; SAVE_CONFIG if a mesh was probed in START_PRINT
  673.  
  674. #*# <---------------------- SAVE_CONFIG ---------------------->
  675. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  676. #*#
  677. #*# [extruder]
  678. #*# control = pid
  679. #*# pid_kp = 24.671
  680. #*# pid_ki = 2.570
  681. #*# pid_kd = 59.211
  682. #*#
  683. #*# [heater_bed]
  684. #*# control = pid
  685. #*# pid_kp = 40.439
  686. #*# pid_ki = 1.335
  687. #*# pid_kd = 306.322
  688. #*#
  689. #*# [probe]
  690. #*# z_offset = -0.895
  691. #*#
  692. #*# [input_shaper]
  693. #*# shaper_type_x = zv
  694. #*# shaper_freq_x = 48.6
  695. #*# shaper_type_y = mzv
  696. #*# shaper_freq_y = 34.8
  697. #*#
  698. #*# [bed_mesh default]
  699. #*# version = 1
  700. #*# points =
  701. #*# 0.018750, 0.035000, 0.057500, 0.041250, 0.035000, 0.026250, 0.047500, 0.032500, 0.041250
  702. #*# 0.023750, 0.033750, 0.042500, 0.048750, 0.037500, 0.042500, 0.047500, 0.013750, 0.025000
  703. #*# 0.022500, 0.041250, 0.046250, 0.032500, 0.007500, 0.035000, 0.008750, 0.005000, -0.012500
  704. #*# 0.027500, 0.040000, 0.043750, 0.017500, 0.043750, 0.028750, 0.001250, 0.018750, 0.005000
  705. #*# 0.013750, 0.021250, 0.042500, -0.001250, -0.001250, -0.015000, -0.007500, -0.002500, -0.010000
  706. #*# 0.018750, 0.038750, 0.026250, 0.023750, 0.038750, -0.018750, -0.021250, 0.005000, -0.016250
  707. #*# -0.006250, 0.027500, 0.011250, 0.016250, 0.020000, -0.006250, -0.027500, -0.045000, -0.027500
  708. #*# 0.031250, 0.045000, 0.001250, 0.006250, -0.010000, 0.008750, -0.015000, -0.030000, -0.025000
  709. #*# 0.013750, 0.037500, 0.058750, 0.027500, 0.017500, 0.035000, 0.012500, -0.003750, -0.006250
  710. #*# x_count = 9
  711. #*# y_count = 9
  712. #*# mesh_x_pps = 2
  713. #*# mesh_y_pps = 2
  714. #*# algo = bicubic
  715. #*# tension = 0.2
  716. #*# min_x = 30.0
  717. #*# max_x = 320.0
  718. #*# min_y = 30.0
  719. #*# max_y = 320.0
  720.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement