forked from CreatBot/CreatBotKlipperScreen
Documentation updates close #821
This commit is contained in:
@@ -7,51 +7,34 @@ Load and Unload Filament macros are used in the Extrude-Panel if it is available
|
||||
The selected speed is transferred to this macro.
|
||||
The following example macros show how this can be used in the macro.
|
||||
|
||||
```py
|
||||
[gcode_macro LOAD_FILAMENT]
|
||||
gcode:
|
||||
{% set speed = params.SPEED|default(500) %}
|
||||
G91
|
||||
G1 E50 F{speed}
|
||||
G1 E50 F{speed}
|
||||
G92
|
||||
```
|
||||
```py
|
||||
[gcode_macro UNLOAD_FILAMENT]
|
||||
gcode:
|
||||
{% set speed = params.SPEED|default(500) %}
|
||||
G91
|
||||
G1 E-50 F{speed}
|
||||
G1 E-50 F{speed}
|
||||
G92
|
||||
```
|
||||
|
||||
this could be interesting to tweak the purge speed, this would be one Example Macro from alfrix:
|
||||
|
||||
```py
|
||||
```jinja
|
||||
[gcode_macro LOAD_FILAMENT]
|
||||
gcode:
|
||||
{% set speed = params.SPEED|default(300) %}
|
||||
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
|
||||
SAVE_GCODE_STATE NAME=load_state
|
||||
M300 # beep
|
||||
G91
|
||||
G92 E0
|
||||
G1 E350 F{max_velocity}
|
||||
G1 E25 F{speed} #purge
|
||||
G1 E350 F{max_velocity} # fast-load
|
||||
G1 E25 F{speed} # purge
|
||||
M300
|
||||
M300
|
||||
RESTORE_GCODE_STATE NAME=load_state
|
||||
```
|
||||
|
||||
```py
|
||||
```jinja
|
||||
[gcode_macro UNLOAD_FILAMENT]
|
||||
gcode:
|
||||
{% set speed = params.SPEED|default(300) %}
|
||||
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
|
||||
SAVE_GCODE_STATE NAME=unload_state
|
||||
G91
|
||||
M300 # beep
|
||||
G92 E0
|
||||
G1 E25 F{speed} # purge
|
||||
G1 E-420 F{max_velocity}
|
||||
G1 E-420 F{max_velocity} # fast-unload
|
||||
M300
|
||||
M300
|
||||
RESTORE_GCODE_STATE NAME=unload_state
|
||||
```
|
||||
|
Reference in New Issue
Block a user