Re-wrote the load filament wizard as not a macro so we have more control over it

Added it to the setup steps

issue: MatterHackers/MCCentral#4429
Put in a loading filament as part of initial setup process
This commit is contained in:
Lars Brubaker 2018-11-02 16:14:37 -07:00
parent 6469cba676
commit 775f1982bd
68 changed files with 832 additions and 492 deletions

View file

@ -51,24 +51,6 @@
"ShowIfSet": "!sla_printer",
"DefaultValue": "80"
},
{
"SlicerConfigName": "load_filament_length_over_six",
"PresentationName": "Load Filament Length",
"HelpText": "Should be 100%. Not shown to user.",
"DataEditType": "DOUBLE_OR_PERCENT",
"Units": "%",
"ShowIfSet": "!sla_printer",
"DefaultValue": "100%"
},
{
"SlicerConfigName": "load_filament_time",
"PresentationName": "Load Filament Time",
"HelpText": "The time it will take to load the filament",
"DataEditType": "POSITIVE_DOUBLE",
"Units": "s",
"ShowIfSet": "!sla_printer",
"DefaultValue": "5"
},
{
"SlicerConfigName": "unload_filament_time",
"PresentationName": "Unload Filament Time",
@ -786,6 +768,15 @@
"DefaultValue": "0",
"RebuildGCodeOnChange": false
},
{
"SlicerConfigName": "filament_has_been_loaded",
"PresentationName": "Filament Has Been Loaded",
"HelpText": "Flag for the state of our filament loaded.",
"DataEditType": "CHECK_BOX",
"ShowIfSet": "!sla_printer",
"DefaultValue": "0",
"RebuildGCodeOnChange": false
},
{
"SlicerConfigName": "print_leveling_probe_start",
"PresentationName": "Start Height",

View file

@ -1,36 +0,0 @@
; host.choose_material(title:"Choose the material that you are loading.")
M106 S0 ; turn off the fan
M104 S[temperature] ; start heating up the extruder
; host.show_message(title:"Trim Filament", markdown:"[trim_filament_markdown]", wait_ok:"true")
M302 S1 ; Allow extrusion at any temperature. S0 only works on Marlin S1 works on repetier and marlin
G91 ; Relative positioning
; host.show_message(title:"Insert Filament", repeat_gcode:"G1 E.2 F80", expire:"300", markdown:"[insert_filament_markdown]")
G90 ; Absolute positioning
; host.show_message(title:"Loading Filament...", count_down:"[load_filament_time]")
G92 E0 ; reset the extruder position to 0
G91 ; Relative positioning
G1 E[load_filament_length_over_six] F[load_filament_speed] ; extrude the filament (pulse was 598)
G1 E[load_filament_length_over_six] F[load_filament_speed] ; extrude the filament
G1 E[load_filament_length_over_six] F[load_filament_speed] ; extrude the filament
G1 E[load_filament_length_over_six] F[load_filament_speed] ; extrude the filament
G1 E[load_filament_length_over_six] F[load_filament_speed] ; extrude the filament
G1 E[load_filament_length_over_six] F[load_filament_speed] ; extrude the filament
G4 S1 ; wait for move to finish
M302 S150 ; Set cold extrude temp back to reasonable
; host.show_message(title:"Waiting for extruder to heat to [temperature].")
G4 S1 ; wait message to display
M109 S[temperature] ; heat up the extruder
; extrude slowly so that we can prime the extruder
; host.show_message(title:"Wait For Running Clean", repeat_gcode:"G1 E0.35 F140", expire:"90", markdown:"[running_clean_markdown]")
G4 S1 ; wait for move to finish
G90 ; Absolute positioning
G92 E0 ; reset the extruder position to 0
; turn the extruder temperature off if not printing, else leave it at new load temp.
; host.done_load_unload()