Skip to content

Instantly share code, notes, and snippets.

@metacollin
Last active March 2, 2025 11:30
Show Gist options
  • Save metacollin/18ecb0a58fb475cfae86e0781bf51325 to your computer and use it in GitHub Desktop.
Save metacollin/18ecb0a58fb475cfae86e0781bf51325 to your computer and use it in GitHub Desktop.
Slic3r settings for high quality, low-warp, high-strength printing of polycarbonate without an enclosure on a Prusa i3 MK2S
# generated by Slic3r 1.37.2-prusa3d on Thu Dec 7 09:48:20 2017
# Figured out by trial and error engineer metacollin
# Released as public domain.
# USE GLUESTICK FOR PRINT BED ADHESION
avoid_crossing_perimeters = 0
bed_shape = 0x0,250x0,250x210,0x210
bed_temperature = 110
before_layer_gcode = ;BEFORE_LAYER_CHANGE\n;[layer_z]\n\n
bottom_solid_layers = 8
bridge_acceleration = 1000
bridge_angle = 0
bridge_fan_speed = 40
bridge_flow_ratio = 0.8
bridge_speed = 20
brim_width = 0
clip_multipart_objects = 1
complete_objects = 0
cooling = 1
default_acceleration = 1000
deretract_speed = 30
disable_fan_first_layers = 3
dont_support_bridges = 1
duplicate_distance = 6
elefant_foot_compensation = 0
end_filament_gcode = "; Filament-specific end gcode"
end_gcode = G4 ; wait\nM104 S0 ; turn off temperature\nM140 S0 ; turn off heatbed\nM107 ; turn off fan\nG1 X0 Y200; home X axis\nM84 ; disable motors
ensure_vertical_shell_thickness = 0
external_fill_pattern = rectilinear
external_perimeter_extrusion_width = 0.6
external_perimeter_speed = 50
external_perimeters_first = 0
extra_perimeters = 0
extruder_clearance_height = 20
extruder_clearance_radius = 20
extruder_colour = #F8CE09
extruder_offset = 0x0
extrusion_axis = E
extrusion_multiplier = .93 ; You will probably need to adjust this.
extrusion_width = 0.9
fan_always_on = 0
fan_below_layer_time = 10
filament_colour = #3A80CA
filament_cost = 0
filament_density = 0
filament_diameter = 1.75
filament_max_volumetric_speed = 13
filament_notes = "Tested on eSun ePC and Priline Polycarbonate filaments. Use gluestick for printbed adhesion."
filament_settings_id = Polycarbonate
filament_soluble = 0
filament_type = ABS
fill_angle = 45
fill_density = 40%
fill_pattern = honeycomb
first_layer_acceleration = 1000
first_layer_bed_temperature = 100
first_layer_extrusion_width = 0.6
first_layer_height = 0.2
first_layer_speed = 40
first_layer_temperature = 260
gap_fill_speed = 40
gcode_comments = 0
gcode_flavor = reprap
infill_acceleration = 2000
infill_every_layers = 1
infill_extruder = 1
infill_extrusion_width = 0.9
infill_first = 0
infill_only_where_needed = 0
infill_overlap = 7%
infill_speed = 75
interface_shells = 0
layer_gcode = ;AFTER_LAYER_CHANGE\n;[layer_z]
layer_height = 0.2
max_fan_= 20
max_layer_height = 0.25
max_print_speed = 100
max_volumetric_extrusion_rate_slope_negative = 0
max_volumetric_extrusion_rate_slope_positive = 0
max_volumetric_speed = 12
min_fan_speed = 20
min_layer_height = 0.07
min_print_speed = 3
min_skirt_length = 4
notes = "Tested on eSun ePC and Priline Polycarbonate filaments. Use gluestick for printbed adhesion."
nozzle_diameter = 0.4
octoprint_apikey =
octoprint_host =
only_retract_when_crossing_perimeters = 0
ooze_prevention = 0
output_filename_format = [input_filename_base].gcode
overhangs = 1
perimeter_acceleration = 800
perimeter_extruder = 1
perimeter_extrusion_width = 0.9
perimeter_speed = 65
perimeters = 4
post_process =
print_settings_id = 0.200mm FAST LA Polycarbonate
printer_notes = "Tested on eSun ePC and Priline Polycarbonate filaments. Use gluestick for printbed adhesion."
printer_settings_id = Original Prusa i3 MK2 - PC
raft_layers = 0
resolution = 0
retract_before_travel = 1
retract_before_wipe = 0%
retract_layer_change = 1
retract_length = 1
retract_length_toolchange = 3
retract_lift = 0.5
retract_lift_above = 1
retract_lift_below = 199
retract_restart_extra = 0
retract_restart_extra_toolchange = 0
retract_speed = 35
seam_position = random
serial_port =
serial_speed = 115000
single_extruder_multi_material = 0
skirt_distance = 3
skirt_height = 2
skirts = 2
slowdown_below_layer_time = 15
small_perimeter_speed = 30
solid_infill_below_area = 0
solid_infill_every_layers = 0
solid_infill_extruder = 1
solid_infill_extrusion_width = 0
solid_infill_speed = 70
spiral_vase = 0
standby_temperature_delta = -5
start_filament_gcode = "M900 K50 ; Filament gcode"
start_gcode = M115 U3.1.0 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG1 Y-3.0 F1000.0 ; go outside print area\nG92 E0.0\nG1 X60.0 E9.0 F1000.0 ; intro line\nG1 X100.0 E12.5 F1000.0 ; intro line\nG92 E0.0
support_material = 0
support_material_angle = 0
support_material_buildplate_only = 0
support_material_contact_distance = 0.2
support_material_enforce_layers = 0
support_material_extruder = 0
support_material_extrusion_width = 0.35
support_material_interface_contact_loops = 0
support_material_interface_extruder = 0
support_material_interface_layers = 2
support_material_interface_spacing = 3
support_material_interface_speed = 100%
support_material_pattern = rectilinear
support_material_spacing = 4
support_material_speed = 60
support_material_synchronize_layers = 0
support_material_threshold = 1
support_material_with_sheath = 0
support_material_xy_spacing = 60%
temperature = 260
thin_walls = 0
threads = 56
toolchange_gcode =
top_infill_extrusion_width = 0.44
top_solid_infill_speed = 50
top_solid_layers = 8
travel_speed = 120
use_firmware_retraction = 0
use_relative_e_distances = 1
use_volumetric_e = 0
variable_layer_height = 0
wipe = 1
wipe_tower = 0
wipe_tower_per_color_wipe = 15
wipe_tower_width = 60
wipe_tower_x = 180
wipe_tower_y = 140
xy_size_compensation = 0
z_offset = 0
@aureumlocus
Copy link

This works perfectly with eSun Polycarbonate (ePC). I used a 0.6 Nozzle with these settings otherwise stock and was able to achieve great finish with excellent layer adhesion. I will try even greater layer widths as time permits.
Thank you for sharing this with the community.
Interestingly my first test print was riddled with imperfections and the printer was making the classic popping sounds as it printed. Filament fresh out of the sealed bag was water saturated. Overnight in the dryer (food dehydrator) fixed this issue. I understand that polycarbonate is very hygroscopic (water loving) and will dry it before very use in future.

@IxRIsor
Copy link

IxRIsor commented Jul 21, 2019

Did you use these settings on a stock printer or did you make mods to it?

@Ybansan
Copy link

Ybansan commented Dec 15, 2019

Incredible! this works with my printer, a Prusa MK3s, with a 0,4 mm nozzle. I did not changed anything on the settings. Just loaded the ini and print. I made several tests before and all warped. I was already thinking of building an enclosure. I could not find a solution and it is desperately that I tested this ini file. I do not understant what you put in it, but it works. The printing is very fast. Thank's a lot Metacollin.

@patritha
Copy link

patritha commented Jan 1, 2025

i get that this is absolutely ancient but its been the best thing ive found yet. if anyone finds this i would really like if i could get help with pc on the prusa mk4s. it almost works but when printing a calibration cube it fell off the bed near the end. ive just cleaned the bed and reapplied adhesive (visionminer nanopolymer), but it always warps off the bed and i can never get a successful print off it. please help!!

