Klipper "Global" permanent variables
created on
Monday, 08 December 2025
edited on
Sunday, 18 January 2026
by
Stefan Trucker
Klipper does not have an EEPROM like Marlin, but variables can still be permanently written so that they persist even after a reboot. This is done by creating a file in which the variables are written. This makes it very easy to view the variable's status and change it directly in the file.
Insert the file where the variables should be inserted into printer.cfg:
[save_variables]
filename: ~/variables.cfg Code in Ablage kopierenNow all defined variables are automatically created and saved in the file variables.cfg and will persist after a restart.
To change the variable's content, the following G-code must be executed. Here's an example using the debug variable:
SAVE_VARIABLE VARIABLE=debug Code in Ablage kopieren VALUE=1
The code can be inserted directly into the console or a macro and changes the variable Debug to the value 1.
Sources
Updates
| 2025-12-08 |
Werbung