Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set Material-specific Configs
- # Add this to your start_print line of the start gcode in Prusa/SuperSlicer:
- # MATERIAL={filament_type}
- #
- # Add this to your start_print line of the start gcode in Cura:
- # MATERIAL={material_type}
- #
- # Add this to your START_PRINT macro:
- # {% set MATERIAL = params.MATERIAL|default('PLA')|string %}
- # SET_MATERIAL MATERIAL={MATERIAL}
- #
- #
- [gcode_macro SET_MATERIAL]
- gcode:
- {% set MATERIAL = params.MATERIAL|default('PLA')|string %}
- SAVE_VARIABLE VARIABLE=last_material VALUE="'{MATERIAL}'"
- {% if MATERIAL == 'PLA' %}
- SET_PRESSURE_ADVANCE ADVANCE=0.035 SMOOTH_TIME=0.040
- SET_GCODE_OFFSET Z=1.904
- {% elif MATERIAL == 'ABS' %}
- SET_PRESSURE_ADVANCE ADVANCE=0.03 SMOOTH_TIME=0.040
- SET_GCODE_OFFSET Z=2.001
- {%else %}
- SET_PRESSURE_ADVANCE ADVANCE=0.035 SMOOTH_TIME=0.040
- SET_GCODE_OFFSET Z=1.904
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement