diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-05-31 10:26:44 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-05-31 10:29:09 -0400 |
commit | 7f04dc46d0cd2df356bb7197522bc3a3c1068bc7 (patch) | |
tree | c3c64dbf587f19f9c30a14c79dc08b80940e9ade /config/sample-macros.cfg | |
parent | a5f82612a08e8cdcddbafdea5e58e40f1ab3f86f (diff) | |
download | kutter-7f04dc46d0cd2df356bb7197522bc3a3c1068bc7.tar.gz kutter-7f04dc46d0cd2df356bb7197522bc3a3c1068bc7.tar.xz kutter-7f04dc46d0cd2df356bb7197522bc3a3c1068bc7.zip |
config: Update M600 in sample-macros.cfg to use SAVE_GCODE_STATE
Save and restore state in the example M600 macro. Also, add
pause_resume config section.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'config/sample-macros.cfg')
-rw-r--r-- | config/sample-macros.cfg | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/sample-macros.cfg b/config/sample-macros.cfg index f556dc14..5f965fb1 100644 --- a/config/sample-macros.cfg +++ b/config/sample-macros.cfg @@ -98,11 +98,14 @@ gcode: # been changed, the print can be resumed from its previous position # with the "RESUME" gcode. +[pause_resume] + [gcode_macro M600] default_parameter_X: 50 default_parameter_Y: 0 default_parameter_Z: 10 gcode: + SAVE_GCODE_STATE NAME=M600_state PAUSE G91 G1 E-.8 F2700 @@ -111,4 +114,4 @@ gcode: G1 X{X} Y{Y} F3000 G91 G1 E-50 F1000 - G90 + RESTORE_GCODE_STATE NAME=M600_state |