-
-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
2,633 additions
and
2,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
######################################################################################### | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AUTOCREATED WITH KIAUH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | ||
######################################################################################### | ||
# Those are the recommended macros and config entries if you use Mainsail or Fluidd! # | ||
# Feel free to edit or delete those macros if you already have them defined elsewhere! # | ||
######################################################################################### | ||
|
||
[pause_resume] | ||
|
||
[display_status] | ||
|
||
[gcode_macro CANCEL_PRINT] | ||
rename_existing: BASE_CANCEL_PRINT | ||
gcode: | ||
TURN_OFF_HEATERS | ||
CLEAR_PAUSE | ||
SDCARD_RESET_FILE | ||
BASE_CANCEL_PRINT | ||
|
||
[gcode_macro PAUSE] | ||
rename_existing: BASE_PAUSE | ||
# change this if you need more or less extrusion | ||
variable_extrude: 1.0 | ||
gcode: | ||
##### read E from pause macro ##### | ||
{% set E = printer["gcode_macro PAUSE"].extrude|float %} | ||
##### set park positon for x and y ##### | ||
# default is your max posion from your printer.cfg | ||
{% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %} | ||
{% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} | ||
##### calculate save lift position ##### | ||
{% set max_z = printer.toolhead.axis_maximum.z|float %} | ||
{% set act_z = printer.toolhead.position.x|float %} | ||
{% if act_z < (max_z - 2.0) %} | ||
{% set z_safe = 2.0 %} | ||
{% else %} | ||
{% set z_safe = max_z - act_z %} | ||
{% endif %} | ||
##### end of definitions ##### | ||
SAVE_GCODE_STATE NAME=PAUSE_state | ||
BASE_PAUSE | ||
G91 | ||
G1 E-{E} F2100 | ||
G1 Z{z_safe} F900 | ||
G90 | ||
G1 X{x_park} Y{y_park} F6000 | ||
|
||
[gcode_macro RESUME] | ||
rename_existing: BASE_RESUME | ||
gcode: | ||
##### read E from pause macro ##### | ||
{% set E = printer["gcode_macro PAUSE"].extrude|float %} | ||
##### end of definitions ##### | ||
G91 | ||
G1 E{E} F2100 | ||
RESTORE_GCODE_STATE NAME=PAUSE_state | ||
BASE_RESUME | ||
|
||
######################################################################################### | ||
######################################################################################### |
Oops, something went wrong.