{
    "version": 2,
    "name": "Eryone ER20",
    "inherits": "fdmprinter",
    "metadata": {
        "visible": true,
        "author": "Eryone3d",
        "manufacturer": "Eryone",
        "file_formats": "text/x-gcode",
        "platform": "eryone_er20_plateform.stl",
        "has_machine_quality": true,
        "preferred_quality_type": "high",
        "machine_extruder_trains":
        {
            "0": "eryone_er20_extruder_0"
        }
    },

    "overrides": {
        "machine_name": { 
            "default_value": "Eryone ER20" 
        },
        "machine_heated_bed": { 
            "default_value": true 
        },
        "machine_width": { 
            "default_value": 250 
        },
        "machine_height": { 
            "default_value": 200 
        },
        "machine_depth": { 
            "default_value": 220 
        },
        "machine_center_is_zero": { 
            "default_value": false 
        },
        "machine_gcode_flavor": { 
            "default_value": "RepRap (Marlin/Sprinter)" 
        },
        "machine_head_with_fans_polygon": {
            "default_value": [
                [-10, -10],
                [-10, 10],
                [10, 10],
                [10, -10]
            ]
        },
        "gantry_height":{ "value": "0" },
        "machine_start_gcode": {
            "default_value": "G90 ; use absolute coordinates\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nG28 ; home all without mesh bed level\nG29 ; mesh bed leveling/ABL\nM104 S[first_layer_temperature] ; set extruder temp\nG92 E0.0\nG1 Y-2.0 X150 F2400G1 Z3 F720\nM109 S[first_layer_temperature] ; wait for extruder temp\nG1 X150 F1000\nG1 Z0.2 F720\nG1 X80.0 E8.0 F900\nG1 X20.0 E10.0 F700\nG92 E0.0\nM221 S95 ; set flow\n"
        },
        "machine_end_gcode": {
            "default_value": "M104 S0 ; turn off extruder\nM140 S0 ; turn off bed\nM84 ; disable motors\nM107\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 ;X-20 Y-20 F{speed_travel} ;move Z up a bit and retract filament even more\nG28 X0 ;Y0 ;move X/Y to min endstops, so the head is out of the way\nG1 Y180 F2000\nM84 ;steppers off\nG90\nM300 P300 S4000"
        },
        "material_print_temperature": {
            "value": 205
        },
        "material_print_temperature_layer_0": {
            "value": 215
        },
        "material_initial_print_temperature": {
            "value": 205
        },
        "material_final_print_temperature": {
            "value": 205
        },
        "acceleration_enabled": {
            "value": true
        },
        "acceleration_travel": {
            "value": 1800
        },
        "adhesion_type": { 
            "value": "'brim'"
        },
        "brim_width": {
            "value": 5
        },
        "cool_fan_full_at_height": {
            "value": 0.5
        },
        "cool_fan_speed": {
            "value": 100
        },
        "cool_fan_speed_0": {
            "value": 100
        },
        "infill_overlap": {
            "value": "25 if infill_sparse_density < 95 and infill_pattern != 'concentric' else 0",
            "maximum_value_warning": 100,
            "minimum_value_warning": -50
        },
        "infill_pattern": {
            "value": "'grid'"
        },
        "infill_sparse_density": {
            "value": 20
        },
        "initial_layer_line_width_factor": {
            "value": 105
        },
        "infill_before_walls": {
            "value": false
        },
        "material_bed_temperature": {
            "value": 60
        },
        "material_bed_temperature_layer_0": {
            "value": 65
        },
        "optimize_wall_printing_order": {
            "default_value": true 
        },
        "retract_at_layer_change": {
            "value": true
        },
        "retraction_amount": {
            "default_value": 4
        },
        "retraction_hop": {
            "value": 0.075
        },
        "retraction_hop_enabled": {
            "value": false
        },
        "retraction_hop_only_when_collides": {
            "value": true
        },
        "retraction_min_travel": {
            "value": 1.5
        },
        "retraction_speed": {
            "default_value": 85,
            "maximum_value_warning": 100
        },
        "retraction_retract_speed": {
            "maximum_value_warning": 130
        },
        "retraction_prime_speed": {
            "value": "math.ceil(retraction_speed * 0.4)",
            "maximum_value_warning": 130
        },
        "retraction_combing": {
            "value": "'noskin'"
        },
        "skin_overlap": {
            "value": 10
        },
        "skirt_brim_speed": {
            "value": 40
        },
        "skirt_gap": {
            "value": 5
        },
        "skirt_line_count": {
            "value": 3
        },
        "speed_infill": {
            "value": "speed_print"
        },
        "speed_topbottom": {
            "value": "math.ceil(speed_print * 20 / 50)"
        },
        "speed_travel": {
            "value": "150"
        },
        "speed_layer_0": {
            "value": "20"
        },
        "speed_wall": {
            "value": "speed_print"
        },
        "speed_wall_0": {
            "value": "math.ceil(speed_print * 30 / 50)"
        },
        "speed_wall_x": {
            "value": "speed_print"
        },
        "support_angle": {
            "value": 50
        },
        "support_enable": {
            "default_value": false
        },
        "support_interface_enable": {
            "value": true
        },
        "support_pattern": {
            "value": "'triangles'"
        },
        "support_roof_enable": {
            "value": true
        },
        "support_type": {
            "value": "'everywhere'"
        },
        "support_use_towers": {
            "value": false
        },
        "support_z_distance": {
            "value": 0.3
        },
        "support_xy_distance": {
            "value": 0.7
        },
        "support_xy_distance_overhang": {
            "value": 0.2
        },
        "smooth_spiralized_contours": {
            "value": false
        },
        "travel_retract_before_outer_wall": {
            "value": true
        },
        "wall_line_count": {
            "value": 3
          },
        "wall_thickness": {
            "value": "1.2"
        },
        "bottom_layers": {
            "value": "4"
        },
        "bottom_thickness":{
            "value": "layer_height * 4"
        },
        "top_thickness":{
            "value": "layer_height * 5"
        },
        "top_layers": {
            "value": "5"
        },
        "z_seam_type": {
            "value": "'shortest'"
        },
        "z_seam_corner": {
            "value": "'z_seam_corner_inner'"
        }
    }
}
