Created
June 9, 2023 02:32
-
-
Save KevinOConnor/fe39e1c5114122f45308d71a07ed3b24 to your computer and use it in GitHub Desktop.
filament macros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gcode_macro start_print_petg] | |
gcode: | |
{% set BED_TEMP = 70 %} | |
{% set EXTRUDER_TEMP = 245 %} | |
{% set PA = 0.720 %} # Overture clear PETG | |
G90 ; absolute positioning | |
M140 S{BED_TEMP} ; set bed temp | |
G28 | |
SET_PRESSURE_ADVANCE ADVANCE={PA} | |
G1 X5 Y5 Z5 F4000 | |
G1 Z0.25 F400 | |
M190 S{BED_TEMP} ; set bed temp & wait | |
M109 S{EXTRUDER_TEMP} ; wait for extruder temp | |
G92 E0 | |
[gcode_macro start_print_pla] | |
gcode: | |
{% set BED_TEMP = 70 %} | |
#{% set EXTRUDER_TEMP = 210 %} | |
{% set EXTRUDER_TEMP = 200 %} | |
#{% set PA = 0.360 %} # Overture black ABS | |
{% set PA = 0.500 %} # Guess for hatchbox green PLA | |
G90 ; absolute positioning | |
{% if printer.extruder.temperature > 100.0 %} | |
M104 S{EXTRUDER_TEMP} | |
{% endif %} | |
M140 S{BED_TEMP} ; set bed temp | |
G28 | |
SET_PRESSURE_ADVANCE ADVANCE={PA} | |
G1 X5 Y5 Z5 F4000 | |
G1 Z0.25 F400 | |
M190 S{BED_TEMP} ; set bed temp & wait | |
M109 S{EXTRUDER_TEMP} ; wait for extruder temp | |
G92 E0 | |
[gcode_macro start_print_abs] | |
gcode: | |
{% set BED_TEMP = 105 %} | |
{% set EXTRUDER_TEMP = 245 %} | |
{% set BED_HEAT = 110 %} | |
{% set PA = 0.360 %} # Overture black ABS | |
# Prep | |
G90 ; absolute positioning | |
G28 | |
SET_PRESSURE_ADVANCE ADVANCE={PA} | |
# Warm chamber | |
{% if printer.extruder.temperature > 100.0 %} | |
M104 S{EXTRUDER_TEMP} | |
{% else %} | |
M104 S1 | |
{% endif %} | |
M140 S{BED_HEAT} # Set bed to heat chamber | |
G1 X60 Y60 Z20 F800 | |
M106 S255 # Turn on layer cooling fan to distribute heat | |
TEMPERATURE_WAIT sensor="heater_bed" minimum={BED_TEMP} | |
# Heat extruder | |
M106 S0 | |
G1 X5 Y5 Z5 F4000 | |
G1 Z0.25 F400 | |
M140 S{BED_TEMP} | |
M109 S{EXTRUDER_TEMP} # Wait for extruder temp | |
M190 S{BED_TEMP} # Wait for bed temp | |
G92 E0 | |
[gcode_macro start_layer] | |
gcode: | |
{% set BED_TEMP = 100 %} | |
{% set FAN_SPEED = 0.20 %} | |
#{% set FAN_SPEED = 0.80 %} | |
{% set layer = params.LAYER|int %} | |
{% set cur_bed_target = printer.heater_bed.target %} | |
{% if layer == 1 and cur_bed_target > BED_TEMP %} | |
M140 S{BED_TEMP} | |
{% endif %} | |
{% set cur_fan_speed = printer.fan.speed %} | |
{% if layer == 3 and cur_fan_speed < FAN_SPEED %} | |
M106 S{255 * FAN_SPEED} | |
{% endif %} | |
[gcode_macro start_print] | |
gcode: start_print_abs | |
[gcode_macro end_print] | |
gcode: | |
M140 S0 ; heated bed heater off (if you have it) | |
M104 S0 ; extruder heater off | |
G91 ; relative positioning | |
G1 X-2 Y-2 E-3 F300 | |
G1 Z+20 F9000 | |
G90 ; absolute positioning | |
G0 X60 Y120 F3600 ; park nozzle at rear | |
M84 ; steppers off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment