# generated by PrusaSlicer 2.7.4+linux-x64-GTK3 on 2024-07-20 at 13:54:43 UTC autoemit_temperature_commands = 1 bed_custom_model = bed_custom_texture = bed_shape = 0x0,250x0,250x210,0x210 before_layer_gcode = ;BEFORE_LAYER_CHANGE\nG92 E0.0\n;[layer_z]\n\n between_objects_gcode = binary_gcode = 1 color_change_gcode = M600\nG1 E0.3 F1500 ; prime after color change cooling_tube_length = 5 cooling_tube_retraction = 91.5 default_filament_profile = "Prusament PLA @PG" default_print_profile = 0.20mm QUALITY @MK4 0.4 deretract_speed = 25 end_gcode = M17 ; enable steppers\\nM862.3 P "[printer_model]" ; printer model check\\nM862.1 P[nozzle_diameter] ; nozzle diameter check\\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\\n{if filament_type[initial_tool]=="PC" or filament_type[initial_tool]=="NYLON"}\\nM104 S{first_layer_temperature[initial_tool]-25} ; set extruder temp for bed leveling\\nM109 R{first_layer_temperature[initial_tool]-25} ; wait for temp\\n{elsif filament_type[initial_tool]=="FLEX"}\\nM104 S210 ; set extruder temp for bed leveling\\nM109 R210 ; wait for temp\\n{else}\\nM104 S170 ; set extruder temp for bed leveling\\nM109 R170 ; wait for temp\\n{endif}\\n\\nM84 E ; turn off E motor\\n\\nG28 ; home all without mesh bed level\\n\\n; probe to clean the nozzle\\nG1 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)+32} Y{((first_layer_print_min[1]) - 4)} Z{5} 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 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4)} W{32} H{4}\\n\\n{if first_layer_bed_temperature[initial_tool]<=60}M106 S100{endif}\\n\\nG0 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4)} Z{40} 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 ; mesh bed leveling\\nM104 S[first_layer_temperature] ; set extruder temp\\nG0 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4) + 4 - 4.5} Z{30} F4800\\n\\nM109 S[first_layer_temperature] ; wait for extruder temp\\nG1 Z0.2 F720\\nG92 E0\\n\\nM569 S0 E ; set spreadcycle mode for extruder\\n\\n;\\n; Extrude purge line\\n;\\n{if filament_type[initial_tool]=="FLEX"}\\nG1 E4 F2400 ; deretraction\\n{else}\\nG1 E2 F2400 ; deretraction\\n{endif}\\n\\n; move right\\nG1 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32) + 32} E{32 * 0.15} F1000\\n; move down\\nG1 Y{(max(0, first_layer_print_min[1]) - 4) + 4 - 4.5 - 1.5} E{1.5 * 0.15} F1000\\n; move left\\nG1 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} E{32 * 0.30} F800\\n\\nG92 E0\\nM221 S100 ; set flow to 100% extra_loading_move = -2 extruder_colour = "" extruder_offset = 0x0 gcode_flavor = marlin2 high_current_on_filament_swap = 0 host_type = prusalink inherits = Original Prusa MK4 0.4 nozzle layer_gcode = ;AFTER_LAYER_CHANGE\n;[layer_z] machine_limits_usage = emit_to_gcode machine_max_acceleration_e = 2500,2500 machine_max_acceleration_extruding = 2000,2000 machine_max_acceleration_retracting = 1200,1200 machine_max_acceleration_travel = 2000,2000 machine_max_acceleration_x = 2500,2500 machine_max_acceleration_y = 2500,2500 machine_max_acceleration_z = 200,200 machine_max_feedrate_e = 100,100 machine_max_feedrate_x = 200,160 machine_max_feedrate_y = 200,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 machine_min_travel_rate = 0 max_layer_height = 0.3 max_print_height = 220 min_layer_height = 0.07 multimaterial_purging = 140 nozzle_diameter = 0.4 parking_pos_retraction = 92 pause_print_gcode = M601 print_host = printer_model = MK4 printer_notes = Do not remove the keywords below.\nPRINTER_VENDOR_PRUSA3D\nPRINTER_MODEL_MK4\nPG printer_settings_id = printer_technology = FFF printer_variant = 0.4 printer_vendor = printhost_apikey = printhost_cafile = remaining_times = 1 retract_before_travel = 1.5 retract_before_wipe = 80% retract_layer_change = 1 retract_length = 0.8 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 silent_mode = 1 single_extruder_multi_material = 0 start_gcode = M17 ; enable steppers\nM862.3 P "[printer_model]" ; printer model check\nM862.1 P[nozzle_diameter] ; nozzle diameter check\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\n{if filament_type[initial_tool]=="PC" or filament_type[initial_tool]=="NYLON"}\nM104 S{first_layer_temperature[initial_tool]-25} ; set extruder temp for bed leveling\nM109 R{first_layer_temperature[initial_tool]-25} ; wait for temp\n{elsif filament_type[initial_tool]=="FLEX"}\nM104 S210 ; set extruder temp for bed leveling\nM109 R210 ; wait for temp\n{else}\nM104 S170 ; set extruder temp for bed leveling\nM109 R170 ; wait for temp\n{endif}\n\nM84 E ; turn off E motor\n\nG28 ; home all without mesh bed level\n\n; probe to clean the nozzle\nG1 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)+32} Y{((first_layer_print_min[1]) - 4)} Z{5} 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 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4)} W{32} H{4}\n\n{if first_layer_bed_temperature[initial_tool]<=60}M106 S100{endif}\n\nG0 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4)} Z{40} 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 ; mesh bed leveling\nM104 S[first_layer_temperature] ; set extruder temp\nG0 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4) + 4 - 4.5} Z{30} F4800\n\nM109 S[first_layer_temperature] ; wait for extruder temp\nG1 Z0.2 F720\nG92 E0\n\nM569 S0 E ; set spreadcycle mode for extruder\n\n;\n; Extrude purge line\n;\n{if filament_type[initial_tool]=="FLEX"}\nG1 E4 F2400 ; deretraction\n{else}\nG1 E2 F2400 ; deretraction\n{endif}\n\n; move right\nG1 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32) + 32} E{32 * 0.15} F1000\n; move down\nG1 Y{(max(0, first_layer_print_min[1]) - 4) + 4 - 4.5 - 1.5} E{1.5 * 0.15} F1000\n; move left\nG1 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} E{32 * 0.30} F800\n\nG92 E0\nM221 S100 ; set flow to 100% template_custom_gcode = thumbnails = 16x16/QOI, 313x173/QOI, 440x240/QOI, 480x240/QOI, 640x480/PNG thumbnails_format = PNG toolchange_gcode = travel_lift_before_obstacle = 0 travel_max_lift = 1.5 travel_ramping_lift = 1 travel_slope = 1 use_firmware_retraction = 0 use_relative_e_distances = 1 use_volumetric_e = 0 variable_layer_height = 1 wipe = 1 z_offset = 0