ENH: add filament category

Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I0f31a376527bc540d27c49908712d08bdba3d719
(cherry picked from commit 3f2f704676f0a8a6cf1e43e8b32fd999bcc59d31)
This commit is contained in:
qing.zhang
2025-01-23 10:58:48 +08:00
committed by Noisyfox
parent f729554858
commit b12b9c0fdd
23 changed files with 68 additions and 2 deletions

View File

@@ -87,6 +87,9 @@
"textured_plate_temp_initial_layer": [
"100"
],
"filament_category": [
"800"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >80)||(bed_temperature_initial_layer[current_extruder] >80)}M106 P3 S255\n{elsif (bed_temperature[current_extruder] >60)||(bed_temperature_initial_layer[current_extruder] >60)}M106 P3 S180\n{endif}\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
]

View File

@@ -32,5 +32,8 @@
],
"slow_down_layer_time": [
"6"
],
"filament_category": [
"703"
]
}

View File

@@ -30,6 +30,9 @@
"slow_down_layer_time": [
"8"
],
"filament_category": [
"702"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >55)||(bed_temperature_initial_layer[current_extruder] >55)}M106 P3 S200\n{elsif(bed_temperature[current_extruder] >50)||(bed_temperature_initial_layer[current_extruder] >50)}M106 P3 S150\n{elsif(bed_temperature[current_extruder] >45)||(bed_temperature_initial_layer[current_extruder] >45)}M106 P3 S50\n{endif}\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
]

View File

@@ -56,5 +56,8 @@
],
"textured_plate_temp_initial_layer": [
"60"
],
"filament_category": [
"705"
]
}

View File

@@ -35,5 +35,8 @@
],
"slow_down_layer_time": [
"6"
],
"filament_category": [
"701"
]
}

View File

@@ -30,6 +30,9 @@
"slow_down_layer_time": [
"8"
],
"filament_category": [
"700"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >55)||(bed_temperature_initial_layer[current_extruder] >55)}M106 P3 S200\n{elsif(bed_temperature[current_extruder] >50)||(bed_temperature_initial_layer[current_extruder] >50)}M106 P3 S150\n{elsif(bed_temperature[current_extruder] >45)||(bed_temperature_initial_layer[current_extruder] >45)}M106 P3 S50\n{endif}\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
]

View File

@@ -38,5 +38,8 @@
],
"temperature_vitrification": [
"90"
],
"filament_category": [
"706"
]
}

View File

@@ -4,5 +4,8 @@
"inherits": "fdm_filament_bvoh",
"from": "system",
"filament_id": "GFS97",
"instantiation": "false"
"instantiation": "false",
"filament_category": [
"797"
]
}

View File

@@ -29,6 +29,9 @@
"temperature_vitrification": [
"70"
],
"filament_category": [
"901"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >55)||(bed_temperature_initial_layer[current_extruder] >55)}M106 P3 S200\n{elsif(bed_temperature[current_extruder] >50)||(bed_temperature_initial_layer[current_extruder] >50)}M106 P3 S150\n{elsif(bed_temperature[current_extruder] >45)||(bed_temperature_initial_layer[current_extruder] >45)}M106 P3 S50\n{endif}\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
]

View File

@@ -32,6 +32,9 @@
"temperature_vitrification": [
"70"
],
"filament_category": [
"901"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >55)||(bed_temperature_initial_layer[current_extruder] >55)}M106 P3 S200\n{elsif(bed_temperature[current_extruder] >50)||(bed_temperature_initial_layer[current_extruder] >50)}M106 P3 S150\n{elsif(bed_temperature[current_extruder] >45)||(bed_temperature_initial_layer[current_extruder] >45)}M106 P3 S50\n{endif}\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
]

View File

@@ -83,6 +83,9 @@
"textured_plate_temp_initial_layer": [
"70"
],
"filament_category": [
"800"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >80)||(bed_temperature_initial_layer[current_extruder] >80)}M106 P3 S255\n{elsif (bed_temperature[current_extruder] >60)||(bed_temperature_initial_layer[current_extruder] >60)}M106 P3 S180\n{endif}\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
]

