Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions macro-examples-1/Coffee_Load_unload filament
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Coffee Load_unload filament


{% hint style="info" %}
This is what I use for Load and unload filament, tested and works with octoprint
{% endhint %}

```text
######################################################################
# load / unload filament
######################################################################


# Macro to Load Filament
[gcode_macro load_filament]
########### Change this ############
default_parameter_EXTRUDER: 200
default_parameter_X: 410
default_parameter_Y: 40
default_parameter_Z: 10
default_parameter_E: 160
########### Gcode ############
gcode:
G90
G0 X{X} Y{Y} #move to area where can easily load filament
M109 S{EXTRUDER} #set hotend temperature and wait
M83 #relative positioning on extruder
G0 E{E} F400 #prime extruder
G92 E0

# Macro to Unload Filament
[gcode_macro unload_filament]
########### Change this ############
default_parameter_EXTRUDER: 200
default_parameter_X: 410
default_parameter_Y: 40
default_parameter_Z: 10
default_parameter_E: 160
########### Gcode ############
gcode:
G0 X{X} Y{Y} #move to area where can easily load filament
M109 S{EXTRUDER} #set hotend temperature and wait
M83 #relative positioning on extruder
G0 E15 F400 #extrude filament to get better blob on end
G0 E{E} F1000 #retract additional filament to move out of melt zone
G92 E0
```
44 changes: 44 additions & 0 deletions macro-examples-1/Coffee_M600
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Coffee M600


{% hint style="info" %}
This is what I use for M600, tested and works with octoprint
{% endhint %}

```text
######################################################################
# Filament Change
######################################################################


# M600: Filament Change. This macro will pause the printer, move the
# tool to the change position, and retract the filament 130mm. Adjust
# the retraction settings for your own extruder. After filament has
# been changed, the print can be resumed from its previous position
# with the "RESUME" gcode.

[gcode_macro M600]
########### Change this ############
default_parameter_X: 410 #park position
default_parameter_Y: 40 #park position
default_parameter_Z: 10 #park position
default_parameter_E: -130 #retract dist
########### Gcode ############
gcode:
SAVE_GCODE_STATE NAME=M600_state
PAUSE
G91
G1 E-5 F4000
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000 ;park position
G0 E10 F500 ;extrude filament to get better blob on end
G0 E{E} F600 ;retract additional filament to move out of melt zone
G92 E0

# Use this command resume during a mid print filament swap (DONT USE OCTO/MAINSAIL/DWC RESUME)
[gcode_macro SWAP_RESUME]
gcode:
RESTORE_GCODE_STATE NAME=M600_state
resume
```
43 changes: 43 additions & 0 deletions macro-examples-1/Coffee_babystep
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Coffee Babystep


{% hint style="info" %}
This is what I use for babystepping, tested and works with octoprint
{% endhint %}

```text
######################################################################
# babystep
######################################################################


# Macro to Babystep Up 0.01mm
[gcode_macro babystep_up3]
gcode:
SET_GCODE_OFFSET Z_ADJUST=0.01 MOVE=1

# Macro to Babystep Down 0.01mm
[gcode_macro babystep_down3]
gcode:
SET_GCODE_OFFSET Z_ADJUST=-0.01 MOVE=1

# Macro to Babystep Up 0.02mm
[gcode_macro babystep_up]
gcode:
SET_GCODE_OFFSET Z_ADJUST=0.02 MOVE=1

# Macro to Babystep Down 0.02mm
[gcode_macro babystep_down]
gcode:
SET_GCODE_OFFSET Z_ADJUST=-0.02 MOVE=1

# Macro to Babystep Up 0.05mm
[gcode_macro babystep_up2]
gcode:
SET_GCODE_OFFSET Z_ADJUST=0.05 MOVE=1

# Macro to Babystep Down 0.05mm
[gcode_macro babystep_down2]
gcode:
SET_GCODE_OFFSET Z_ADJUST=-0.05 MOVE=1
```