PXL_20250101_063856474

@metacollin
Copy link
Author

@patritha recommendations:

  1. Use the smooth PEI print surface, not the textured one. For PC the smooth one gives better adhesion.
  2. Print first layer at 100°C, then bump the bed temp up to 115-120°C after
  3. Ensure the print fan is off completely
  4. It's hard to tell from your photo, but it looks like you're printing with a large number of perimeters? Try printing with just one (or at most two) double-wide (0.8-0.9mm) perimeter. The more perimeters, the higher the warping force of PC.
  5. Use grid infill, avoid gyroid as the isotropic nature of the gyroid infill can increase the warping force by small amount.
  6. Make sure infill is 20% or less. It's hard to tell if you're printing with 100% infill or not, it kind of looks like it from the photo but it might just be the angle. But you can expect any 100% infill PC print to warp without a heated enclosure unfortunately.
  7. Use a brim. A big one, like 5-10mm wide. The point is to round out the corners on the first layer. A deburring tool can easily remove any evidence a brim was ever used on the print.
  8. Try a different filament. In my experience, the most warp-prone PC filaments are the ones that are uncolored, just clear transparency. These tend to be nothing but pure PC without any additives that would normally be added to improve the mechanical properties (also reducing thermal expansion and contraction, which in turn reduces warping). Try any of the white or black (and occasionally orange) colored PC filaments. Since they don't need to preserve transparency, they include those beneficial additives that transparent filaments do not.
  9. Better still, try PC-CF. It's stronger, more rigid, just as impact resistant, higher heat deflection temperature, and much easier to print (the CF makes it much less prone to warping while improving dimensional stability).
  10. For sharp corners, you may need to use a PC specific print bed adhesive. Material specific adhesives will always be better for a specific material than the general use ones. Personally, I use this stuff. The adhesion is strong enough that when I've had a print warp, it's not because it lifted off the print bed, but because it overpowered the magnets and lifted the steel sheet off the print bed, PC still fully adhered to the steel sheet. Which unfortunately is a much more difficult problem to solve, but I digress :p

@patritha
Copy link

patritha commented Jan 2, 2025

i tried everything that dosnt require me to buy stuff and it didnt even make it to layer 4. when i get some money im gonna try the adhesive you mentioned and get a new smooth plate bc the one i have rn is highkey ass even after a wash in the sink.

@patritha
Copy link

holy crap i got it working!!! just got some of the pc adhesive and overture pc blend and it prints perfectly!!

@metacollin
Copy link
Author

Glad to hear!

That adhesive is temperature dependent, it really only sticks when it's hot enough. So if you wait until your print has mostly cooled down before you remove it, it should release easily and none of the adhesive will come off with the print, it'll all stay on the plate.

So if you do this, you don't need to reapply every time. One application can work for many prints. So while that adhesive is a bit pricey, a little can go a very long way.

@Ultra980
Copy link

Ultra980 commented Mar 1, 2025

@patritha did you make any changes to this? i want to try it on my MK4 and idk if it will work ootb

@patritha
Copy link

patritha commented Mar 1, 2025

yes so i ended up not really using it, however i did use some of the ideas from it. for example i ended up modifying the prusa slicer generic petg profile to be suitible, i smashed the first layer in with the .9mm line width, etc. i will include my config but expect to modify it bc i do have an enclosure and so ive got a few settings that may not work without one.

