Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions features/Box-CFS/Box.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# 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
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 spit 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 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]

[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