Guest User

Untitled

a guest
Jun 29th, 2025
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.55 KB | None | 0 0
  1. # QIDI Plus4 V1.0.0
  2.  
  3. [include plr.cfg]
  4. [include gcode_macro.cfg]
  5. [include time_update.cfg]
  6.  
  7. # Plugins
  8. [include timelapse.cfg]
  9. [include KAMP_Settings.cfg]
  10.  
  11. [include beacon_calibrate.cfg]
  12.  
  13. [printer]
  14. kinematics:corexy
  15. max_velocity: 600
  16. max_accel: 20000
  17. max_accel_to_decel: 10000
  18. max_z_velocity: 20
  19. max_z_accel: 500
  20. square_corner_velocity: 5
  21.  
  22. [mcu]
  23. serial: /dev/ttyS2
  24. restart_method: command
  25. baud:500000
  26.  
  27. [mcu U_1]
  28. serial: /dev/ttyS0
  29. restart_method: command
  30. baud:500000
  31.  
  32. [temperature_sensor GD32]
  33. sensor_type: temperature_mcu
  34. sensor_mcu: mcu
  35.  
  36. [temperature_sensor mainboard_stm32]
  37. sensor_type: temperature_mcu
  38. sensor_mcu: U_1
  39.  
  40. [temperature_sensor mainboard_rockchip]
  41. sensor_type: temperature_host
  42.  
  43. [respond]
  44. default_type: echo
  45.  
  46. [gcode_arcs]
  47. resolution: 0.5
  48.  
  49. [exclude_object]
  50.  
  51. [save_variables]
  52. filename =/home/mks/printer_data/config/saved_variables.cfg
  53.  
  54. [adxl345]
  55. cs_pin:PA4
  56. spi_software_sclk_pin:PA5
  57. spi_software_mosi_pin:PA7
  58. spi_software_miso_pin:PA6
  59. axes_map: -x, z, -y
  60.  
  61. [resonance_tester]
  62. accel_per_hz: 150
  63. max_smoothing:0.1
  64.  
  65. [output_pin sound]
  66. pin:PA1
  67. value:0
  68.  
  69. [duplicate_pin_override]
  70. pins:
  71.  
  72. [bed_screws]
  73. screw1: 25,21
  74. screw1_name: Front left
  75. screw2: 285,21
  76. screw2_name: Front right
  77. screw3: 285,281
  78. screw3_name: Last right
  79. screw4: 25,281
  80.  
  81. [screws_tilt_adjust]
  82. screw1: 25,21
  83. screw1_name: Front left
  84. screw2: 25,21
  85. screw2_name: Front right
  86. screw3: 285,281
  87. screw3_name: Back right
  88. screw4: 25,281
  89. screw4_name: Back left
  90. screw_thread: CW-M4
  91.  
  92. [gcode_macro SCREWS_TILT_CALCULATE]
  93. rename_existing: _SCREWS_TILT_CALCULATE_BASE
  94. gcode:
  95. { action_respond_info("starting screw rotation calculation...") }
  96. M141 S0 # disable chamber heater (see https://github.com/qidi-community/Plus4-Wiki/tree/main/content/chamber-heater-issue)
  97. M4031
  98. G28
  99. Z_TILT_ADJUST
  100. _SCREWS_TILT_CALCULATE_BASE
  101.  
  102. [hall_filament_width_sensor]
  103. adc1: PA2
  104. adc2: PA3
  105. cal_dia1: 1.50
  106. cal_dia2: 2.0
  107. raw_dia1: 14197
  108. raw_dia2: 15058
  109. default_nominal_filament_diameter: 1.75
  110. max_difference: 0
  111. measurement_delay: 50
  112. enable: false
  113. measurement_interval: 10
  114. logging: False
  115. min_diameter: 0.3
  116. use_current_dia_while_delay: False
  117. pause_on_runout:True
  118. runout_gcode:
  119. RESET_FILAMENT_WIDTH_SENSOR
  120. M118 Filament run out
  121. event_delay: 3.0
  122. pause_delay: 0.5
  123.  
  124. [extruder]
  125. step_pin:PB9
  126. dir_pin:PB8
  127. enable_pin:!PC15
  128. rotation_distance: 53.7 #22.6789511 Bondtech 5mm Drive Gears
  129. gear_ratio: 1517:170
  130. microsteps: 64
  131. full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
  132. nozzle_diameter: 0.400
  133. filament_diameter: 1.75
  134. min_temp: 0
  135. max_temp: 380
  136. min_extrude_temp: 175
  137. smooth_time: 0.2
  138. heater_pin:PB3
  139. sensor_type:MAX6675
  140. sensor_pin:PB12
  141. spi_speed: 100000
  142. spi_software_sclk_pin:PB13
  143. spi_software_mosi_pin:PA11
  144. spi_software_miso_pin:PB14
  145. max_power: 1
  146. control : pid
  147. pid_Kp=33.555
  148. pid_Ki=4.76
  149. pid_Kd=59.141
  150. pressure_advance: 0.032
  151. pressure_advance_smooth_time: 0.05
  152. max_extrude_cross_section: 500
  153. instantaneous_corner_velocity: 5.000
  154. max_extrude_only_distance: 1000.0
  155. max_extrude_only_velocity: 5000
  156. max_extrude_only_accel: 5000
  157. step_pulse_duration: 0.000002
  158.  
  159. [tmc2209 extruder]
  160. uart_pin:PC13
  161. interpolate: False
  162. #run_current: 0.75
  163. run_current: 0.714
  164. stealthchop_threshold: 0
  165.  
  166. [stepper_x]
  167. step_pin:U_1:PB4
  168. dir_pin:!U_1:PB3
  169. enable_pin:!U_1:PB5
  170. microsteps: 16
  171. rotation_distance: 38.86
  172. full_steps_per_rotation:200 # set to 400 for 0.9 degree stepper
  173. endstop_pin:tmc2240_stepper_x:virtual_endstop
  174. position_min: -1.2
  175. position_endstop: -1.2
  176. position_max:307
  177. homing_speed:50
  178. homing_retract_dist:0
  179. homing_positive_dir:False
  180. step_pulse_duration:0.0000001
  181.  
  182. [tmc2240 stepper_x]
  183. cs_pin:U_1:PD2
  184. spi_software_sclk_pin:U_1:PA5
  185. spi_software_mosi_pin:U_1:PA7
  186. spi_software_miso_pin:U_1:PA6
  187. spi_speed:200000
  188. run_current: 1.07
  189. # hold_current: 0.5
  190. interpolate: True
  191. stealthchop_threshold:0
  192. diag0_pin:!U_1:PB8
  193. driver_SGT:1
  194.  
  195. [stepper_y]
  196. step_pin:U_1:PC14
  197. dir_pin:!U_1:PC13
  198. enable_pin:!U_1:PC15
  199. microsteps: 16
  200. rotation_distance: 38.86
  201. full_steps_per_rotation:200 # set to 400 for 0.9 degree stepper
  202. endstop_pin:tmc2240_stepper_y:virtual_endstop
  203. position_min: -2
  204. position_endstop: -2
  205. position_max:325
  206. homing_speed:50
  207. homing_retract_dist:0
  208. homing_positive_dir:False
  209. step_pulse_duration:0.0000001
  210.  
  211. [tmc2240 stepper_y]
  212. cs_pin:U_1:PB9
  213. spi_software_sclk_pin:U_1:PA5
  214. spi_software_mosi_pin:U_1:PA7
  215. spi_software_miso_pin:U_1:PA6
  216. spi_speed:200000
  217. run_current: 1.07
  218. #hold_current: 0.5
  219. interpolate: True
  220. stealthchop_threshold:0
  221. diag0_pin:!U_1:PC0
  222. driver_SGT:1
  223.  
  224. [stepper_z]
  225. step_pin:U_1:PB1
  226. dir_pin:U_1:PB6
  227. enable_pin:!U_1:PB0
  228. microsteps: 16
  229. rotation_distance: 4
  230. full_steps_per_rotation: 200
  231. endstop_pin: probe:z_virtual_endstop # U_1:PC3 for Z-max, or Beacon
  232. endstop_pin_reverse:tmc2209_stepper_z:virtual_endstop
  233. #position_endstop:1
  234. position_endstop_reverse:285
  235. position_max:285
  236. position_min: -4
  237. homing_speed: 10
  238. homing_speed_reverse: 10
  239. second_homing_speed: 5
  240. #homing_retract_dist: 5.0
  241. homing_retract_dist: 0
  242. homing_positive_dir:false
  243. homing_positive_dir_reverse:true
  244. #step_pulse_duration:0.0000001
  245.  
  246. [tmc2209 stepper_z]
  247. uart_pin:U_1: PB7
  248. run_current: 1.07
  249. # hold_current: 0.17
  250. interpolate: False
  251. stealthchop_threshold: 99999
  252. diag_pin:^U_1:PA13
  253. driver_SGTHRS:100
  254.  
  255. [stepper_z1]
  256. step_pin:U_1:PC10
  257. dir_pin:U_1:PA15
  258. enable_pin:!U_1:PC11
  259. microsteps: 16
  260. rotation_distance: 4
  261. full_steps_per_rotation: 200
  262. endstop_pin_reverse:tmc2209_stepper_z1:virtual_endstop
  263. #step_pulse_duration:0.0000001
  264.  
  265. [tmc2209 stepper_z1]
  266. uart_pin:U_1: PC5
  267. run_current: 1.07
  268. # hold_current: 0.17
  269. interpolate: False
  270. stealthchop_threshold: 99999
  271. diag_pin:^U_1:PC12
  272. driver_SGTHRS:100
  273.  
  274. [heater_bed]
  275. heater_pin: U_1:PB10
  276. sensor_type:NTC 100K MGB18-104F39050L32
  277. sensor_pin:U_1: PA0
  278. max_power: 1.0
  279. control = pid
  280. pid_Kp= 63
  281. pid_Ki= 1.5
  282. pid_Kd= 750
  283. pwm_cycle_time:0.001
  284. min_temp: -60
  285. max_temp: 125
  286.  
  287. [temperature_sensor chamber_probe]
  288. sensor_type:NTC 100K MGB18-104F39050L32
  289. sensor_pin:U_1:PA1
  290.  
  291. [heater_generic chamber]
  292. heater_pin:U_1: PC8
  293. max_power: 0.5
  294. pwm_cycle_time: 0.135335
  295. control= pid
  296. pid_Kp= 63
  297. pid_Ki= 1.5
  298. pid_Kd= 750
  299. min_temp: -100
  300. max_temp: 75
  301. sensor_type: temperature_combined
  302. sensor_list: temperature_sensor GD32, temperature_sensor chamber_probe, temperature_sensor GD32, temperature_sensor GD32
  303. combination_method: mean
  304. maximum_deviation: 70
  305.  
  306. [verify_heater chamber]
  307. max_error: 300
  308. check_gain_time:1200
  309. hysteresis: 5
  310. heating_gain: 1
  311.  
  312. [temperature_sensor Chamber_Thermal_Protection_Sensor]
  313. sensor_type:NTC 100K MGB18-104F39050L32
  314. sensor_pin:U_1:PC2
  315. min_temp:-100
  316. max_temp:130
  317.  
  318. [verify_heater extruder]
  319. max_error: 120
  320. check_gain_time:20
  321. hysteresis: 5
  322. heating_gain: 1
  323.  
  324. [verify_heater heater_bed]
  325. max_error: 200
  326. check_gain_time:360
  327. hysteresis: 10
  328. heating_gain: 1
  329.  
  330. [fan_generic auxiliary_cooling_fan]
  331. pin: U_1:PA8
  332. shutdown_speed: 1.0
  333. cycle_time: 0.0100
  334. hardware_pwm: false
  335. kick_start_time: 0.100
  336. off_below: 0.0
  337.  
  338. [fan_generic chamber_circulation_fan]
  339. pin: U_1:PC9
  340. shutdown_speed: 1.0
  341. cycle_time: 0.0100
  342. hardware_pwm: false
  343. kick_start_time: 0.100
  344. off_below: 0.0
  345.  
  346. [chamber_fan chamber_fan]
  347. pin:U_1:PA4
  348. max_power: 1.0
  349. shutdown_speed: 1.0
  350. kick_start_time: 0.5
  351. heater:chamber
  352. fan_speed: 1.0
  353. off_below: 0
  354. idle_timeout:60
  355. idle_speed:1.0
  356.  
  357. [heater_fan hotend_fan]
  358. pin:PB5
  359. max_power: 1.0
  360. shutdown_speed:1.0
  361. kick_start_time: 0.5
  362. heater: extruder
  363. heater_temp: 50.0
  364. fan_speed: 1.0
  365. off_below: 0
  366.  
  367. [heater_fan hotend_fan2]
  368. pin:PB4
  369. max_power: 1.0
  370. shutdown_speed:1.0
  371. kick_start_time: 0.5
  372. heater: extruder
  373. heater_temp: 50.0
  374. fan_speed: 1.0
  375. off_below: 0
  376.  
  377. [heater_fan hotend_fan3]
  378. pin:PB10
  379. max_power: 1.0
  380. shutdown_speed:1.0
  381. kick_start_time: 0.5
  382. heater: extruder
  383. heater_temp: 50.0
  384. fan_speed: 1.0
  385. off_below: 0
  386.  
  387. [fan_generic cooling_fan]
  388. pin:PA8
  389. max_power: 1.0
  390. shutdown_speed:0
  391. cycle_time: 0.010
  392. hardware_pwm: False
  393. kick_start_time: 0.100
  394. off_below: 0.0
  395. tachometer_pin:PA9
  396. tachometer_ppr: 2
  397. tachometer_poll_interval: 0.0015
  398.  
  399. [temperature_fan cpu_fan]
  400. pin:U_1:PC4
  401. max_power: 1.0
  402. shutdown_speed: 1.0
  403. cycle_time: 0.01
  404. off_below: 0
  405. sensor_type: temperature_host
  406. control: pid
  407. pid_deriv_time: 5.0
  408. pid_Kp: 5
  409. pid_Ki: 2
  410. pid_Kd: 5
  411. target_temp: 45
  412. min_speed: 0.4
  413. max_speed: 1.0
  414. min_temp: 0
  415. max_temp: 90
  416.  
  417. #[controller_fan board_fan]
  418. #pin:U_1:PC4
  419. #max_power:1.0
  420. #shutdown_speed:1.0
  421. #cycle_time:0.01
  422. #fan_speed: 1.0
  423. #stepper:stepper_x,stepper_y
  424.  
  425. [output_pin caselight]
  426. pin: U_1:PC7
  427. pwm: false
  428. shutdown_value:1
  429. value:1
  430.  
  431. [output_pin beeper]
  432. pin:U_1: PA2
  433. pwm: false
  434. shutdown_value:0
  435. value:0
  436.  
  437. [output_pin ctlyd]
  438. pin:U_1: PA14
  439. pwm: false
  440. shutdown_value:0
  441. value:0
  442.  
  443. [z_tilt]
  444. z_positions:
  445. -17.5,152.5
  446. 335.7,152.5
  447.  
  448. points:
  449. 40, 171.3 # Assumes using stew675 beacon mount's offsets
  450. 265, 171.3 # Assumes using stew675 beacon mount's offsets
  451.  
  452. speed: 200
  453. horizontal_move_z: 5
  454. retries: 5
  455. retry_tolerance: 0.006
  456.  
  457. [bed_mesh]
  458. speed: 150
  459. horizontal_move_z: 2
  460. zero_reference_position: 152.5, 152.5
  461. mesh_min: 22,22
  462. mesh_max: 283,283
  463. probe_count: 14,14
  464. algorithm:bicubic
  465. bicubic_tension: 0.3
  466. mesh_pps: 2,2
  467. fade_start: 2
  468. fade_end: 10
  469. fade_target: 0
  470. split_delta_z: 0.01
  471. move_check_distance: 4
  472. #adaptive_margin: 5
  473.  
  474. [filament_switch_sensor fila]
  475. pause_on_runout: True
  476. runout_gcode:
  477. M118 Filament tangle detected
  478. event_delay: 3.0
  479. pause_delay: 0.5
  480. switch_pin:U_1:PC3
  481.  
  482. [resonance_tester]
  483. accel_chip: adxl345 # beacon
  484. probe_points:
  485. 152.5, 152.5, 15
  486.  
  487. [idle_timeout]
  488. timeout: 43200
  489. gcode:
  490. PRINT_END
  491.  
  492. [pause_resume]
  493.  
  494. [display_status]
  495.  
  496. [gcode_macro_break]
  497.  
  498. [virtual_sdcard]
  499. path: ~/printer_data/gcodes
  500. on_error_gcode:CANCEL_PRINT
  501.  
  502. [print_stats]
  503.  
  504. [force_move]
  505. enable_force_move : True
  506.  
  507. #[safe_z_home]
  508. #home_xy_position: 150, 150 # update for your machine
  509. #z_hop: 3
  510.  
  511.  
  512. [beacon]
  513. serial: /dev/serial/by-id/usb-Beacon_Beacon_RevH_04AEAD1A5157355957202020FF111016-if00
  514. x_offset: 0 # Assumes using stew675 beacon mount's offsets
  515. y_offset: -18.8 # Assumes using stew675 beacon mount's offsets
  516. mesh_main_direction: x
  517. mesh_runs: 2
  518. contact_max_hotend_temperature: 270 # 180
  519. home_xy_position: 152.5, 152.5 # update with your safe Z home position
  520. home_z_hop: 5
  521. home_z_hop_speed: 30
  522. home_xy_move_speed: 300
  523. home_y_before_x: False
  524. home_method: proximity
  525. home_method_when_homed: proximity
  526. home_autocalibrate: never
  527. home_gcode_pre_x: _BEACON_HOME_PRE_X
  528. home_gcode_post_x: _BEACON_HOME_POST_X
  529. home_gcode_pre_y: _BEACON_HOME_PRE_Y
  530. home_gcode_post_y: _BEACON_HOME_POST_Y
  531. contact_activate_gcode: _BEACON_CONTACT_PRE_Z
  532. contact_deactivate_gcode: _BEACON_CONTACT_POST_Z
  533. contact_sensitivity: 1 # You can try the default of 0, but if your
  534. # automatic Z is too high, then put back to 1
  535. contact_latency_min: 2 # You can try the default of 0, but if your
  536. # automatic Z is high, put back to 2, 3 or 4
  537. autocal_tolerance: 0.006
  538.  
  539. #[qdprobe]
  540. #pin:!PA10
  541. #z_offset:0
  542.  
  543. # Uncomment this if you have shaketune installed
  544. #[shaketune]
  545. #timeout: 1200
  546.  
  547. #*# <---------------------- SAVE_CONFIG ---------------------->
  548. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  549. #*#
  550. #*# [input_shaper]
  551. #*# shaper_type_x = ei
  552. #*# shaper_freq_x = 61.2
  553. #*# damping_ratio_x = 0.046
  554. #*# shaper_type_y = zv
  555. #*# shaper_freq_y = 44.0
  556. #*# damping_ratio_y = 0.058
  557. #*#
  558. #*# [beacon model default]
  559. #*# model_coef = 1.478975544440824,
  560. #*# 1.8173824939929502,
  561. #*# 0.7864476082408525,
  562. #*# 0.3525931185873752,
  563. #*# 0.4187306047671897,
  564. #*# 0.5855653368104944,
  565. #*# -0.26826745417822084,
  566. #*# -0.6966528979016056,
  567. #*# 0.18331137705678846,
  568. #*# 0.34356311828509706
  569. #*# model_domain = 1.8300902378788842e-07,1.9328458453331873e-07
  570. #*# model_range = 0.200000,5.000000
  571. #*# model_temp = 32.162106
  572. #*# model_offset = 0.00000
  573. #*#
  574. #*# [bed_mesh default]
  575. #*# version = 1
  576. #*# points =
  577. #*# 0.013058, 0.046001, 0.047591, 0.053081, 0.055801, 0.057717, 0.064571, 0.066094, 0.069496, 0.069109, 0.066858, 0.070732, 0.072242, 0.038017
  578. #*# 0.038317, 0.036003, 0.053337, 0.056099, 0.059689, 0.058953, 0.056250, 0.058920, 0.063276, 0.069820, 0.066119, 0.062501, 0.048676, 0.052162
  579. #*# 0.054216, 0.065588, 0.067352, 0.070376, 0.070806, 0.070134, 0.071963, 0.071261, 0.075875, 0.076443, 0.073691, 0.074189, 0.064895, 0.056959
  580. #*# 0.072209, 0.070953, 0.069708, 0.067294, 0.081470, 0.081522, 0.081675, 0.079917, 0.078237, 0.079425, 0.068679, 0.070304, 0.065916, 0.060704
  581. #*# 0.015420, 0.028264, 0.028533, 0.030445, 0.030031, 0.029116, 0.035497, 0.033178, 0.028069, 0.027913, 0.024413, 0.017419, 0.015467, 0.011591
  582. #*# -0.017919, -0.011388, -0.010344, -0.004962, -0.001909, 0.001889, 0.002940, -0.001285, -0.004742, -0.005068, -0.009125, -0.014191, -0.017212, -0.019067
  583. #*# -0.029273, -0.012730, -0.007077, 0.004810, 0.005409, 0.007336, 0.004399, 0.004773, 0.006462, 0.003271, -0.002373, -0.013561, -0.017231, -0.018933
  584. #*# -0.040870, -0.032204, -0.030349, -0.022826, -0.011144, -0.008581, -0.001811, -0.001245, -0.004666, -0.009399, -0.016708, -0.027715, -0.032387, -0.037838
  585. #*# -0.057605, -0.045510, -0.038814, -0.030385, -0.027859, -0.014982, -0.009770, -0.007000, -0.005504, -0.020817, -0.020520, -0.030796, -0.038464, -0.045130
  586. #*# -0.021578, -0.001479, 0.001023, 0.004745, 0.018308, 0.027733, 0.036360, 0.036528, 0.032659, 0.032667, 0.029567, 0.022319, 0.011986, 0.001584
  587. #*# -0.032502, -0.010446, 0.004183, -0.009602, 0.010693, 0.020956, 0.027581, 0.035547, 0.035304, 0.020152, 0.028819, 0.023914, 0.018160, 0.004910
  588. #*# -0.050507, -0.025148, -0.015278, -0.013620, -0.006070, 0.000255, 0.011162, 0.013735, 0.012733, 0.009382, 0.010862, 0.009494, 0.003707, -0.009325
  589. #*# -0.052785, -0.036980, -0.017746, -0.013310, -0.005216, 0.000331, 0.005334, 0.012266, 0.010489, 0.012616, 0.010615, 0.011087, -0.005926, -0.004431
  590. #*# -0.088206, -0.043648, -0.027692, -0.021362, -0.009170, -0.003681, 0.000562, 0.007206, 0.007364, 0.007234, 0.008678, 0.012618, 0.011878, -0.015755
  591. #*# x_count = 14
  592. #*# y_count = 14
  593. #*# mesh_x_pps = 2
  594. #*# mesh_y_pps = 2
  595. #*# algo = bicubic
  596. #*# tension = 0.3
  597. #*# min_x = 22.0
  598. #*# max_x = 283.0
  599. #*# min_y = 22.0
  600. #*# max_y = 283.0
  601. #*#
  602. #*# [bed_mesh kamp]
  603. #*# version = 1
  604. #*# points =
  605. #*# -0.005581, -0.000510, -0.001421, -0.004841
  606. #*# 0.006781, 0.003280, 0.003627, 0.003425
  607. #*# -0.007389, -0.004366, 0.001933, -0.002516
  608. #*# -0.017735, -0.016012, -0.012025, -0.008799
  609. #*# x_count = 4
  610. #*# y_count = 4
  611. #*# mesh_x_pps = 2
  612. #*# mesh_y_pps = 2
  613. #*# algo = bicubic
  614. #*# tension = 0.3
  615. #*# min_x = 122.481
  616. #*# max_x = 182.519
  617. #*# min_y = 126.418
  618. #*# max_y = 178.582
Advertisement
Add Comment
Please, Sign In to add comment