Update 6.0.0
This commit is contained in:
parent
bb0b7539a0
commit
c8db437b79
63 changed files with 3667 additions and 737 deletions
|
@ -1,5 +1,5 @@
|
|||
###########################################
|
||||
# Line Purge for Creality K1 Series
|
||||
# Purge Line Macros
|
||||
###########################################
|
||||
|
||||
[gcode_macro _LINE_PURGE]
|
||||
|
@ -44,70 +44,28 @@ gcode:
|
|||
{% set purge_move_speed = (flow_rate / 5.0) * 60 | float %}
|
||||
|
||||
{% if cross_section < 5 %}
|
||||
|
||||
RESPOND TYPE=command MSG="[Extruder] max_extrude_cross_section is insufficient for line purge, please set it to 5 or greater. Purge skipped."
|
||||
|
||||
{% else %}
|
||||
|
||||
{% if verbose_enable == True %}
|
||||
|
||||
RESPOND TYPE=command MSG="Moving filament tip {tip_distance}mm"
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if detect_object == 0 %}
|
||||
|
||||
RESPOND TYPE=command MSG="No object detected! Using classic purge line."
|
||||
|
||||
{% elif purge_y_origin_low > 0 %}
|
||||
|
||||
RESPOND TYPE=command MSG="KAMP line purge starting at {purge_x_center}, {purge_y_origin_low} and purging {purge_amount}mm of filament, requested flow rate is {flow_rate}mm3/s."
|
||||
|
||||
{% elif purge_x_origin_low > 0 %}
|
||||
|
||||
RESPOND TYPE=command MSG="KAMP line purge starting at {purge_x_origin_low}, {purge_y_center} and purging {purge_amount}mm of filament, requested flow rate is {flow_rate}mm3/s."
|
||||
|
||||
{% elif purge_y_origin_high < bed_y_max %}
|
||||
|
||||
RESPOND TYPE=command MSG="KAMP line purge starting at {purge_x_center}, {purge_y_origin_high} and purging {purge_amount}mm of filament, requested flow rate is {flow_rate}mm3/s."
|
||||
|
||||
{% elif purge_x_origin_high < bed_x_max %}
|
||||
|
||||
RESPOND TYPE=command MSG="KAMP line purge starting at {purge_x_origin_high}, {purge_y_center} and purging {purge_amount}mm of filament, requested flow rate is {flow_rate}mm3/s."
|
||||
|
||||
{% else %}
|
||||
|
||||
RESPOND TYPE=command MSG="No space for purge line! Using classic purge line."
|
||||
|
||||
{% endif %}
|
||||
|
||||
SAVE_GCODE_STATE NAME=Prepurge_State
|
||||
|
||||
{% if detect_object == 0 %}
|
||||
|
||||
G92 E0
|
||||
G1 Z0.1 F600
|
||||
M83
|
||||
{RETRACT}
|
||||
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=5
|
||||
M204 S12000
|
||||
SET_VELOCITY_LIMIT ACCEL_TO_DECEL=6000
|
||||
M220 S100
|
||||
M221 S100
|
||||
G1 Z2.0 F1200
|
||||
G1 X0.1 Y20 Z0.3 F6000.0
|
||||
G1 X0.1 Y180.0 Z0.3 F3000.0 E10.0
|
||||
G1 X0.4 Y180.0 Z0.3 F3000.0
|
||||
G1 X0.4 Y20.0 Z0.3 F3000.0 E10.0
|
||||
G1 Y10.0 F3000.0
|
||||
G1 Z2.0 F3000.0
|
||||
G92 E0
|
||||
M82
|
||||
G1 F12000
|
||||
G21
|
||||
|
||||
CX_PRINT_DRAW_ONE_LINE
|
||||
{% elif purge_y_origin_low > 0 %}
|
||||
|
||||
G92 E0
|
||||
G0 F{travel_speed}
|
||||
G90
|
||||
|
@ -121,9 +79,7 @@ gcode:
|
|||
G92 E0
|
||||
M82
|
||||
G0 Z{purge_height * 2} F{travel_speed}
|
||||
|
||||
{% elif purge_x_origin_low > 0 %}
|
||||
|
||||
G92 E0
|
||||
G0 F{travel_speed}
|
||||
G90
|
||||
|
@ -137,9 +93,7 @@ gcode:
|
|||
G92 E0
|
||||
M82
|
||||
G0 Z{purge_height * 2} F{travel_speed}
|
||||
|
||||
{% elif purge_y_origin_high < bed_y_max %}
|
||||
|
||||
G92 E0
|
||||
G0 F{travel_speed}
|
||||
G90
|
||||
|
@ -153,9 +107,7 @@ gcode:
|
|||
G92 E0
|
||||
M82
|
||||
G0 Z{purge_height * 2} F{travel_speed}
|
||||
|
||||
{% elif purge_x_origin_high < bed_x_max %}
|
||||
|
||||
G92 E0
|
||||
G0 F{travel_speed}
|
||||
G90
|
||||
|
@ -169,32 +121,8 @@ gcode:
|
|||
G92 E0
|
||||
M82
|
||||
G0 Z{purge_height * 2} F{travel_speed}
|
||||
|
||||
{% else %}
|
||||
|
||||
G92 E0
|
||||
G1 Z0.1 F600
|
||||
M83
|
||||
{RETRACT}
|
||||
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=5
|
||||
M204 S12000
|
||||
SET_VELOCITY_LIMIT ACCEL_TO_DECEL=6000
|
||||
M220 S100
|
||||
M221 S100
|
||||
G1 Z2.0 F1200
|
||||
G1 X0.1 Y20 Z0.3 F6000.0
|
||||
G1 X0.1 Y180.0 Z0.3 F3000.0 E10.0
|
||||
G1 X0.4 Y180.0 Z0.3 F3000.0
|
||||
G1 X0.4 Y20.0 Z0.3 F3000.0 E10.0
|
||||
G1 Y10.0 F3000.0
|
||||
G1 Z2.0 F3000.0
|
||||
G92 E0
|
||||
M82
|
||||
G1 F12000
|
||||
G21
|
||||
|
||||
CX_PRINT_DRAW_ONE_LINE
|
||||
{% endif %}
|
||||
|
||||
RESTORE_GCODE_STATE NAME=Prepurge_State
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue