Made the unloading wizard code rather than macro

Took out the macro processing stream
This commit is contained in:
Lars Brubaker 2018-11-05 11:08:21 -08:00
parent c13b757c0c
commit 734bd88c86
14 changed files with 285 additions and 622 deletions

View file

@ -69,15 +69,6 @@
"ShowIfSet": "!sla_printer",
"DefaultValue": "70"
},
{
"SlicerConfigName": "unload_filament_length_over_six",
"PresentationName": "Unload Filament Length",
"HelpText": "Should be 100%. Not shown to user.",
"DataEditType": "DOUBLE_OR_PERCENT",
"Units": "%",
"ShowIfSet": "!sla_printer",
"DefaultValue": "100%"
},
{
"SlicerConfigName": "trim_filament_markdown",
"PresentationName": "Trim Filament Page",

View file

@ -1,26 +0,0 @@
; host.choose_material(title:"Confirm the material you are unloading.")
; host.show_message(title:"Waiting for extruder to heat to [temperature], before unloading.")
M106 S0 ; turn off the fan
G4 S1 ; wait message to display
M109 S[temperature] ; heat up the extruder
M302 S1 ; Allow extrusion at any temperature. S0 only works on Marlin S1 works on repetier and marlin
; host.show_message(title:"Unloading filament..." count_down:"[unload_filament_time]")
G92 E0 ; reset the extruder position to 0
G91 ; Relative positioning
G1 E15 F600 ; push some out first
G1 E-[unload_filament_length_over_six] F[load_filament_speed] ; unload the filament
G1 E-[unload_filament_length_over_six] F[load_filament_speed] ; unload the filament
G1 E-[unload_filament_length_over_six] F[load_filament_speed] ; unload the filament
G1 E-[unload_filament_length_over_six] F[load_filament_speed] ; unload the filament
G1 E-[unload_filament_length_over_six] F[load_filament_speed] ; unload the filament
G1 E-[unload_filament_length_over_six] F[load_filament_speed] ; unload the filament
G4 S1 ; wait for move to finish
G90 ; Absolute positioning
G92 E0 ; reset the extruder position to 0
M302 S150 ; Set cold extrude temp back to reasonable
; turn the extruder temperature off if not printing, else leave it at new load temp.
; host.done_load_unload()