Skip to content

Commit

Permalink
modified _MODULE_PRIMELINE to be more efficient
Browse files Browse the repository at this point in the history
  • Loading branch information
Frix-x committed Apr 30, 2023
1 parent eb5083f commit b2916dc
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 13 deletions.
1 change: 1 addition & 0 deletions config/hardware/extruder/cw1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ full_steps_per_rotation: 200
nozzle_diameter: 0.400
filament_diameter: 1.75
max_extrude_only_distance: 110
max_extrude_cross_section: 5
sensor_type: ATC Semitec 104GT-2
min_temp: 10
max_temp: 270
Expand Down
1 change: 1 addition & 0 deletions config/hardware/extruder/cw2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ full_steps_per_rotation: 200
nozzle_diameter: 0.400
filament_diameter: 1.75
max_extrude_only_distance: 110
max_extrude_cross_section: 5
sensor_type: ATC Semitec 104GT-2
min_temp: 10
max_temp: 270
Expand Down
1 change: 1 addition & 0 deletions config/hardware/extruder/galileo.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ full_steps_per_rotation: 200
nozzle_diameter: 0.400
filament_diameter: 1.75
max_extrude_only_distance: 110
max_extrude_cross_section: 5
sensor_type: ATC Semitec 104GT-2
min_temp: 10
max_temp: 270
Expand Down
1 change: 1 addition & 0 deletions config/hardware/extruder/lgx_heavy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ full_steps_per_rotation: 200
nozzle_diameter: 0.400
filament_diameter: 1.75
max_extrude_only_distance: 110
max_extrude_cross_section: 5
sensor_type: ATC Semitec 104GT-2
min_temp: 10
max_temp: 270
Expand Down
1 change: 1 addition & 0 deletions config/hardware/extruder/lgx_lite.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ full_steps_per_rotation: 200
nozzle_diameter: 0.400
filament_diameter: 1.75
max_extrude_only_distance: 110
max_extrude_cross_section: 5
sensor_type: ATC Semitec 104GT-2
min_temp: 10
max_temp: 270
Expand Down
24 changes: 13 additions & 11 deletions macros/base/start_print.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -160,31 +160,34 @@ gcode:
{% set St = printer["gcode_macro _USER_VARIABLES"].travel_speed * 60 %}
{% set Sz = printer["gcode_macro _USER_VARIABLES"].z_drop_speed * 60 %}
{% set prime_line_x, prime_line_y = printer["gcode_macro _USER_VARIABLES"].prime_line_xy|map('float') %}
{% set prime_line_length = printer["gcode_macro _USER_VARIABLES"].prime_line_length|float %}
{% set prime_line_flowrate = printer["gcode_macro _USER_VARIABLES"].prime_line_flowrate|float %}

{% set max_extrude_cross_section = printer.configfile.settings.extruder.max_extrude_cross_section | float %}
{% set Sp = (prime_line_flowrate / max_extrude_cross_section) * 60 | float %}

G91
M83
G1 Z5 F{Sz}

; Starting position
# Starting position
G90
G0 X{prime_line_x} Y{prime_line_y} F{St}
G1 Z0.3 F{Sz|int / 2}
G1 Z0.6 F{Sz|int / 2}

; Add pressure in the nozzle
# Add pressure in the nozzle
G92 E0
G1 E18 F300

; Prime line
G92 E0
G1 Y{prime_line_y + 80} E10 F2500
# Prime line
G92 E0
G1 Y{prime_line_y + 130} E5 F1500
G1 Y{prime_line_y + prime_line_length} E{prime_line_length} F{Sp}

; Retract and Z-hop
# Retract and Z-hop
G92 E0
G1 Z2.0 E-0.1 F{Sz}
G1 E-0.2 F2100
G92 E0
G1 Z5 F{Sz}
G1 Z3 F{Sz}


[gcode_macro _MODULE_HEATSOAK_BED]
Expand Down Expand Up @@ -301,7 +304,6 @@ gcode:
{% endif %}

M109 S{EXTRUDER_TEMP}
G4 P{60000 * 0.5}

{% if purgeclean_servo_enabled %}
_SERVO_RETRACT ITEM="purge"
Expand Down
6 changes: 4 additions & 2 deletions user_templates/variables.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ variable_probe_dock_margin_xy: 0, 0
## Temperature of the extruder used to preheat the chamber temperature and do some START_PRINT actions
variable_safe_extruder_temp: 150

## Prime line start position
variable_prime_line_xy: 2.5, 20
## Prime line parameters
variable_prime_line_xy: 2.5, 5
variable_prime_line_length: 40
variable_prime_line_flowrate: 5 # mm3/s used for the prime line

## Park position used when pause, end_print, etc...
variable_park_position_xy: -1, -1
Expand Down

0 comments on commit b2916dc

Please sign in to comment.