Advertisement
Guest User

Untitled

a guest
Jan 19th, 2025
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.13 KB | None | 0 0
  1. # WARNING. THIS FILE IS GENERATED BY THE RATOS CONFIGURATOR.
  2. # CHANGES YOU MAKE HERE WILL BE OVERWRITTEN. KEEP YOUR CHANGES IN PRINTER.CFG.
  3. # Config generated for Rat Rig V-Core 4 Hybrid 500
  4. # Documentation: https://os.ratrig.com
  5.  
  6. #############################################################################################################
  7. ### CONTROLBOARD & TOOLBOARD
  8. #############################################################################################################
  9. [include RatOS/boards/rpi/config.cfg]
  10.  
  11. [board_pins btt-octopus-11]
  12. aliases:
  13. #----------------------------------------------- X motor pins -----------------------------------------------
  14. # Assigned to slot: "MOTOR 0"
  15. #------------------------------------------------------------------------------------------------------------
  16. x_step_pin=PF13,
  17. x_dir_pin=PF12,
  18. x_enable_pin=PF14,
  19. x_uart_pin=PC4,
  20. x_diag_pin=PG6,
  21. x_endstop_pin=PG6,
  22. #---------------------------------------------- X1 motor pins -----------------------------------------------
  23. # Assigned to slot: "MOTOR 4"
  24. #------------------------------------------------------------------------------------------------------------
  25. x1_step_pin=PF9,
  26. x1_dir_pin=PF10,
  27. x1_enable_pin=PG2,
  28. x1_uart_pin=PF2,
  29. x1_diag_pin=PG12,
  30. x1_endstop_pin=PG12,
  31. #----------------------------------------------- Y motor pins -----------------------------------------------
  32. # Assigned to slot: "MOTOR 1"
  33. #------------------------------------------------------------------------------------------------------------
  34. y_step_pin=PG0,
  35. y_dir_pin=PG1,
  36. y_enable_pin=PF15,
  37. y_uart_pin=PD11,
  38. y_diag_pin=PG9,
  39. y_endstop_pin=PG9,
  40. #---------------------------------------------- Y1 motor pins -----------------------------------------------
  41. # Assigned to slot: "MOTOR 3"
  42. #------------------------------------------------------------------------------------------------------------
  43. y1_step_pin=PG4,
  44. y1_dir_pin=PC1,
  45. y1_enable_pin=PA0,
  46. y1_uart_pin=PC7,
  47. y1_diag_pin=PG11,
  48. y1_endstop_pin=PG11,
  49. #----------------------------------------------- Z motor pins -----------------------------------------------
  50. # Assigned to slot: "MOTOR 5"
  51. #------------------------------------------------------------------------------------------------------------
  52. z0_step_pin=PC13,
  53. z0_dir_pin=PF0,
  54. z0_enable_pin=PF1,
  55. z0_uart_pin=PE4,
  56. z0_diag_pin=PG13,
  57. #---------------------------------------------- Z1 motor pins -----------------------------------------------
  58. # Assigned to slot: "MOTOR 6"
  59. #------------------------------------------------------------------------------------------------------------
  60. z1_step_pin=PE2,
  61. z1_dir_pin=PE3,
  62. z1_enable_pin=PD4,
  63. z1_uart_pin=PE1,
  64. z1_diag_pin=PG14,
  65. #---------------------------------------------- Z2 motor pins -----------------------------------------------
  66. # Assigned to slot: "MOTOR 7"
  67. #------------------------------------------------------------------------------------------------------------
  68. z2_step_pin=PE6,
  69. z2_dir_pin=PA14,
  70. z2_enable_pin=PE0,
  71. z2_uart_pin=PD3,
  72. z2_diag_pin=PG15,
  73. #------------------------------------------- EXTRUDER motor pins --------------------------------------------
  74. e_step_pin=PF11,
  75. e_dir_pin=PG3,
  76. e_enable_pin=PG5,
  77. e_uart_pin=PC6,
  78. #----------------------------------------------- GENERAL PINS -----------------------------------------------
  79. e_heater_pin=PA2,
  80. e_sensor_pin=PF4,
  81. stepper_spi_mosi_pin=PA7,
  82. stepper_spi_miso_pin=PA6,
  83. stepper_spi_sclk_pin=PA5,
  84. adxl345_cs_pin=PA15,
  85. bltouch_sensor_pin=PB7,
  86. bltouch_control_pin=PB6,
  87. probe_pin=PB7,
  88. fan_part_cooling_pin=PA8,
  89. fan_toolhead_cooling_pin=PE5,
  90. fan_controller_board_pin=PD12,
  91. heater_bed_heating_pin=PA1,
  92. heater_bed_sensor_pin=PF3,
  93. 4p_fan_part_cooling_pin=null,
  94. 4p_fan_part_cooling_tach_pin=null,
  95. 4p_toolhead_cooling_pin=null,
  96. 4p_toolhead_cooling_tach_pin=null,
  97. 4p_controller_board_pin=null,
  98. 4p_controller_board_tach_pin=null
  99.  
  100. [mcu]
  101. serial: /dev/RatOS/btt-octopus-11
  102.  
  103. [temperature_sensor Octopus_V1.1_F446]
  104. sensor_type: temperature_mcu
  105.  
  106. [adxl345 controlboard]
  107. cs_pin: PA15
  108. spi_bus: spi3
  109.  
  110. [board_pins toolboard_t0]
  111. mcu: toolboard_t0
  112. aliases:
  113. #------------------------------------------- EXTRUDER motor pins --------------------------------------------
  114. e_step_pin=PD0,
  115. e_dir_pin=PD1,
  116. e_enable_pin=PD2,
  117. e_uart_pin=PA15,
  118. #----------------------------------------------- GENERAL PINS -----------------------------------------------
  119. e_heater_pin=PB13,
  120. e_sensor_pin=PA3,
  121. stepper_spi_mosi_pin=null,
  122. stepper_spi_miso_pin=null,
  123. stepper_spi_sclk_pin=null,
  124. adxl345_cs_pin=PB12,
  125. bltouch_sensor_pin=PB8,
  126. bltouch_control_pin=PB9,
  127. probe_pin=PB9,
  128. fan_part_cooling_pin=PA0,
  129. fan_toolhead_cooling_pin=PA1,
  130. fan_controller_board_pin=null,
  131. heater_bed_heating_pin=null,
  132. heater_bed_sensor_pin=null,
  133. 4p_fan_part_cooling_pin=null,
  134. 4p_fan_part_cooling_tach_pin=null,
  135. 4p_toolhead_cooling_pin=null,
  136. 4p_toolhead_cooling_tach_pin=null,
  137. 4p_controller_board_pin=null,
  138. 4p_controller_board_tach_pin=null
  139.  
  140. [mcu toolboard_t0]
  141. serial: /dev/RatOS/btt-ebb42-12-t0
  142.  
  143. [temperature_sensor EBB42_v1.2_T0]
  144. sensor_type: temperature_mcu
  145. sensor_mcu: toolboard_t0
  146.  
  147. [adxl345 toolboard_t0]
  148. axes_map: x, z, y # Assumes back-facing vertical toolboard mounting
  149. cs_pin: toolboard_t0:PB12
  150. spi_software_mosi_pin: toolboard_t0:PB11
  151. spi_software_miso_pin: toolboard_t0:PB2
  152. spi_software_sclk_pin: toolboard_t0:PB10
  153.  
  154. #############################################################################################################
  155. ### BASE SETUP
  156. #############################################################################################################
  157. [include RatOS/homing.cfg]
  158. [include RatOS/macros.cfg]
  159. [include RatOS/shell-macros.cfg]
  160. [include RatOS/printers/v-core-4-hybrid/v-core-4-hybrid.cfg]
  161. [include RatOS/printers/v-core-4-hybrid/macros.cfg]
  162. [include RatOS/printers/v-core-4-hybrid/500.cfg]
  163.  
  164. # Extruder
  165. # T0 Orbiter 2 definition (from RatOS/extruders/orbiter-2.cfg)
  166. [extruder]
  167. rotation_distance: 4.63
  168. full_steps_per_rotation: 200
  169. filament_diameter: 1.750
  170. max_extrude_only_velocity: 60
  171.  
  172. [firmware_retraction]
  173. retract_speed: 60
  174. unretract_extra_length: 0
  175. unretract_speed: 60
  176.  
  177. # Hotend
  178. # T0 Phaetus Rapido Plus UHF definition (from RatOS/hotends/rapido-plus-uhf.cfg)
  179. [extruder]
  180. max_extrude_only_distance: 200
  181. nozzle_diameter: 0.4
  182. heater_pin: toolboard_t0:PB13
  183. sensor_type: PT1000
  184. pullup_resistor: 2200
  185. sensor_pin: toolboard_t0:PA3
  186. min_extrude_temp: 170
  187. min_temp: 0
  188. max_temp: 350
  189. pressure_advance: 0.03
  190.  
  191. [firmware_retraction]
  192. retract_length: 0.5
  193.  
  194. # ADXL345 resonance testing configuration
  195. [resonance_tester]
  196. accel_chip_x: adxl345 toolboard_t0
  197. accel_chip_y: adxl345 toolboard_t0
  198. probe_points:
  199. 250,250,20
  200.  
  201. #############################################################################################################
  202. ### STEPPER MOTORS, DRIVERS & SPEED LIMITS
  203. #############################################################################################################
  204. #---------------------------------------------------- X -----------------------------------------------------
  205. # The A axis motor for the toolhead, located at the rear left of the printer
  206. # Connected to MOTOR 0 on BIGTREETECH Octopus V1.1 F446
  207. # Driver: BTT TMC2209 v1.3
  208. # Motor: LDO-42STH48-2504AC
  209. # Voltage: 24
  210. #------------------------------------------------------------------------------------------------------------
  211. [tmc2209 stepper_x]
  212. stealthchop_threshold: 0
  213. interpolate: False
  214. uart_pin: PC4
  215. run_current: 1.6
  216. driver_TBL: 2
  217. driver_TOFF: 3
  218. driver_HEND: 0
  219. driver_HSTRT: 6
  220. sense_resistor: 0.11
  221.  
  222. [stepper_x]
  223. step_pin: PF13
  224. dir_pin: PF12
  225. enable_pin: !PF14
  226. microsteps: 64
  227. full_steps_per_rotation: 200
  228. rotation_distance: 40
  229. homing_speed: 50
  230.  
  231. #---------------------------------------------------- X1 ----------------------------------------------------
  232. # The B axis motor for the toolhead, located at the rear right of the printer
  233. # Connected to MOTOR 4 on BIGTREETECH Octopus V1.1 F446
  234. # Driver: BTT TMC2209 v1.3
  235. # Motor: LDO-42STH48-2504AC
  236. # Voltage: 24
  237. #------------------------------------------------------------------------------------------------------------
  238. [tmc2209 stepper_x1]
  239. stealthchop_threshold: 0
  240. interpolate: False
  241. uart_pin: PF2
  242. run_current: 1.6
  243. driver_TBL: 2
  244. driver_TOFF: 3
  245. driver_HEND: 0
  246. driver_HSTRT: 6
  247. sense_resistor: 0.11
  248.  
  249. [stepper_x1]
  250. step_pin: PF9
  251. dir_pin: PF10
  252. enable_pin: !PG2
  253. microsteps: 64
  254. full_steps_per_rotation: 200
  255. rotation_distance: 40
  256.  
  257. #---------------------------------------------------- Y -----------------------------------------------------
  258. # The left Y motor used for cartesian Y control in Hybrid CoreXY, located at the rear left of the printer
  259. # Connected to MOTOR 1 on BIGTREETECH Octopus V1.1 F446
  260. # Driver: BTT TMC2209 v1.3
  261. # Motor: LDO-42STH48-2504AC
  262. # Voltage: 24
  263. #------------------------------------------------------------------------------------------------------------
  264. [tmc2209 stepper_y]
  265. stealthchop_threshold: 0
  266. interpolate: False
  267. uart_pin: PD11
  268. run_current: 1.6
  269. driver_TBL: 2
  270. driver_TOFF: 3
  271. driver_HEND: 0
  272. driver_HSTRT: 6
  273. sense_resistor: 0.11
  274.  
  275. [stepper_y]
  276. step_pin: PG0
  277. dir_pin: PG1
  278. enable_pin: !PF15
  279. microsteps: 64
  280. full_steps_per_rotation: 200
  281. rotation_distance: 40
  282. homing_speed: 50
  283.  
  284. #---------------------------------------------------- Y1 ----------------------------------------------------
  285. # The right Y motor used for cartesian Y control in Hybrid CoreXY, located at the rear right of the printer
  286. # Connected to MOTOR 3 on BIGTREETECH Octopus V1.1 F446
  287. # Driver: BTT TMC2209 v1.3
  288. # Motor: LDO-42STH48-2504AC
  289. # Voltage: 24
  290. #------------------------------------------------------------------------------------------------------------
  291. [tmc2209 stepper_y1]
  292. stealthchop_threshold: 0
  293. interpolate: False
  294. uart_pin: PC7
  295. run_current: 1.6
  296. driver_TBL: 2
  297. driver_TOFF: 3
  298. driver_HEND: 0
  299. driver_HSTRT: 6
  300. sense_resistor: 0.11
  301.  
  302. [stepper_y1]
  303. step_pin: PG4
  304. dir_pin: PC1
  305. enable_pin: !PA0
  306. microsteps: 64
  307. full_steps_per_rotation: 200
  308. rotation_distance: 40
  309.  
  310. #---------------------------------------------------- Z -----------------------------------------------------
  311. # The left Z motor for the kinematic bed
  312. # Connected to MOTOR 5 on BIGTREETECH Octopus V1.1 F446
  313. # Driver: BTT TMC2209 v1.3
  314. # Motor: LDO-42STH48-2504AC
  315. # Voltage: 24
  316. #------------------------------------------------------------------------------------------------------------
  317. [tmc2209 stepper_z]
  318. stealthchop_threshold: 0
  319. interpolate: False
  320. uart_pin: PE4
  321. run_current: 1.6
  322. driver_TBL: 2
  323. driver_TOFF: 3
  324. driver_HEND: 0
  325. driver_HSTRT: 6
  326. sense_resistor: 0.11
  327.  
  328. [stepper_z]
  329. step_pin: PC13
  330. dir_pin: PF0
  331. enable_pin: !PF1
  332. microsteps: 64
  333. full_steps_per_rotation: 200
  334. rotation_distance: 4
  335. position_min: -5
  336. homing_speed: 10
  337. endstop_pin: probe:z_virtual_endstop
  338.  
  339. #---------------------------------------------------- Z1 ----------------------------------------------------
  340. # The rear Z motor for the kinematic bed
  341. # Connected to MOTOR 6 on BIGTREETECH Octopus V1.1 F446
  342. # Driver: BTT TMC2209 v1.3
  343. # Motor: LDO-42STH48-2504AC
  344. # Voltage: 24
  345. #------------------------------------------------------------------------------------------------------------
  346. [tmc2209 stepper_z1]
  347. stealthchop_threshold: 0
  348. interpolate: False
  349. uart_pin: PE1
  350. run_current: 1.6
  351. driver_TBL: 2
  352. driver_TOFF: 3
  353. driver_HEND: 0
  354. driver_HSTRT: 6
  355. sense_resistor: 0.11
  356.  
  357. [stepper_z1]
  358. step_pin: PE2
  359. dir_pin: PE3
  360. enable_pin: !PD4
  361. microsteps: 64
  362. full_steps_per_rotation: 200
  363. rotation_distance: 4
  364.  
  365. #---------------------------------------------------- Z2 ----------------------------------------------------
  366. # The right Z motor for the kinematic bed
  367. # Connected to MOTOR 7 on BIGTREETECH Octopus V1.1 F446
  368. # Driver: BTT TMC2209 v1.3
  369. # Motor: LDO-42STH48-2504AC
  370. # Voltage: 24
  371. #------------------------------------------------------------------------------------------------------------
  372. [tmc2209 stepper_z2]
  373. stealthchop_threshold: 0
  374. interpolate: False
  375. uart_pin: PD3
  376. run_current: 1.6
  377. driver_TBL: 2
  378. driver_TOFF: 3
  379. driver_HEND: 0
  380. driver_HSTRT: 6
  381. sense_resistor: 0.11
  382.  
  383. [stepper_z2]
  384. step_pin: PE6
  385. dir_pin: PA14
  386. enable_pin: !PE0
  387. microsteps: 64
  388. full_steps_per_rotation: 200
  389. rotation_distance: 4
  390.  
  391. #------------------------------------------------- EXTRUDER -------------------------------------------------
  392. # The extruder motor used for pushing filament through the toolhead
  393. # Connected to EBB42 v1.2
  394. # Driver: BTT TMC2209 v1.3
  395. # Motor: LDO-36STH20-1004AHG
  396. # Voltage: 24
  397. #------------------------------------------------------------------------------------------------------------
  398. [tmc2209 extruder]
  399. stealthchop_threshold: 0
  400. interpolate: False
  401. uart_pin: toolboard_t0:PA15
  402. run_current: 0.707
  403. driver_TBL: 0
  404. driver_TOFF: 4
  405. driver_HEND: 6
  406. driver_HSTRT: 7
  407. sense_resistor: 0.11
  408.  
  409. [extruder]
  410. step_pin: toolboard_t0:PD0
  411. dir_pin: toolboard_t0:PD1
  412. enable_pin: !toolboard_t0:PD2
  413. microsteps: 64
  414. full_steps_per_rotation: 200
  415. rotation_distance: 4.63
  416.  
  417.  
  418. [printer]
  419. max_velocity: 800
  420. max_accel: 10000
  421. minimum_cruise_ratio: 0.5
  422. max_z_velocity: 50
  423. max_z_accel: 600
  424. square_corner_velocity: 5
  425.  
  426. [gcode_macro RatOS]
  427. variable_macro_travel_speed: 600
  428. variable_macro_travel_accel: 8000
  429.  
  430. [bed_mesh]
  431. speed: 600
  432.  
  433. [z_tilt]
  434. speed: 600
  435.  
  436.  
  437. #############################################################################################################
  438. ### HOMING
  439. #############################################################################################################
  440. [include RatOS/z-probe/beacon.cfg]
  441.  
  442.  
  443. # Physical X endstop configuration
  444. [stepper_x]
  445. endstop_pin: toolboard_t0:PB6
  446. [gcode_macro RatOS]
  447. variable_homing_x: "endstop"
  448.  
  449. # Physical Y endstop configuration
  450. [stepper_y]
  451. endstop_pin: PG9
  452. [gcode_macro RatOS]
  453. variable_homing_y: "endstop"
  454.  
  455.  
  456. #############################################################################################################
  457. ### FANS
  458. #############################################################################################################
  459. # Part cooling fan
  460. [fan]
  461. # 4-pin fan connected to 2-pin header on T0 (EBB42 v1.2) - digital pwm
  462. pin: !toolboard_t0:PA0
  463. cycle_time: 0.00004
  464.  
  465. # Hotend cooling fan
  466. [heater_fan toolhead_cooling_fan]
  467. heater: extruder
  468. # 2-pin fan connected to 2-pin header on T0 (EBB42 v1.2) - input voltage pwm
  469. pin: toolboard_t0:PA1
  470.  
  471. # Controller cooling fan
  472. [controller_fan controller_fan]
  473. # 2-pin fan connected to 2-pin header on Octopus V1.1 F446 - input voltage pwm
  474. pin: PD12
  475.  
  476. #############################################################################################################
  477. ### MACRO CONFIGURATION
  478. #############################################################################################################
  479. [gcode_macro T0]
  480. variable_join: 0
  481. variable_remap: 0
  482. variable_alert: ""
  483. variable_filament_name: ""
  484. variable_filament_type: ""
  485. variable_filament_temp: 0
  486. variable_runout_sensor: ""
  487. variable_active: True
  488. variable_color: "7bff33" # Used in frontends
  489. variable_hotend_type: "UHF"
  490. variable_has_cht_nozzle: True
  491. variable_cooling_position_to_nozzle_distance: 40 # heatbreak length from cold zone to nozzle
  492. variable_tooolhead_sensor_to_extruder_gear_distance: 15 # distance in mm from the sensor to the extruder gear
  493. variable_extruder_gear_to_cooling_position_distance: 30 # distance in mm from the extruder gear to the end of the hotend cold zone
  494. variable_filament_loading_nozzle_offset: -5
  495. variable_filament_grabbing_length: 5
  496. variable_filament_grabbing_speed: 1
  497. variable_enable_insert_detection: True # enables filament sensor insert detection
  498. variable_enable_runout_detection: True # enables filament sensor runout detection
  499. variable_enable_clog_detection: True # enables filament sensor clog detection
  500. variable_unload_after_runout: True # unload filament after a runout has been detected
  501. variable_purge_after_load: 0
  502. variable_purge_before_unload: 0
  503. variable_extruder_load_speed: 60
  504. variable_filament_load_speed: 10
  505. variable_standby: False
  506. variable_temperature_offset: 0 # hotend temperature offset
  507. variable_has_oozeguard: False # toolhead has a oozeguard
  508. variable_has_front_arm_nozzle_wiper: False # toolhead has front arm nozzle wipers
  509. variable_resume_after_insert: False # resumes the print after inserting new filament
  510. gcode:
  511. {% set x = params.X|default(-1.0)|float %}
  512. {% set y = params.Y|default(-1.0)|float %}
  513. {% set z = params.Z|default(0.0)|float %}
  514. {% set s = params.S|default(1)|int %}
  515. {% if printer["gcode_macro _SELECT_TOOL"] is defined %}
  516. _SELECT_TOOL T=0 X={x} Y={y} Z={z} TOOLSHIFT={s}
  517. {% endif %}
  518.  
  519. # Macro variable overrides
  520. [gcode_macro RatOS]
  521. variable_bed_margin_x: [59.8, 59.8]
  522. variable_bed_margin_y: [14.35, 30]
  523. variable_x_driver_types: ["tmc2209"]
  524. variable_x_axes: ["x"]
  525. variable_y_driver_types: ["tmc2209", "tmc2209", "tmc2209"]
  526. variable_y_axes: ["x1", "y", "y1"]
  527. variable_z_driver_types: ["tmc2209", "tmc2209", "tmc2209"]
  528. variable_z_axes: ["z", "z1", "z2"]
  529. variable_home_y_first: True
  530.  
  531. # Save variables
  532. [save_variables]
  533. filename: /home/pi/printer_data/config/ratos-variables.cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement