Best way to have two sets of settings?
-
Hi DC & Co.,
My big delta has swappable smart effectors, one with a volcano and another with a v6. As a result, I have to change settings for various things, some of which are in the config, like the probe offset and dive speed in my G31 and M558, as well as my firmware retraction and pressure advance. It would also change the core parameters for delta like the height of my M665, if I'm not doing a fresh bed calibration.
What's the easiest way of having all of these changed? Am I correct that if I run a macro that hits every one of these g-codes, even the M665, that it would overwrite the settings in the config at boot until I either rebooted, or sent a macro containing the original settings? Then I'd just make two macros and use those...
-
There is nothing special about config.g, other than it gets run at startup. You can put any/all settings in two files, "Volcano.g" and "V6.G", and then to swap, edit a single line in config.g that says
M98 P"/sys/Volcano.g
In fact, I'd put two M98 in, and comment one or the other.
P.S. I do this today to abstract any of several things out of config.g, such as tool offsets, so that I can maintain them in one place.
-
@clearlynotstef, take a look at the M505 command. This lets you have a separate set of system files for each configuration.
-
Having fixed up my delta I'm resuming this question here. M505 is an interesting option, but none of the files besides config are any different, and even config is only a few lines. Wanted to confirm though that if I put the few lines that are different (m665 mostly, maybe dive height of probe) in a macro I can just run it and that's that? It makes sense to keep config set to one of the effectors by default, then have a macro to change to the other if necessary, at least it'd be correct half the time by default rather than having to select which config to run each time.
-
@clearlynotstef said in Best way to have two sets of settings?:
............... Wanted to confirm though that if I put the few lines that are different (m665 mostly, maybe dive height of probe) in a macro I can just run it and that's that? .....................Yes you can do that. Any commands that are in the macro will override any previous instances of the same commands.