mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-07 22:14:05 -06:00
gcode: Add support for SAVE_GCODE_STATE and RESTORE_GCODE_STATE commands
Add commands to save and restore the current g-code state. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
9e7ef3cf89
commit
c54b8da530
3 changed files with 71 additions and 2 deletions
|
@ -105,6 +105,22 @@ The following standard commands are supported:
|
|||
axis). If "MOVE_SPEED" is specified then the toolhead move will be
|
||||
performed with the given speed (in mm/s); otherwise the toolhead
|
||||
move will use the last specified G-Code speed.
|
||||
- `SAVE_GCODE_STATE [NAME=<state_name>]`: Save the current
|
||||
g-code coordinate parsing state. Saving and restoring the g-code
|
||||
state is useful in scripts and macros. This command saves the
|
||||
current g-code absolute coordinate mode (G90/G91), absolute extrude
|
||||
mode (M82/M83), origin (G92), offset (SET_GCODE_OFFSET), speed
|
||||
override (M220), extruder override (M221), move speed, current XYZ
|
||||
position, and relative extruder "E" position. If NAME is provided it
|
||||
allows one to name the saved state to the given string. If NAME is
|
||||
not provided it defaults to "default".
|
||||
- `RESTORE_GCODE_STATE [NAME=<state_name>]
|
||||
[MOVE=1 [MOVE_SPEED=<speed>]]`: Restore a state previously saved via
|
||||
SAVE_GCODE_STATE. If "MOVE=1" is specified then a toolhead move will
|
||||
be issued to move back to the previous XYZ position. If "MOVE_SPEED"
|
||||
is specified then the toolhead move will be performed with the given
|
||||
speed (in mm/s); otherwise the toolhead move will use the restored
|
||||
g-code speed.
|
||||
- `PID_CALIBRATE HEATER=<config_name> TARGET=<temperature>
|
||||
[WRITE_FILE=1]`: Perform a PID calibration test. The specified
|
||||
heater will be enabled until the specified target temperature is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue