{
	"type": "machine",
	"setting_id": "GM001",
	"name": "Qidi X-Plus 4 0.4 nozzle",
	"from": "system",
	"instantiation": "true",
	"inherits": "fdm_qidi_x3_common",
	"printer_model": "Qidi X-Plus 4",
	"gcode_flavor": "klipper",
	"default_print_profile": "0.20mm Standard @Qidi XPlus4",
	"nozzle_diameter": [
		"0.4"
	],
	"printable_area": [
		"0x0",
		"305x0",
		"305x305",
		"0x305"
	],
    "bed_exclude_area": [
        "0x305",
        "0x302",
        "35x302",
        "35x305",
        "305x305",
        "305x305",
        "305x305",
        "305x20",
		"293x20",
		"293x0",
		"305x0",
		"305x20",
		"305x305"
    ],
	"printable_height": "280",
	"nozzle_type": "hardened_steel",
	"max_layer_height": [
		"0.28"
	],
	"min_layer_height": [
		"0.08"
	],
	"printer_settings_id": "Qidi",
	"retraction_minimum_travel": [
		"1"
	],
	"retraction_length": [
		"0.8"
	],
	"retract_length_toolchange": [
		"2"
	],
	"deretraction_speed": [
		"0"
	],
	"retract_before_wipe": [
        "0%"
    ],
    "wipe_distance": [
        "2"],
	"single_extruder_multi_material": "1",
	"change_filament_gcode": "",
	"machine_pause_gcode": "M0",
    "thumbnails": [
        "272x272",
        "96x96"
    ],
	"machine_max_jerk_e": [
        "4"
    ],
    "machine_max_jerk_x": [
        "9"
    ],
    "machine_max_jerk_y": [
        "9"
    ],
    "machine_max_jerk_z": [
        "4"
    ],
	"machine_max_acceleration_retracting": [
        "20000"
    ],
	"machine_max_speed_z": [
        "20"
    ],
	"retract_lift_below":["279"],
	"extruder_clearance_radius": "72",
    "extruder_clearance_height_to_rod": "32",
    "extruder_clearance_height_to_lid": "135",
	"layer_change_gcode": "G92 E0\nSET_PRINT_STATS_INFO CURRENT_LAYER={layer_num + 1}",
	"machine_end_gcode": "M141 S0\nM104 S0\nM140 S0\nG1 E-3 F1800\nG0 Z{min(max_print_height, max_layer_z + 3)} F600\nG0 X0 Y0 F12000\n{if max_layer_z < max_print_height / 2}G1 Z{max_print_height / 2 + 10} F600{else}G1 Z{min(max_print_height, max_layer_z + 3)}{endif}",
    "time_lapse_gcode": "{if timelapse_type == 1} ; timelapse with wipe tower\nG92 E0\nG1 E-[retraction_length] F1800\nG2 Z{layer_z + 0.4} I0.86 J0.86 P1 F20000 ; spiral lift a little\nG1 Y304 F20000\nG1 X95 F20000\nG92 E0\nM400\nTIMELAPSE_TAKE_FRAME\nG1 Y324 F5000\nG1 E[retraction_length] F300\nG1 X65 F5000\nG1 Y290 F20000\n{elsif timelapse_type == 0} ; timelapse without wipe tower\nTIMELAPSE_TAKE_FRAME\n{endif}",
    "machine_start_gcode": "PRINT_START BED=[bed_temperature_initial_layer_single] HOTEND=[nozzle_temperature_initial_layer] CHAMBER=[chamber_temperature]\nSET_PRINT_STATS_INFO TOTAL_LAYER=[total_layer_count]\nM83\nM140 S[bed_temperature_initial_layer_single]\nM104 S[nozzle_temperature_initial_layer]\nM141 S[chamber_temperature]\nG4 P3000\nG0 X{max((min(print_bed_max[0] - 12, first_layer_print_min[0] + 80) - 85), 0)} Y{max((min(print_bed_max[1] - 3, first_layer_print_min[1] + 80) - 85), 0)} Z5 F6000\nG0 Z[initial_layer_print_height] F600\nG1 E3 F1800\nG1 X{(min(print_bed_max[0] - 12, first_layer_print_min[0] + 80))} E{85 * 0.5 * initial_layer_print_height * nozzle_diameter[0]} F3000\nG1 Y{max((min(print_bed_max[1] - 3, first_layer_print_min[1] + 80) - 85), 0) + 2} E{2 * 0.5 * initial_layer_print_height * nozzle_diameter[0]} F3000\nG1 X{max((min(print_bed_max[0] - 12, first_layer_print_min[0] + 80) - 85), 0)} E{85 * 0.5 * initial_layer_print_height * nozzle_diameter[0]} F3000\nG1 Y{max((min(print_bed_max[1] - 3, first_layer_print_min[1] + 80) - 85), 0) + 85} E{83 * 0.5 * initial_layer_print_height * nozzle_diameter[0]} F3000\nG1 X{max((min(print_bed_max[0] - 12, first_layer_print_min[0] + 80) - 85), 0) + 2} E{2 * 0.5 * initial_layer_print_height * nozzle_diameter[0]} F3000\nG1 Y{max((min(print_bed_max[1] - 3, first_layer_print_min[1] + 80) - 85), 0) + 3} E{82 * 0.5 * initial_layer_print_height * nozzle_diameter[0]} F3000\nG1 X{max((min(print_bed_max[0] - 12, first_layer_print_min[0] + 80) - 85), 0) + 3} Z0\nG1 X{max((min(print_bed_max[0] - 12, first_layer_print_min[0] + 80) - 85), 0) + 6}\nG1 Z1 F600\nSET_PRINT_STATS_INFO CURRENT_LAYER=1\n",
    "thumbnails_format": "PNG",
	"default_filament_profile": [
		"Qidi Generic PLA @Qidi X-Plus 4 0.4 nozzle"
	]
}