mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-15 03:24:29 +05:00
Update mainsail_macros.cfg
Bring mainsail_macros.cfg in line with the macro examples from the mainsail instructions: https://github.com/meteyou/mainsail/blob/master/docs/macros.md
This commit is contained in:
@@ -1,13 +1,39 @@
|
|||||||
##########################
|
##########################
|
||||||
### CREATED WITH KIAUH ###
|
### CREATED WITH KIAUH ###
|
||||||
##########################
|
##########################
|
||||||
|
#is required to load the pause_resume module in klipper
|
||||||
[pause_resume]
|
[pause_resume]
|
||||||
|
|
||||||
|
[gcode_macro PAUSE]
|
||||||
|
rename_existing: BASE_PAUSE
|
||||||
|
default_parameter_X: 230 #edit to your park position
|
||||||
|
default_parameter_Y: 230 #edit to your park position
|
||||||
|
default_parameter_Z: 10 #edit to your park position
|
||||||
|
default_parameter_E: 1 #edit to your retract length
|
||||||
|
gcode:
|
||||||
|
SAVE_GCODE_STATE NAME=PAUSE_state
|
||||||
|
BASE_PAUSE
|
||||||
|
G91
|
||||||
|
G1 E-{E} F2100
|
||||||
|
G1 Z{Z}
|
||||||
|
G90
|
||||||
|
G1 X{X} Y{Y} F6000
|
||||||
|
|
||||||
|
[gcode_macro RESUME]
|
||||||
|
rename_existing: BASE_RESUME
|
||||||
|
default_parameter_E: 1 #edit to your retract length
|
||||||
|
gcode:
|
||||||
|
G91
|
||||||
|
G1 E{E} F2100
|
||||||
|
G90
|
||||||
|
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
|
||||||
|
BASE_RESUME
|
||||||
|
|
||||||
[gcode_macro CANCEL_PRINT]
|
[gcode_macro CANCEL_PRINT]
|
||||||
rename_existing: BASE_CANCEL_PRINT
|
rename_existing: BASE_CANCEL_PRINT
|
||||||
default_parameter_X: 230
|
default_parameter_X: 230 #edit to your park position
|
||||||
default_parameter_Y: 230
|
default_parameter_Y: 230 #edit to your park position
|
||||||
default_parameter_Z: 10
|
default_parameter_Z: 10 #edit to your park position
|
||||||
gcode:
|
gcode:
|
||||||
M104 S0
|
M104 S0
|
||||||
M140 S0
|
M140 S0
|
||||||
@@ -16,28 +42,5 @@ gcode:
|
|||||||
CLEAR_PAUSE
|
CLEAR_PAUSE
|
||||||
SDCARD_RESET_FILE
|
SDCARD_RESET_FILE
|
||||||
BASE_CANCEL_PRINT
|
BASE_CANCEL_PRINT
|
||||||
|
|
||||||
[gcode_macro PAUSE]
|
|
||||||
rename_existing: BASE_PAUSE
|
|
||||||
default_parameter_X: 230
|
|
||||||
default_parameter_Y: 230
|
|
||||||
default_parameter_Z: 10
|
|
||||||
gcode:
|
|
||||||
SAVE_GCODE_STATE NAME=PAUSE_state
|
|
||||||
BASE_PAUSE
|
|
||||||
G91
|
|
||||||
G1 E-1.7 F2100
|
|
||||||
G1 Z{Z}
|
|
||||||
G90
|
|
||||||
G1 X{X} Y{Y} F6000
|
|
||||||
|
|
||||||
[gcode_macro RESUME]
|
|
||||||
rename_existing: BASE_RESUME
|
|
||||||
gcode:
|
|
||||||
G91
|
|
||||||
G1 E1.7 F2100
|
|
||||||
G91
|
|
||||||
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
|
|
||||||
BASE_RESUME
|
|
||||||
##########################
|
##########################
|
||||||
##########################
|
##########################
|
||||||
|
|||||||
Reference in New Issue
Block a user