diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-12-03 12:05:46 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-12-03 12:19:47 -0500 |
commit | d7053f6e718e0a51b48054b90e38a1b0a698ca52 (patch) | |
tree | feed961b91a80beff2a22a3063cbf63e19a1944a /docs/G-Codes.md | |
parent | 91de1560a727264e6955f7581a5864bdb9c1653e (diff) | |
download | kutter-d7053f6e718e0a51b48054b90e38a1b0a698ca52.tar.gz kutter-d7053f6e718e0a51b48054b90e38a1b0a698ca52.tar.xz kutter-d7053f6e718e0a51b48054b90e38a1b0a698ca52.zip |
save_variables: Support saving variables to a disk file
Signed-off-by: Dushyant Ahuja dusht.ahuja@gmail.com
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs/G-Codes.md')
-rw-r--r-- | docs/G-Codes.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 9d9c0619..1a944f0c 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -647,6 +647,17 @@ been enabled (also see the for gcode execution. A value of 0 will cancel a pending delayed gcode from executing. +## Save Variables + +The following command is enabled if a +[save_variables config section](Config_Reference.md#save_variables) +has been enabled: +- `SAVE_VARIABLE VARIABLE=<name> VALUE=<value>`: Saves the variable to + disk so that it can be used across restarts. All stored variables + are loaded into the `printer.save_variables.variables` dict at + startup and can be used in gcode macros. The provided VALUE is + parsed as a Python literal. + ## Resonance compensation The following command is enabled if an |