Advertisement
bob_binette

printer.cfg

Oct 20th, 2023
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.64 KB | None | 0 0
  1. # Rat Rig V-core 3 Klipper Config
  2. # Documentation: https://os.ratrig.com
  3.  
  4. # The first thing you'll need to do is go through this file and comment out / uncomment
  5. # the files and/or settings you need.
  6. # You'll be able to print just fine with this config as it is, but it is recommended
  7. # that you follow these steps to properly calibrate your printer:
  8. # 0) Sanity check and PID Tuning: https://www.klipper3d.org/Config_checks.html
  9. # 1) Pressure Advance: https://www.klipper3d.org/Pressure_Advance.html
  10. # 2) Skew Correction: https://www.klipper3d.org/Skew_Correction.html
  11. # 3) Resonance Compensation: https://www.klipper3d.org/Resonance_Compensation.html
  12.  
  13. # Read more about klipper here: https://www.klipper3d.org/Overview.html
  14.  
  15. #############################################################################################################
  16. ### CONTROL BOARD
  17. ### Pick the board you have installed and wired in your printer.
  18. #############################################################################################################
  19. [include RatOS/boards/btt-octopus-11/config.cfg]
  20.  
  21. #############################################################################################################
  22. ### BASE SETUP
  23. #############################################################################################################
  24. [include RatOS/printers/v-core-3/v-core-3.cfg]
  25. [include RatOS/homing.cfg]
  26. [include RatOS/macros.cfg]
  27. [include RatOS/shell-macros.cfg]
  28. [include RatOS/printers/v-core-3/macros.cfg]
  29.  
  30. #############################################################################################################
  31. ### STEPPER MOTORS, DRIVERS & SPEED LIMITS
  32. ### Pick the drivers and stepper motors you're using. See the RatOS documentation for custom combinations.
  33. #############################################################################################################
  34. [include RatOS/printers/v-core-3/steppers.cfg]
  35.  
  36. # UNCOOLED TMC 2209 + LDO-42STH48-2504AC
  37. #[include RatOS/printers/v-core-3/tmc2209.cfg]
  38. #[include RatOS/printers/v-core-3/speed-limits-basic.cfg]
  39. #[include RatOS/steppers/ldo/42sth48-2504ac/2209/24v-1.1a-x.cfg]
  40. #[include RatOS/steppers/ldo/42sth48-2504ac/2209/24v-1.1a-y.cfg]
  41. #[include RatOS/steppers/ldo/42sth48-2504ac/2209/24v-1.1a-z.cfg]
  42. #[include RatOS/steppers/ldo/42sth48-2504ac/2209/24v-1.1a-z1.cfg]
  43. #[include RatOS/steppers/ldo/42sth48-2504ac/2209/24v-1.1a-z2.cfg]
  44.  
  45. # COOLED TMC 2209 + LDO-42STH48-2504AC
  46. # This increases motor torque, positional accuracy and speed limits.
  47. # don't enable this before your printer is fully configured and you have a fan blowing on your stepper drivers.
  48. [include RatOS/printers/v-core-3/speed-limits-performance.cfg]
  49. [include RatOS/printers/v-core-3/tmc2209-performance.cfg]
  50. [include RatOS/steppers/ldo/42sth48-2504ac/2209/24v-1.6a-x.cfg]
  51. [include RatOS/steppers/ldo/42sth48-2504ac/2209/24v-1.6a-y.cfg]
  52. [include RatOS/steppers/ldo/42sth48-2504ac/2209/24v-1.6a-z.cfg]
  53. [include RatOS/steppers/ldo/42sth48-2504ac/2209/24v-1.6a-z1.cfg]
  54. [include RatOS/steppers/ldo/42sth48-2504ac/2209/24v-1.6a-z2.cfg]
  55.  
  56. # STEALTH MODE (Enables stealthchop and limits velocity and acceleration)
  57. # NOTE: You still need to include one of the above stepper motor definitions.
  58. # NOTE: This will make your printer quiter but less accurate, it's an inherent side effect of stealthchop.
  59. #[include RatOS/printers/v-core-3/speed-limits-stealth.cfg]
  60. #[include RatOS/printers/v-core-3/tmc2209-stealth.cfg]
  61.  
  62. #############################################################################################################
  63. ### PHYSICAL DIMENSIONS
  64. ### Pick your printer size
  65. #############################################################################################################
  66. # Remove the # from your printer size below.
  67. # Similarly add a # in front of [include RatOS/printers/v-core-3/300.cfg] if you have a bigger machine.
  68. [include RatOS/printers/v-core-3/300.cfg]
  69.  
  70.  
  71. #############################################################################################################
  72. ### HOMING
  73. ### Pick your probe and endstops
  74. #############################################################################################################
  75. # BL Touch
  76. #[include RatOS/z-probe/bltouch.cfg]
  77.  
  78. # Inductive/Capacitive probe
  79. #[include RatOS/z-probe/probe.cfg]
  80.  
  81. # Beacon (everything is already installed, just connect it and run BEACON_CALIBRATE)
  82. [include RatOS/z-probe/beacon.cfg]
  83.  
  84. # Euclid probe (please read the RatOS documentation for instructions)
  85. #[include RatOS/z-probe/euclid.cfg]
  86.  
  87. # Klicky probe (please read the RatOS documentation for instructions)
  88. #[include RatOS/z-probe/klicky.cfg]
  89. #[include RatOS/z-probe/unklicky.cfg]
  90.  
  91. # Physical endstop on X
  92. [include RatOS/printers/v-core-3/physical-endstop-x.cfg]
  93. # Physical endstop on Y
  94. [include RatOS/printers/v-core-3/physical-endstop-y.cfg]
  95.  
  96. #############################################################################################################
  97. ### INPUT SHAPER
  98. ### Enable/disable input shaper calibration
  99. #############################################################################################################
  100. # Uncomment this next line if you have an ADXL345 connected to your control board
  101. #[include RatOS/printers/v-core-3/input-shaper.cfg]
  102.  
  103.  
  104. #############################################################################################################
  105. ### TOOLHEAD
  106. ### Pick your extruder and hotend
  107. #############################################################################################################
  108. # Extruder
  109. #[include RatOS/extruders/bmg.cfg]
  110. #[include RatOS/extruders/lgx.cfg]
  111. #[include RatOS/extruders/lgx-lite.cfg]
  112. #[include RatOS/extruders/orbiter.cfg]
  113. [include RatOS/extruders/orbiter-1004.cfg] # Use this with the LDO-36STH20-1004AHG motor
  114. #[include RatOS/extruders/hemera.cfg]
  115. #[include RatOS/extruders/titan.cfg]
  116.  
  117. # Hotend
  118. #[include RatOS/hotends/v6.cfg]
  119. #[include RatOS/hotends/revo.cfg]
  120. #[include RatOS/hotends/dragonfly.cfg]
  121. [include RatOS/hotends/rapido.cfg]
  122. #[include RatOS/hotends/copperhead.cfg]
  123. #[include RatOS/hotends/mosquito.cfg]
  124. #[include RatOS/hotends/mosquito-magnum.cfg]
  125. #[include RatOS/hotends/dragon-standard-flow.cfg]
  126. #[include RatOS/hotends/dragon-high-flow.cfg]
  127.  
  128. #############################################################################################################
  129. ### FANS
  130. ### If your board has 4 pin fan headers and you want to use them, you can enable them here.
  131. ### NOTE: If none are uncommented, the default 2pin fan headers will be used.
  132. #############################################################################################################
  133. # Part cooling
  134. #[include RatOS/4pin-fans/part-cooling-fan-25khz.cfg]
  135. #[include RatOS/4pin-fans/part-cooling-fan-100hz.cfg]
  136.  
  137. # Hotend / Toolhead cooling
  138. #[include RatOS/4pin-fans/toolhead-fan-25khz.cfg]
  139. #[include RatOS/4pin-fans/toolhead-fan-100hz.cfg]
  140.  
  141. # Control board cooling
  142. #[include RatOS/4pin-fans/controller-fan-25khz.cfg]
  143. #[include RatOS/4pin-fans/controller-fan-100hz.cfg]
  144.  
  145. #############################################################################################################
  146. ### MACRO CONFIGURATION
  147. ### Configure the behavior of RatOS macros
  148. #############################################################################################################
  149. [gcode_macro RatOS]
  150.  
  151.  
  152. ### Relative Extrusion ###
  153. # Use absolute extrusion mode
  154. # Set to True to use relative extrusion mode
  155. variable_relative_extrusion: False
  156.  
  157. ### Speed ###
  158. # Set the speed for travel moves in RatOS Macros in mm/s.
  159. variable_macro_travel_speed: 600
  160. variable_macro_z_speed: 20
  161.  
  162. ### Homing ###
  163. # The x coordinate for where to return the toolhead to when homing Z
  164. variable_safe_home_x: "150" # "middle" or number
  165. # The y coordinate for where to return the toolhead to when homing Z
  166. variable_safe_home_y: "150" # "middle" or number
  167. # How much to raise the toolhead after homing Z. Probe configs may change this value.
  168. variable_homing_z_hop: 15
  169.  
  170. ### Heating ###
  171. # Wait for extruder to reach 150 so an inductive probe (if present) is at a predictable temp.
  172. # Also allows the bed heat to spread a little, and softens any plastic that might be stuck to the nozzle.
  173. # Set to False to disable
  174. variable_preheat_extruder: False
  175. # The bed temperature to use when heating the chamber when the CHAMBER_TEMP parameter is supplied to the START_PRINT macro.
  176. #variable_start_print_heat_chamber_bed_temp: 60
  177. # The temperature to preheat the extruder to, to soften the material at the nozzle tip
  178. variable_preheat_extruder_temp: 190
  179.  
  180. ### Bed Mesh Calibration ###
  181. # Calibrate the bed mesh in the START_PRINT macro.
  182. # Set to false to skip BED_MESH_CALIBRATE, it will still load the BED_MESH
  183. # with the name "ratos", be sure to save your bed_mesh profile with that name.
  184. # or override the _START_PRINT_BED_MESH macro to implement your own mesh handling logic.
  185. variable_calibrate_bed_mesh: True
  186. # If you want it to load a mesh, you can set variable_bed_mesh_profile to the name of the profile you want it to load.
  187. #variable_bed_mesh_profile: ""
  188. # RatOS comes with it's own adaptive meshing (functionality was previously handled by PAM by Helge Keck)
  189. variable_adaptive_mesh: False
  190.  
  191. ### Nozzle Priming ###
  192. # Print a prime line or blob at the end of the START_PRINT macro
  193. # set to "primeline" or "primeblob", or False to disable nozzle_priming.
  194. variable_nozzle_priming: "primeblob" # "primeline", "primeblob", false
  195. variable_nozzle_prime_start_x: "10" # min, max or number
  196. variable_nozzle_prime_start_y: "10" # min, max or number
  197. variable_nozzle_prime_direction: "auto" # auto, forwards, backwards
  198.  
  199. ### Filament loading/unloading ###
  200. # How much to retract in mm when unloading filament after the tip has been formed
  201. variable_filament_unload_length: 130
  202. # How fast to retract the filament_unload_length filament in mm/s
  203. variable_filament_unload_speed: 5
  204. # How much to extrude in mm when loading filament to get the filament to the nozzle
  205. variable_filament_load_length: 100
  206. # How fast to extrude the filament_load_length in mm/s
  207. variable_filament_load_speed: 10
  208.  
  209. ### Parking ###
  210. # Where to park the toolhead during final nozzle heating.
  211. variable_start_print_park_in: "front" # back, center, front
  212. # Custom X coordinate to park the toolhead during final nozzle heating.
  213. variable_start_print_park_x: "10"
  214. # The z height at which to park the toolhead during final nozzle heating.
  215. variable_start_print_park_z_height: 20
  216. # Where to park the toolhead after ending or canceling a print.
  217. variable_end_print_park_x: ""
  218. # How many mm to lift the nozzle when after ending or cancelling a print.
  219. variable_end_print_park_z_hop: 20
  220. # Where to park the toolhead when pausing a print.
  221. variable_pause_print_park_in: "back" # back, center, front
  222. # Custom X coordinate to park the toolhead when pausing a print.
  223. variable_pause_print_park_x: ""
  224.  
  225.  
  226. #############################################################################################################
  227. ### TOOLBOARD
  228. ### If you have a toolboard installed, select it here
  229. ### See: https://os.ratrig.com/docs/configuration/toolboards
  230. #############################################################################################################
  231. [include RatOS/boards/btt-ebb42-12/toolboard-config.cfg]
  232.  
  233. # If you have a toolboard installed, uncomment the following
  234. [include RatOS/boards/toolboard.cfg]
  235.  
  236. # Bltouch
  237. #[include RatOS/toolboard/bltouch.cfg]
  238.  
  239. # To use the toolboard's ADXL345 for resonance testing (input shaper calibration) uncomment the following
  240. [include RatOS/toolboard/input-shaper.cfg]
  241.  
  242. # Probe
  243. #[probe]
  244. #z_offset: 0.0 # Adjust this to fit your setup
  245. #pin: ^toolboard:probe_pin # For NPN NC probes such as the SuperPinda / Vinda / SupCR / Decoprobe probes.
  246. #pin: ^!toolboard:probe_pin # NPN NO (refer to the specs on your probe)
  247. #pin: toolboard:probe_pin # PNP NO (refer to the specs on your probe)
  248. #pin: !toolboard:probe_pin # PNP NC (refer to the specs on your probe)
  249.  
  250. # BLTouch configuration
  251. #[bltouch]
  252. #z_offset: 0.0 # Adjust this to fit your setup
  253.  
  254.  
  255. # ADXL345 resonance testing configuration
  256. [resonance_tester]
  257. probe_points:
  258. 150,150,20 # 300mm printer
  259.  
  260. #############################################################################################################
  261. ### PRINTER CONFIGURATION
  262. ### Customize the defaults to your specific build
  263. #############################################################################################################
  264. [stepper_x]
  265. endstop_pin: toolboard:x_endstop_pin
  266.  
  267. [stepper_y]
  268. endstop_pin: y_endstop_pin
  269.  
  270. [stepper_z]
  271. dir_pin: !z0_dir_pin # Add ! in front of pin name to reverse Z stepper direction
  272.  
  273. [stepper_z1]
  274. dir_pin: !z1_dir_pin # Add ! in front of pin name to reverse Z1 direction
  275.  
  276. [stepper_z2]
  277. dir_pin: !z2_dir_pin # Add ! in front of pin name to reverse Z2 direction
  278.  
  279.  
  280. [temperature_sensor Chamber]
  281. sensor_pin: PF5
  282. sensor_type: Generic 3950
  283.  
  284.  
  285. #############################################################################################################
  286. ### FAN
  287. #############################################################################################################
  288. # octopus 1.1 TMC2209 drivers cooling fan connectors for FAN2 (PD12)
  289. #[controller_fan controller_fan_octopus]
  290. #pin: fan_controller_board_pin
  291. #stepper:
  292. # stepper_x, stepper_y, stepper_z, stepper_z1, stepper_z2
  293.  
  294. # toolboard BTT-EBB42-12
  295. # fan part on toolboard (sanyo-denki 12v 9GAX0412P3S001 4028)
  296. # sanyo-denki 12v 9GAX0412P3S001 4028 RPM MAX=25K, CFM=31.8, max static pressure=1000Pa
  297. # use of a regulator 12volt
  298. # +12volt to fan red wire
  299. # gnd to fan black wire
  300. # fan0 to fan brown wire PWM invert (control)
  301. # optional to fan yellow wire (sensor)
  302. [fan]
  303. pin: !toolboard:fan_part_cooling_pin
  304. cycle_time: 0.00004
  305.  
  306. # FAN0
  307. [heater_fan toolhead_cooling_fan]
  308. pin: toolboard:fan_toolhead_cooling_pin
  309. cycle_time: 0.01
  310.  
  311. #############################################################################################################
  312. ### LED
  313. #############################################################################################################
  314. # Octopus 1.1 FAN3 (PD13) TOP LED 24 volts
  315. [output_pin LED]
  316. pin: PD13 # use the pin connected to your LED
  317. pwm: True
  318. hardware_pwm: True
  319. cycle_time: 0.001
  320. value: 1.0
  321. shutdown_value: 1.0
  322.  
  323. [gcode_macro Toggle_Led]
  324. description: Toggle The LED Bar On/Off, Alternativly Set It To A Specific Intensity
  325. variable_state: 'off'
  326. gcode:
  327. {% if params.S is defined%}
  328. {% set S = params.S|default(0.0)|float %}
  329. SET_PIN PIN=LED VALUE={S}
  330. {%else%}
  331. {%if printer['output_pin LED'].value == 0 %}
  332. SET_PIN PIN=LED VALUE=1
  333. {% else %}
  334. SET_PIN PIN=LED VALUE=0
  335. {%endif%}
  336. {%endif%}
  337.  
  338. #############################################################################################################
  339. ### EMERGENCY Switch
  340. #############################################################################################################
  341. # Red Button Emergency switch
  342. [gcode_button Emergency_Button]
  343. # J28
  344. pin: !PG12
  345. press_gcode:
  346. M112
  347.  
  348. # Z level minimum switch Front Left
  349. [gcode_button Emergency_Z_level_FL]
  350. # J30
  351. pin: !PG13
  352. press_gcode:
  353. M112
  354.  
  355. # Z level minimum switch Front Right
  356. [gcode_button Emergency_Z_level_FR]
  357. # J32
  358. pin: !PG14
  359. press_gcode:
  360. M112
  361.  
  362. # Z level minimum switch Rear
  363. [gcode_button Emergency_Z_level_Rear]
  364. # J34
  365. pin: !PG15
  366. press_gcode:
  367. M112
  368.  
  369.  
  370. #############################################################################################################
  371. ### USER OVERRIDES
  372. ### Anything custom you want to add, or RatOS configuration you want to override, do it here.
  373. ### See: https://os.ratrig.com/docs/configuration/includes-and-overrides
  374. #############################################################################################################
  375.  
  376. #*# <---------------------- SAVE_CONFIG ---------------------->
  377. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  378. #*#
  379. #*# [extruder]
  380. #*# control = pid
  381. #*# pid_kp = 21.828
  382. #*# pid_ki = 1.516
  383. #*# pid_kd = 78.580
  384. #*#
  385. #*# [heater_bed]
  386. #*# control = pid
  387. #*# pid_kp = 62.641
  388. #*# pid_ki = 3.188
  389. #*# pid_kd = 307.722
  390. #*#
  391. #*# [input_shaper]
  392. #*# shaper_freq_x = 51.4
  393. #*# shaper_type_x = mzv
  394. #*# shaper_freq_y = 36.2
  395. #*# shaper_type_y = mzv
  396. #*#
  397. #*# [printer]
  398. #*#
  399. #*# [beacon model default]
  400. #*# model_coef = 1.4650650549530284,
  401. #*# 1.7812993583863765,
  402. #*# 0.7960147928576693,
  403. #*# 0.43671883405922884,
  404. #*# 0.19741227084081525,
  405. #*# 0.06352313904118007,
  406. #*# 0.049787158713551834,
  407. #*# 0.09318802877384298,
  408. #*# 0.0925178166896116,
  409. #*# 0.02730810333503913
  410. #*# model_domain = 3.1759686053979777e-07,3.3279347048627933e-07
  411. #*# model_range = 0.200000,5.000000
  412. #*# model_temp = 26.144924
  413. #*# model_offset = -0.07500
  414. #*#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement