dont mesh every print

This commit is contained in:
Torsten 2023-01-30 16:00:35 +02:00
parent d9c586544f
commit cc190916c7

View File

@ -12,7 +12,7 @@ gcode:
{% for var, value in printer["gcode_macro RatOS"].items() %} {% for var, value in printer["gcode_macro RatOS"].items() %}
{action_respond_info(var ~ ": " ~ value)} {action_respond_info(var ~ ": " ~ value)}
{% endfor %} {% endfor %}
[gcode_macro RatOS] [gcode_macro RatOS]
description: RatOS variable storage macro, will echo variables to the console when run. description: RatOS variable storage macro, will echo variables to the console when run.
# Configuration Defaults # Configuration Defaults
@ -90,7 +90,7 @@ rename_existing: PAUSE_BASE
variable_extrude: 1.5 variable_extrude: 1.5
gcode: gcode:
SAVE_GCODE_STATE NAME=PAUSE_state SAVE_GCODE_STATE NAME=PAUSE_state
# Define park positions # Define park positions
{% set E = printer["gcode_macro PAUSE"].extrude|float %} {% set E = printer["gcode_macro PAUSE"].extrude|float %}
{% set speed = printer["gcode_macro RatOS"].macro_travel_speed|float * 60 %} {% set speed = printer["gcode_macro RatOS"].macro_travel_speed|float * 60 %}
# Calculate safe Z position # Calculate safe Z position
@ -115,7 +115,7 @@ gcode:
_PARK LOCATION={printer["gcode_macro RatOS"].pause_print_park_in} X={printer["gcode_macro RatOS"].pause_print_park_x} _PARK LOCATION={printer["gcode_macro RatOS"].pause_print_park_in} X={printer["gcode_macro RatOS"].pause_print_park_x}
{% else %} {% else %}
{action_respond_info("Printer not homed")} {action_respond_info("Printer not homed")}
{% endif %} {% endif %}
[gcode_macro RESUME] [gcode_macro RESUME]
description: Resumes the print if the printer is paused. description: Resumes the print if the printer is paused.
@ -149,7 +149,7 @@ gcode:
SAVE_GCODE_STATE NAME=prime_line_state SAVE_GCODE_STATE NAME=prime_line_state
{% set speed = printer["gcode_macro RatOS"].macro_travel_speed|float * 60 %} {% set speed = printer["gcode_macro RatOS"].macro_travel_speed|float * 60 %}
# Absolute positioning # Absolute positioning
G90 G90
# Absolute extrusion # Absolute extrusion
M82 M82
M117 Priming nozzle with prime line.. M117 Priming nozzle with prime line..
@ -162,7 +162,7 @@ gcode:
G1 Z0.3 F3000 G1 Z0.3 F3000
# Reset extrusion distance # Reset extrusion distance
G92 E0 G92 E0
# Prime nozzle # Prime nozzle
G1 Y{printer.toolhead.axis_minimum.y + 80} E16 F1200 G1 Y{printer.toolhead.axis_minimum.y + 80} E16 F1200
# Wipe # Wipe
G1 Y{printer.toolhead.axis_minimum.y + 100} F{speed} G1 Y{printer.toolhead.axis_minimum.y + 100} F{speed}
@ -176,7 +176,7 @@ gcode:
RESPOND MSG="Priming nozzle with prime blob.." RESPOND MSG="Priming nozzle with prime blob.."
{% set speed = printer["gcode_macro RatOS"].macro_travel_speed|float * 60 %} {% set speed = printer["gcode_macro RatOS"].macro_travel_speed|float * 60 %}
# Absolute positioning # Absolute positioning
G90 G90
# Relative extrusion # Relative extrusion
M83 M83
# Lift 5 mm # Lift 5 mm
@ -186,11 +186,11 @@ gcode:
# Extrude a blob # Extrude a blob
G1 F60 E20 G1 F60 E20
# 40% fan # 40% fan
M106 S102 M106 S102
# Move the extruder up by 5mm while extruding, breaks away from blob # Move the extruder up by 5mm while extruding, breaks away from blob
G1 Z5 F100 E5 G1 Z5 F100 E5
# Move to wipe position, but keep extruding so the wipe is attached to blob # Move to wipe position, but keep extruding so the wipe is attached to blob
G1 F200 Y{printer.toolhead.axis_minimum.y + 25} E1 G1 F200 Y{printer.toolhead.axis_minimum.y + 25} E1
# Go down diagonally while extruding # Go down diagonally while extruding
# Broken down in z moves under 2mm as a workaround for a tuning tower test. # Broken down in z moves under 2mm as a workaround for a tuning tower test.
# The tuning tower command thinks a new print has been started when z moves over 2mm and aborts. # The tuning tower command thinks a new print has been started when z moves over 2mm and aborts.
@ -201,12 +201,12 @@ gcode:
# 0% fan # 0% fan
M106 S0 M106 S0
# small wipe line # small wipe line
G1 F200 Y{printer.toolhead.axis_minimum.y +50} Z0.2 E0.6 G1 F200 Y{printer.toolhead.axis_minimum.y +50} Z0.2 E0.6
# Break away wipe # Break away wipe
G1 F{speed} Y{printer.toolhead.axis_minimum.y + 100} G1 F{speed} Y{printer.toolhead.axis_minimum.y + 100}
RESTORE_GCODE_STATE NAME=prime_blob_state RESTORE_GCODE_STATE NAME=prime_blob_state
[gcode_macro _PARK] [gcode_macro _PARK]
gcode: gcode:
{% set speed = printer["gcode_macro RatOS"].macro_travel_speed|float * 60 %} {% set speed = printer["gcode_macro RatOS"].macro_travel_speed|float * 60 %}
@ -230,9 +230,9 @@ gcode:
{% set y = printer.toolhead.axis_maximum.y / 2 %} {% set y = printer.toolhead.axis_maximum.y / 2 %}
{% endif %} {% endif %}
# Absolute positioning # Absolute positioning
G90 G90
# Park # Park
G0 X{safe_x} Y{y} F{speed} G0 X{safe_x} Y{y} F{speed}
##### #####
# COLOR CHANGE # COLOR CHANGE
@ -261,15 +261,15 @@ gcode:
TEMPERATURE_WAIT SENSOR=extruder MINIMUM={params.TEMP|default(220, true)} TEMPERATURE_WAIT SENSOR=extruder MINIMUM={params.TEMP|default(220, true)}
{% endif %} {% endif %}
M117 Unloading filament... M117 Unloading filament...
# Extract filament to cold end area # Extract filament to cold end area
G0 E-5 F3600 G0 E-5 F3600
# Wait for three seconds # Wait for three seconds
G4 P3000 G4 P3000
# Push back the filament to smash any stringing # Push back the filament to smash any stringing
G0 E5 F3600 G0 E5 F3600
# Extract back fast in to the cold zone # Extract back fast in to the cold zone
G0 E-15 F3600 G0 E-15 F3600
# Continue extraction slowly, allow the filament time to cool solid before it reaches the gears # Continue extraction slowly, allow the filament time to cool solid before it reaches the gears
G0 E-130 F300 G0 E-130 F300
M117 Filament unloaded! M117 Filament unloaded!
RESPOND MSG="Filament unloaded! Please inspect the tip of the filament before reloading." RESPOND MSG="Filament unloaded! Please inspect the tip of the filament before reloading."
@ -306,7 +306,7 @@ gcode:
##### #####
# START PRINT MACROS # START PRINT MACROS
# Call this from your slicer (custom g-code). # Call this from your slicer (custom g-code).
# Read more here: https://rat-rig.github.io/V-CoreOS/#/slicers # Read more here: https://rat-rig.github.io/V-CoreOS/#/slicers
##### #####
@ -318,7 +318,7 @@ gcode:
# Metric values # Metric values
G21 G21
# Absolute positioning # Absolute positioning
G90 G90
# Set extruder to absolute mode # Set extruder to absolute mode
M82 M82
# Home if needed # Home if needed
@ -329,8 +329,6 @@ gcode:
M190 S{params.BED_TEMP|default(printer.heater_bed.target, true) } M190 S{params.BED_TEMP|default(printer.heater_bed.target, true) }
# Run the customizable "AFTER_HEATING_BED" macro. # Run the customizable "AFTER_HEATING_BED" macro.
_START_PRINT_AFTER_HEATING_BED _START_PRINT_AFTER_HEATING_BED
# Run the customizable "BED_MESH" macro
_START_PRINT_BED_MESH
# Start heating extruder # Start heating extruder
M104 S{params.EXTRUDER_TEMP|default(printer.extruder.target, true) } M104 S{params.EXTRUDER_TEMP|default(printer.extruder.target, true) }
# Run the customizable "PARK" macro # Run the customizable "PARK" macro
@ -360,7 +358,7 @@ gcode:
{% if printer["gcode_macro RatOS"].preheat_extruder|lower == 'true' %} {% if printer["gcode_macro RatOS"].preheat_extruder|lower == 'true' %}
M117 Pre-heating extruder... M117 Pre-heating extruder...
RESPOND MSG="Pre-heating extruder..." RESPOND MSG="Pre-heating extruder..."
# Wait for extruder to reach 150 so an inductive probe (if present) is at a predictable temp. # Wait for extruder to reach 150 so an inductive probe (if present) is at a predictable temp.
# Also allows the bed heat to spread a little, and softens any plastic that might be stuck to the nozzle. # Also allows the bed heat to spread a little, and softens any plastic that might be stuck to the nozzle.
M104 S150 M104 S150
TEMPERATURE_WAIT SENSOR=extruder MINIMUM=150 TEMPERATURE_WAIT SENSOR=extruder MINIMUM=150
@ -393,7 +391,7 @@ gcode:
##### #####
# END PRINT MACROS # END PRINT MACROS
# Call this from your slicer (custom g-code). # Call this from your slicer (custom g-code).
# Read more here: https://rat-rig.github.io/V-CoreOS/#/slicers # Read more here: https://rat-rig.github.io/V-CoreOS/#/slicers
##### #####