From 91ce64bac77b8cdbd6199729b3ee835a366fd3c8 Mon Sep 17 00:00:00 2001 From: Scott Evans <51548286+QuackenAudio@users.noreply.github.com> Date: Fri, 14 Mar 2025 18:00:24 -0700 Subject: [PATCH 1/2] Replacement Box.cfg Updates to the Box.cfg File to fix some filament handling issues Adds more range to the cutter value so it can fully cut all filament Gets the Filament completely out of the extruder instead of relying on the CFS 4x1 to yank it out (which doesnt always work and causes filament grinding at the 4x1) When sending filament to the Extruder, Stops the Filament shortly after the Filament Switch instead of trying to push it further than it can physically go - prevents the 4x1 from causing filament grinding when it physically hits the end but the 4x1 is still trying to send it further --- features/Box-CFS/Box.cfg | 103 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 features/Box-CFS/Box.cfg diff --git a/features/Box-CFS/Box.cfg b/features/Box-CFS/Box.cfg new file mode 100644 index 0000000..05400a5 --- /dev/null +++ b/features/Box-CFS/Box.cfg @@ -0,0 +1,103 @@ +# Updates to Box.cfg by Scott Evans +# https://github.com/QuackenAudio + +# Changes made to alleviate Filament Loading/Unloading issues Caused by interaction of CFS 4x1 and Extruder +# All Chinese Symbols have been converted to Englisgh Text by Google Translate + +[serial_485 serial485] +serial: /dev/ttyS5 +baud: 230400 + +[auto_addr] + +[filament_rack] +not_pin: !PA5 + +[box] +bus:serial485 +filament_sensor:filament_sensor +pre_cut_pos_x: 10 #Pre-cut knife position, ensure vertical cut +pre_cut_pos_y: 200 +cut_pos_y: 200 #middle_cut_pos_y: +Tn_retrude: -20 #Stock Value: -10 #After cutting, the length of the consumables to exit the extrusion gear +#Tn_retrude value gets the filament completely out of the Extruder +Tn_retrude_velocity: 360 #Stock Value 600 #Retraction speed +#Tn_retrude_velocity new speed doesnt try to go faster than the filament can actually move +Tn_extrude_temp: 240 #Extrusion temperature +Tn_extrude: 20 #If the current temperature is set, preheat the knife 120 +Tn_extrude_velocity: 360 #360 #Extrusion speed +buffer_empty_len: 10 #30 #Buffer retraction reserved length, the length reserved for the extrusion buffer (The length from the collision knife in the extruder to the extrusion gear) +#buffer_empty_len this is distance after the filament sensor to stop teh filament, preventing ramming, which leads to the CFS grinding the Filament because it cant push it further +clean_left_pos_x: 135 #The trough swings after the material is spitted out. Left boundary +clean_left_pos_y: 378 +clean_right_pos_x: 160 #The trough swings after the material is spitted out. Right boundary +clean_right_pos_y: 378 +clean_velocity: 12000 +box_need_clean_length:70 +cut_velocity: 30000 +extrude_pos_x: 133 #Switch the position of material spitting +extrude_pos_y: 378 +has_extrude_pos: 1 #Is there any need to spit out material? Distinguish between K1_MAX and f008 +safe_pos_y: 345 +safe_pos_x: 225 +clean_pos_left_x: 160 #The coordinates of the left boundary of the wipe nozzle silicone +clean_pos_right_x:170 #The coordinates of the right boundary of the wipe nozzle silicone +clean_pos_middle_y:374 #The Y-axis middle coordinate of the wipe nozzle silicone +check_cut_pos_x_max:-7 #Stock Value -5 #The boundary value of the maximum coordinate of the cutter calibration coordinate +#check_cut_pos_x_max this slightly higher value allows for the filament to fully get cut - stock value was a little too conservative and sometimes didnt fully cut filament +switch_pin:!nozzle_mcu:PB9 +version: 1 + +[load_ai] + +[gcode_macro BOX_CHECK_MATERIAL] +gcode: + +[gcode_macro BOX_LOAD_MATERIAL_WITH_MATERIAL] +gcode: + BOX_CHECK_MATERIAL + BOX_CUT_MATERIAL + BOX_SAVE_FAN + BOX_RETRUDE_MATERIAL_WITH_TNN # BOX_RETRUDE_MATERIAL + BOX_EXTRUDE_MATERIAL + BOX_EXTRUDER_EXTRUDE + BOX_MATERIAL_CHANGE_FLUSH # BOX_MATERIAL_FLUSH + BOX_RESTORE_FAN + BOX_MOVE_TO_SAFE_POS + +[gcode_macro BOX_LOAD_MATERIAL_WITHOUT_MATERIAL] +gcode: + M104 + BOX_CHECK_MATERIAL + BOX_EXTRUDE_MATERIAL + BOX_EXTRUDER_EXTRUDE + BOX_MATERIAL_CHANGE_FLUSH # BOX_MATERIAL_FLUSH + +[gcode_macro BOX_RETRUDE_MATERIAL_WITH_TNN] +rename_existing: BOX_RETRUDE_MATERIAL_WITH_TNN1 +gcode: + BOX_SET_TEMP + BOX_GO_TO_EXTRUDE_POS + BOX_RETRUDE_MATERIAL + +[gcode_macro BOX_QUIT_MATERIAL] +gcode: + BOX_CHECK_MATERIAL + BOX_CUT_MATERIAL + BOX_RETRUDE_MATERIAL_WITH_TNN + BOX_MOVE_TO_SAFE_POS + +# eg: +# BOX_EXTRUDE_MATERIAL TNN=T1A +# BOX_EXTRUDER_EXTRUDE TNN=T1A +# BOX_MATERIAL_FLUSH LEN=100 VELOCITY=360 TEMP=220 +# BOX_RETRUDE_MATERIAL_WITH_TNN TNN=T1A + +[gcode_macro BOX_INFO_REFRESH] +gcode: + BOX_SET_PRE_LOADING ADDR={params.ADDR} NUM={params.NUM} ACTION=RUN + M400 + BOX_GET_RFID ADDR={params.ADDR} NUM={params.NUM} + M400 + BOX_GET_REMAIN_LEN ADDR={params.ADDR} NUM={params.NUM} + M400 From 5b5b40af690b9d85bd3a8607eb070de1670ccc7d Mon Sep 17 00:00:00 2001 From: Scott Evans <51548286+QuackenAudio@users.noreply.github.com> Date: Wed, 9 Apr 2025 16:23:18 -0700 Subject: [PATCH 2/2] Minor Update to Box.cfg --- features/Box-CFS/Box.cfg | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/features/Box-CFS/Box.cfg b/features/Box-CFS/Box.cfg index 05400a5..f67c7f9 100644 --- a/features/Box-CFS/Box.cfg +++ b/features/Box-CFS/Box.cfg @@ -18,19 +18,16 @@ bus:serial485 filament_sensor:filament_sensor pre_cut_pos_x: 10 #Pre-cut knife position, ensure vertical cut pre_cut_pos_y: 200 -cut_pos_y: 200 #middle_cut_pos_y: -Tn_retrude: -20 #Stock Value: -10 #After cutting, the length of the consumables to exit the extrusion gear -#Tn_retrude value gets the filament completely out of the Extruder -Tn_retrude_velocity: 360 #Stock Value 600 #Retraction speed -#Tn_retrude_velocity new speed doesnt try to go faster than the filament can actually move -Tn_extrude_temp: 240 #Extrusion temperature -Tn_extrude: 20 #If the current temperature is set, preheat the knife 120 -Tn_extrude_velocity: 360 #360 #Extrusion speed -buffer_empty_len: 10 #30 #Buffer retraction reserved length, the length reserved for the extrusion buffer (The length from the collision knife in the extruder to the extrusion gear) -#buffer_empty_len this is distance after the filament sensor to stop teh filament, preventing ramming, which leads to the CFS grinding the Filament because it cant push it further -clean_left_pos_x: 135 #The trough swings after the material is spitted out. Left boundary +cut_pos_y: 200 +Tn_retrude: -20 #After cutting, the length of the filament to exit the extrusion gear +Tn_retrude_velocity: 600 #Retraction speed +Tn_extrude_temp: 260 #Extrusion temperature +Tn_extrude: 140 #If the current temperature is set, preheat the knife 120 +Tn_extrude_velocity: 360 #Extrusion speed +buffer_empty_len: 30 #Buffer retraction reserved length, the length reserved for the extruder buffer (cutting off the length from the collision knife in the extruder to the extrusion gear) +clean_left_pos_x: 135 #The trough swings after the material is spit out. Left boundary clean_left_pos_y: 378 -clean_right_pos_x: 160 #The trough swings after the material is spitted out. Right boundary +clean_right_pos_x: 160 #The trough swings after the material is spit out. Right boundary clean_right_pos_y: 378 clean_velocity: 12000 box_need_clean_length:70 @@ -40,12 +37,11 @@ extrude_pos_y: 378 has_extrude_pos: 1 #Is there any need to spit out material? Distinguish between K1_MAX and f008 safe_pos_y: 345 safe_pos_x: 225 -clean_pos_left_x: 160 #The coordinates of the left boundary of the wipe nozzle silicone -clean_pos_right_x:170 #The coordinates of the right boundary of the wipe nozzle silicone -clean_pos_middle_y:374 #The Y-axis middle coordinate of the wipe nozzle silicone -check_cut_pos_x_max:-7 #Stock Value -5 #The boundary value of the maximum coordinate of the cutter calibration coordinate -#check_cut_pos_x_max this slightly higher value allows for the filament to fully get cut - stock value was a little too conservative and sometimes didnt fully cut filament -switch_pin:!nozzle_mcu:PB9 +clean_pos_left_x: 160 #The coordinate of the left boundary of the silicone wipe nozzle +clean_pos_right_x: 170 #The coordinate of the right boundary of the silicone wipe nozzle +clean_pos_middle_y: 374 #The Y-axis middle coordinate of the silicone wipe nozzle +check_cut_pos_x_max: -7 #The boundary value of the maximum coordinate of the cutter calibration coordinate +switch_pin:!nozzle_mcu: PB9 version: 1 [load_ai]