Filament config.g reload at reset
-
Filament config.g
Is there a way to use the preloaded filament, e.g. PETG loaded with load.g, which will run the appropriate config.g on next reboot. So that the filament settings for the loaded filament are also present again, e.g. M572 or similar?
-
@dk4ya said in Filament config.g reload at reset:
Filament config.g
Is there a way to use the preloaded filament, e.g. PETG loaded with load.g, which will run the appropriate config.g on next reboot. So that the filament settings for the loaded filament are also present again, e.g. M572 or similar?
What I do is have filament specific settings as macros e.g.
; Settings for ABS M220 S100; set speed factor override percent to 100% M106 P0 X0.0; set maximum fan speed to 0% M207 S5.0 R0 F1800 T1800 ;set firmware retraction M572 D0 S0.10 ; set pressure advance coefficient M572 D1 S0.10 M572 D2 S0.10 M572 D3 S0.10 M572 D4 S0.10 M572 D5 S0.10
These are stored in a folder with the macros folder called "Filaments" So the contents look like ........
To load a particular set of filaments entails running the appropriate macro.
e.g. M98 P"0:/macros/Filaments/ABS.g"
So if you put that M98 at the end of config.g, it will run whenever config.g is loaded which is whenever the board is powered.
-
Yes exactly, here I call up filament-specific settings. But after a restart the filament is still set to e.g. PETG but the settings are not loaded.
So I ask if it is possible to automatically load the config file of the correspondingly loaded filament when starting? -
@dk4ya
Try M703 at the end of /sys/config.g
If there was a previously loaded filament it will run the corresponding /filaments/xxx/config.g
Or you can check the object model for a loaded filament and use conditional code to parse that to whatever macro you want -
@dk4ya It is recommended to insert M703 in your tpost*.g so the loaded filament is automatically configured when you select a tool.
-
@chrishamm @deckmann,
I thank you very much for this great hint.