# generated by PrusaSlicer 2.9.0 on 2025-03-01 at 22:48:44 UTC
arc_fitting = emit_center
autoemit_temperature_commands = 1
automatic_extrusion_widths = 0
automatic_infill_combination = 0
automatic_infill_combination_max_layer_height = 100%
avoid_crossing_curled_overhangs = 0
avoid_crossing_perimeters = 0
avoid_crossing_perimeters_max_detour = 0
bed_custom_model = 
bed_custom_texture = 
bed_shape = 0x0,250x0,250x210,0x210
bed_temperature = 120
before_layer_gcode = ;BEFORE_LAYER_CHANGE\nG92 E0.0\n;[layer_z]\nM201 X{interpolate_table(extruded_weight_total, (0,4000), (1400,2500), (20000,2500))} Y{interpolate_table(extruded_weight_total, (0,4000), (1400,2500), (20000,2500))}\n
between_objects_gcode = 
binary_gcode = 0
bottom_fill_pattern = monotonic
bottom_solid_layers = 3
bottom_solid_min_thickness = 0.5
bridge_acceleration = 1500
bridge_angle = 0
bridge_fan_speed = 50
bridge_flow_ratio = 1
bridge_speed = 50
brim_separation = 0.1
brim_type = outer_only
brim_width = 0
chamber_minimal_temperature = 0
chamber_temperature = 0
color_change_gcode = M600\nG1 E0.3 F1500 ; prime after color change
colorprint_heights = 
compatible_printers_condition_cummulative = "printer_notes=~/.*MK4S.*/ and nozzle_diameter[0]==0.4 and printer_notes!~/.*HF_NOZZLE.*/";"printer_model=~/(MK4S|MK4SMMU3|MK3.9S|MK3.9SMMU3)/ and nozzle_diameter[0]!=0.6 and nozzle_diameter[0]!=0.8 and ! nozzle_high_flow[0]"
complete_objects = 0
cooling = 1
cooling_tube_length = 5
cooling_tube_retraction = 91.5
default_acceleration = 4000
default_filament_profile = "Prusament PLA @MK4S"
default_print_profile = 0.20mm SPEED @MK4S 0.4
deretract_speed = 25
disable_fan_first_layers = 5
dont_support_bridges = 0
draft_shield = disabled
duplicate_distance = 6
elefant_foot_compensation = 0.2
enable_dynamic_fan_speeds = 1
enable_dynamic_overhang_speeds = 1
end_filament_gcode = "; Filament-specific end gcode"
end_gcode = {if layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+1, max_print_height)} F720 ; Move print head up{endif}\nM104 S0 ; turn off temperature\nM140 S0 ; turn off heatbed\nM107 ; turn off fan\nG1 X241 Y170 F3600 ; park\n{if layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+23, max_print_height)} F300 ; Move print head up{endif}\nG4 ; wait\nM572 S0 ; reset PA\nM593 X T2 F0 ; disable IS\nM593 Y T2 F0 ; disable IS\nM84 X Y E ; disable motors\n; max_layer_z = [max_layer_z]
ensure_vertical_shell_thickness = enabled
external_perimeter_acceleration = 4000
external_perimeter_extrusion_width = 0.45
external_perimeter_speed = 170
external_perimeters_first = 0
extra_loading_move = -2
extra_perimeters = 0
extra_perimeters_on_overhangs = 0
extruder_clearance_height = 14
extruder_clearance_radius = 45
extruder_colour = ""
extruder_offset = 0x0
extrusion_axis = E
extrusion_multiplier = 1
extrusion_width = 0.45
fan_always_on = 0
fan_below_layer_time = 5
filament_abrasive = 0
filament_colour = #FFFFFF
filament_cooling_final_speed = 2.5
filament_cooling_initial_speed = 5
filament_cooling_moves = 3
filament_cost = 27.82
filament_density = 1.27
filament_deretract_speed = nil
filament_diameter = 1.75
filament_infill_max_crossing_speed = 110
filament_infill_max_speed = 0
filament_load_time = 10.5
filament_loading_speed = 10
filament_loading_speed_start = 50
filament_max_volumetric_speed = 6
filament_minimal_purge_on_wipe_tower = 35
filament_multitool_ramming = 0
filament_multitool_ramming_flow = 10
filament_multitool_ramming_volume = 10
filament_notes = ""
filament_purge_multiplier = 100%
filament_ramming_parameters = "250 100 42.4194 42.4194 42.4194 42.4194 42.4194| 0.05 42.4387 0.45 42.4387 0.95 42.4387 1.45 42.4387 1.95 42.4387 2.45 42.4387 2.95 42.4387 3.45 42.4387 3.95 42.4387 4.45 42.4387 4.95 42.4387"
filament_retract_before_travel = nil
filament_retract_before_wipe = 20%
filament_retract_layer_change = nil
filament_retract_length = 0.8
filament_retract_length_toolchange = nil
filament_retract_lift = 0.15
filament_retract_lift_above = nil
filament_retract_lift_below = nil
filament_retract_restart_extra = nil
filament_retract_restart_extra_toolchange = nil
filament_retract_speed = nil
filament_seam_gap_distance = nil
filament_settings_id = "Generic PC @MK4S"
filament_shrinkage_compensation_xy = 0%
filament_shrinkage_compensation_z = 0%
filament_soluble = 0
filament_spool_weight = 0
filament_stamping_distance = 45
filament_stamping_loading_speed = 26.5
filament_toolchange_delay = 0
filament_travel_lift_before_obstacle = nil
filament_travel_max_lift = 1.5
filament_travel_ramping_lift = 1
filament_travel_slope = 1
filament_type = PC
filament_unload_time = 8.5
filament_unloading_speed = 100
filament_unloading_speed_start = 100
filament_vendor = Generic
filament_wipe = 1
fill_angle = 45
fill_density = 15%
fill_pattern = honeycomb
first_layer_acceleration = 500
first_layer_acceleration_over_raft = 0
first_layer_bed_temperature = 100
first_layer_extrusion_width = 0.9
first_layer_height = 0.2
first_layer_speed = 40
first_layer_speed_over_raft = 30
first_layer_temperature = 275
full_fan_speed_layer = 0
fuzzy_skin = none
fuzzy_skin_point_dist = 0.8
fuzzy_skin_thickness = 0.3
gap_fill_enabled = 1
gap_fill_speed = 120
gcode_comments = 0
gcode_flavor = marlin2
gcode_label_objects = firmware
gcode_resolution = 0.008
gcode_substitutions = 
high_current_on_filament_swap = 0
host_type = prusalink
idle_temperature = nil
infill_acceleration = 4000
infill_anchor = 2
infill_anchor_max = 12
infill_every_layers = 1
infill_extruder = 1
infill_extrusion_width = 0.45
infill_first = 0
infill_overlap = 15%
infill_speed = 200
inherits_cummulative = "0.20mm SPEED @MK4S 0.4";"Generic PETG @MK4S";"Original Prusa MK4S 0.4 nozzle"
interface_shells = 0
ironing = 0
ironing_flowrate = 15%
ironing_spacing = 0.1
ironing_speed = 15
ironing_type = top
layer_gcode = ;AFTER_LAYER_CHANGE\n;[layer_z]\n{if ! spiral_vase}M74 W[extruded_weight_total]{endif}\n
layer_height = 0.2
machine_limits_usage = emit_to_gcode
machine_max_acceleration_e = 2500,2500
machine_max_acceleration_extruding = 4000,2500
machine_max_acceleration_retracting = 1200,1200
machine_max_acceleration_travel = 4000,2500
machine_max_acceleration_x = 4000,2500
machine_max_acceleration_y = 4000,2500
machine_max_acceleration_z = 200,200
machine_max_feedrate_e = 100,100
machine_max_feedrate_x = 300,160
machine_max_feedrate_y = 300,160
machine_max_feedrate_z = 40,40
machine_max_jerk_e = 10,10
machine_max_jerk_x = 8,8
machine_max_jerk_y = 8,8
machine_max_jerk_z = 2,2
machine_min_extruding_rate = 0,0
machine_min_travel_rate = 0,0
max_fan_speed = 50
max_layer_height = 0.3
max_print_height = 220
max_print_speed = 200
max_volumetric_extrusion_rate_slope_negative = 0
max_volumetric_extrusion_rate_slope_positive = 0
max_volumetric_speed = 0
min_bead_width = 85%
min_fan_speed = 0
min_feature_size = 25%
min_layer_height = 0.07
min_print_speed = 5
min_skirt_length = 4
mmu_segmented_region_interlocking_depth = 0
mmu_segmented_region_max_width = 0
multimaterial_purging = 140
notes = 
nozzle_diameter = 0.4
nozzle_high_flow = 0
only_one_perimeter_first_layer = 0
only_retract_when_crossing_perimeters = 0
ooze_prevention = 0
output_filename_format = {input_filename_base}_0.4n_{layer_height}mm_{printing_filament_types}_{printer_model}_{print_time}.gcode
overhang_fan_speed_0 = 50
overhang_fan_speed_1 = 50
overhang_fan_speed_2 = 35
overhang_fan_speed_3 = 10
overhang_speed_0 = 15
overhang_speed_1 = 25
overhang_speed_2 = 50
overhang_speed_3 = 80%
overhangs = 1
parking_pos_retraction = 92
pause_print_gcode = M601
perimeter_acceleration = 4000
perimeter_extruder = 1
perimeter_extrusion_width = 0.45
perimeter_generator = arachne
perimeter_speed = 170
perimeters = 2
physical_printer_settings_id = 
post_process = 
prefer_clockwise_movements = 0
print_host = 
print_settings_id = 0.20mm POLYCARBONATE @MK4S 0.4
printer_model = MK4S
printer_notes = Don't remove the following keywords! These keywords are used in the "compatible printer" condition of the print and filament profiles to link the particular print and filament profiles to this printer profile.\nPRINTER_MODEL_MK4S\nPG\nNO_TEMPLATES
printer_settings_id = Original Prusa MK4S 0.4 nozzle POLYCARBONATE
printer_technology = FFF
printer_variant = 0.4
printer_vendor = 
printhost_apikey = 
printhost_cafile = 
raft_contact_distance = 0.15
raft_expansion = 1.5
raft_first_layer_density = 80%
raft_first_layer_expansion = 3.5
raft_layers = 0
remaining_times = 1
resolution = 0
retract_before_travel = 1.5
retract_before_wipe = 80%
retract_layer_change = 1
retract_length = 0.7
retract_length_toolchange = 0
retract_lift = 0.2
retract_lift_above = 0
retract_lift_below = 219
retract_restart_extra = 0
retract_restart_extra_toolchange = 0
retract_speed = 35
scarf_seam_entire_loop = 0
scarf_seam_length = 20
scarf_seam_max_segment_length = 1
scarf_seam_on_inner_perimeters = 0
scarf_seam_only_on_smooth = 1
scarf_seam_placement = nowhere
scarf_seam_start_height = 0%
seam_gap_distance = 15%
seam_position = aligned
silent_mode = 1
single_extruder_multi_material = 0
single_extruder_multi_material_priming = 0
skirt_distance = 6
skirt_height = 1
skirts = 0
slice_closing_radius = 0.049
slicing_mode = regular
slowdown_below_layer_time = 10
small_perimeter_speed = 170
solid_infill_acceleration = 4000
solid_infill_below_area = 0
solid_infill_every_layers = 0
solid_infill_extruder = 1
solid_infill_extrusion_width = 0.45
solid_infill_speed = 200
spiral_vase = 0
staggered_inner_seams = 0
standby_temperature_delta = -5
start_filament_gcode = "M900 K{if nozzle_diameter[filament_extruder_id]==0.4}0.07{elsif nozzle_diameter[filament_extruder_id]==0.25}0.12{elsif nozzle_diameter[filament_extruder_id]==0.3}0.09{elsif nozzle_diameter[filament_extruder_id]==0.35}0.08{elsif nozzle_diameter[filament_extruder_id]==0.6}0.04{elsif nozzle_diameter[filament_extruder_id]==0.5}0.05{elsif nozzle_diameter[filament_extruder_id]==0.8}0.02{else}0{endif} ; Filament gcode\n\n{if printer_notes=~/.*(MK4IS|XLIS|MK4S|MK3.9S|COREONE).*/}\nM572 S{if nozzle_diameter[filament_extruder_id]==0.4}0.053{elsif nozzle_diameter[filament_extruder_id]==0.5}0.042{elsif nozzle_diameter[filament_extruder_id]==0.6}0.032{elsif nozzle_diameter[filament_extruder_id]==0.8}0.018{elsif nozzle_diameter[filament_extruder_id]==0.25}0.18{elsif nozzle_diameter[filament_extruder_id]==0.3}0.1{else}0{endif} ; Filament gcode\n{endif}\n\nM142 S36 ; set heatbreak target temp"
start_gcode = M17 ; enable steppers\nM862.1 P[nozzle_diameter] A{(filament_abrasive[0] ? 1 : 0)} F{(nozzle_high_flow[0] ? 1 : 0)} ; nozzle check\nM862.3 P "[printer_model]" ; printer model check\nM862.5 P2 ; g-code level check\nM862.6 P"Input shaper" ; FW feature check\nM115 U6.1.2+7894\n\nM555 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4)} W{((min(print_bed_max[0], max(first_layer_print_min[0] + 32, first_layer_print_max[0])))) - ((min(print_bed_max[0], first_layer_print_min[0] + 32) - 32))} H{((first_layer_print_max[1])) - ((max(0, first_layer_print_min[1]) - 4))}\n\nG90 ; use absolute coordinates\nM83 ; extruder relative mode\n\nM140 S[first_layer_bed_temperature] ; set bed temp\nM104 S170 ; set extruder temp for bed leveling\nM109 S170 ; wait for temp\n\nM84 E ; turn off E motor\n\nG28 ; home all without mesh bed level\n\nG1 X{10 + 32} Y-4 Z5 F4800\n\nM302 S160 ; lower cold extrusion limit to 160C\n\n{if filament_type[initial_tool]=="FLEX"}\nG1 E-4 F2400 ; retraction\n{else}\nG1 E-2 F2400 ; retraction\n{endif}\n\nM84 E ; turn off E motor\n\nG29 P9 X10 Y-4 W32 H4\n\n{if first_layer_bed_temperature[initial_tool]<=60}M106 S100{endif}\n\nG0 Z40 F10000\n\nM190 S[first_layer_bed_temperature] ; wait for bed temp\n\nM107\n\n;\n; MBL\n;\nM84 E ; turn off E motor\nG29 P1 ; invalidate mbl & probe print area\nG29 P3.2 ; interpolate mbl probes\nG29 P3.13 ; extrapolate mbl outside probe area\nG29 A ; activate mbl\n\n; prepare for purge\nG0 X{first_layer_print_min[0]-13} Y{first_layer_print_min[1]-10} Z10 F6000.0 ; position 10mm above plate\nM104 S{first_layer_temperature[0]}\nM109 S{first_layer_temperature[0]}\n\nG92 E0\nM569 S0 E ; set spreadcycle mode for extruder\n\n;\n; Extrude purge line\n;\nG92 E0.0 ; reset extruder\nG1 X{first_layer_print_min[0]} Y{first_layer_print_min[1]-10} Z0.8 F600.0 ; position 10mm down from the lower left of the first layer\nG1 X{first_layer_print_min[0]+30} Y{first_layer_print_min[1]-10} E30 F360.0 ; extrude 30mm of filament in the x direction\nG1 X{first_layer_print_min[0]+30} Y{first_layer_print_min[1]-12} E4 F360.0 ; extrude 2mm of filament in the y direction\nG1 X{first_layer_print_min[0]} Y{first_layer_print_min[1]-12} E30 F360.0 ; extrude 30mm of filament in the -x direction\nG92 E0.0 ; reset extruder\nG1 E-0.5 F2100 ; small retraction\nG1 X{first_layer_print_min[0]-10} F6000.0 ; move an additional 10mm without extruding\nG92 E0.0 ; reset extruder\n\n\nG92 E0\nM221 S100 ; set flow to 100%
support_material = 0
support_material_angle = 0
support_material_auto = 1
support_material_bottom_contact_distance = 0
support_material_bottom_interface_layers = 0
support_material_buildplate_only = 0
support_material_closing_radius = 2
support_material_contact_distance = 0.2
support_material_enforce_layers = 0
support_material_extruder = 0
support_material_extrusion_width = 0.36
support_material_interface_contact_loops = 0
support_material_interface_extruder = 0
support_material_interface_layers = 5
support_material_interface_pattern = auto
support_material_interface_spacing = 0.2
support_material_interface_speed = 50%
support_material_pattern = rectilinear
support_material_spacing = 2
support_material_speed = 120
support_material_style = snug
support_material_synchronize_layers = 0
support_material_threshold = 40
support_material_with_sheath = 0
support_material_xy_spacing = 80%
support_tree_angle = 40
support_tree_angle_slow = 25
support_tree_branch_diameter = 2
support_tree_branch_diameter_angle = 5
support_tree_branch_diameter_double_wall = 3
support_tree_branch_distance = 1
support_tree_tip_diameter = 0.8
support_tree_top_rate = 30%
temperature = 275
template_custom_gcode = 
thick_bridges = 0
thin_walls = 0
thumbnails = 16x16/QOI, 313x173/QOI, 440x240/QOI, 480x240/QOI, 640x480/PNG
thumbnails_format = PNG
toolchange_gcode = 
top_fill_pattern = monotoniclines
top_infill_extrusion_width = 0.42
top_one_perimeter_type = none
top_solid_infill_acceleration = 1500
top_solid_infill_speed = 100
top_solid_layers = 5
top_solid_min_thickness = 0.7
travel_acceleration = 4000
travel_lift_before_obstacle = 0
travel_max_lift = 1.5
travel_ramping_lift = 1
travel_slope = 1
travel_speed = 300
travel_speed_z = 12
use_firmware_retraction = 0
use_relative_e_distances = 1
use_volumetric_e = 0
variable_layer_height = 1
wall_distribution_count = 1
wall_transition_angle = 10
wall_transition_filter_deviation = 25%
wall_transition_length = 100%
wipe = 0
wipe_into_infill = 0
wipe_into_objects = 0
wipe_tower = 1
wipe_tower_acceleration = 0
wipe_tower_bridging = 10
wipe_tower_brim_width = 2
wipe_tower_cone_angle = 25
wipe_tower_extra_flow = 250%
wipe_tower_extra_spacing = 110%
wipe_tower_extruder = 0
wipe_tower_no_sparse_layers = 0
wipe_tower_width = 60
wiping_volumes_matrix = 0
wiping_volumes_use_custom_matrix = 0
xy_size_compensation = 0
z_offset = -0.01

@Ultra980
Copy link

Ultra980 commented Mar 2, 2025

alright, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment