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>
This commit is contained in:
Kevin O'Connor 2019-05-31 10:26:44 -04:00
parent a5f82612a0
commit 7f04dc46d0
1 changed files with 4 additions and 1 deletions

View File

@ -98,11 +98,14 @@ gcode:
# been changed, the print can be resumed from its previous position # been changed, the print can be resumed from its previous position
# with the "RESUME" gcode. # with the "RESUME" gcode.
[pause_resume]
[gcode_macro M600] [gcode_macro M600]
default_parameter_X: 50 default_parameter_X: 50
default_parameter_Y: 0 default_parameter_Y: 0
default_parameter_Z: 10 default_parameter_Z: 10
gcode: gcode:
SAVE_GCODE_STATE NAME=M600_state
PAUSE PAUSE
G91 G91
G1 E-.8 F2700 G1 E-.8 F2700
@ -111,4 +114,4 @@ gcode:
G1 X{X} Y{Y} F3000 G1 X{X} Y{Y} F3000
G91 G91
G1 E-50 F1000 G1 E-50 F1000
G90 RESTORE_GCODE_STATE NAME=M600_state