View File

@@ -85,6 +85,9 @@
"textured_plate_temp_initial_layer": [
"90"
],
"filament_category": [
"200"
],
"filament_end_gcode": [
"; filament end gcode \n\n"
]

View File

@@ -85,6 +85,9 @@
"textured_plate_temp_initial_layer": [
"90"
],
"filament_category": [
"200"
],
"filament_end_gcode": [
"; filament end gcode \n\n"
]

View File

@@ -82,6 +82,9 @@
"textured_plate_temp_initial_layer": [
"90"
],
"filament_category": [
"798"
],
"filament_end_gcode": [
"; filament end gcode \n\n"
]

View File

@@ -85,6 +85,9 @@
"textured_plate_temp_initial_layer": [
"100"
],
"filament_category": [
"400"
],
"filament_end_gcode": [
"; filament end gcode \n\n"
]

View File

@@ -85,6 +85,9 @@
"textured_plate_temp_initial_layer": [
"110"
],
"filament_category": [
"500"
],
"filament_end_gcode": [
"; filament end gcode \n\n"
]

View File

@@ -64,6 +64,9 @@
"textured_plate_temp_initial_layer": [
"80"
],
"filament_category": [
"300"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >45)||(bed_temperature_initial_layer[current_extruder] >45)}M106 P3 S180\n{elsif (bed_temperature[current_extruder] >50)||(bed_temperature_initial_layer[current_extruder] >50)}M106 P3 S255\n{endif};Prevent PLA from jamming\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
],

View File

@@ -76,6 +76,9 @@
"textured_plate_temp_initial_layer": [
"55"
],
"filament_category": [
"100"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >45)||(bed_temperature_initial_layer[current_extruder] >45)}M106 P3 S255\n{elsif(bed_temperature[current_extruder] >35)||(bed_temperature_initial_layer[current_extruder] >35)}M106 P3 S180\n{endif}\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
],

View File

@@ -85,6 +85,9 @@
"textured_plate_temp_initial_layer": [
"55"
],
"filament_category": [
"902"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >45)||(bed_temperature_initial_layer[current_extruder] >45)}M106 P3 S255\n{elsif(bed_temperature[current_extruder] >35)||(bed_temperature_initial_layer[current_extruder] >35)}M106 P3 S180\n{endif}\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
],

View File

@@ -82,6 +82,9 @@
"textured_plate_temp_initial_layer": [
"110"
],
"filament_category": [
"801"
],
"filament_end_gcode": [
"; filament end gcode \n\n"
]

View File

@@ -85,6 +85,9 @@
"textured_plate_temp_initial_layer": [
"55"
],
"filament_category": [
"704"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >45)||(bed_temperature_initial_layer[current_extruder] >45)}M106 P3 S255\n{elsif(bed_temperature[current_extruder] >35)||(bed_temperature_initial_layer[current_extruder] >35)}M106 P3 S180\n{endif}\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
],

View File

@@ -79,6 +79,9 @@
"textured_plate_temp_initial_layer": [
"35"
],
"filament_category": [
"600"
],
"filament_start_gcode": [
"; filament start gcode\n{if (bed_temperature[current_extruder] >35)||(bed_temperature_initial_layer[current_extruder] >35)}M106 P3 S255\n{elsif(bed_temperature[current_extruder] >30)||(bed_temperature_initial_layer[current_extruder] >30)}M106 P3 S180\n{endif}\n\n{if activate_air_filtration[current_extruder] && support_air_filtration}\nM106 P3 S{during_print_exhaust_fan_speed_num[current_extruder]} \n{endif}"
],

View File

@@ -2285,7 +2285,7 @@ void PrintConfigDef::init_fff_params()
def->label = L("Category");
def->tooltip = L("Filament category");
def->min = 0;
def->mode = comAdvanced;
def->mode = comDevelop;
def->set_default_value(new ConfigOptionInts{0});
def = this->add("filament_loading_speed", coFloats);