參考 Prusaslicer 的 Color change。可以在要換顏色的層手動插入 G-code M600。 對應 M600 macro 要做的事,暫停列印,退出 filament,發出 "嗶" 聲。等換好線後,載入 filament,然後按恢復列印。
Klipper 的 macro 可以參考 klipper/config/sample-macros.cfg,將對應 M600 的段落擷取如下
------------------------------------------------
######################################################################
# Filament Change
######################################################################
# M600: Filament Change. This macro will pause the printer, move the
# tool to the change position, and retract the filament 50mm. Adjust
# the retraction settings for your own extruder. After filament has
# been changed, the print can be resumed from its previous position
# with the "RESUME" gcode.
[pause_resume]
[gcode_macro M600]
gcode:
{% set X = params.X|default(50)|float %}
{% set Y = params.Y|default(0)|float %}
{% set Z = params.Z|default(10)|float %}
SAVE_GCODE_STATE NAME=M600_state
PAUSE
G91
G1 E-.8 F2700
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000
G91
G1 E-50 F1000
RESTORE_GCODE_STATE NAME=M600_state
------------------------------------------------G90 - Absolute Mode;G91 - Relative Mode
G0, G1 - Linear Move
G1 [E<pos>] [F<rate>] [X<pos>] [Y<pos>] [Z<pos>]
沒有留言:
張貼留言