Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Best way to have two sets of settings?

    Scheduled Pinned Locked Moved
    General Discussion
    4
    5
    223
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • clearlynotstefundefined
      clearlynotstef
      last edited by

      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...

      dc42undefined 1 Reply Last reply Reply Quote 0
      • Danalundefined
        Danal
        last edited by Danal

        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.

        Delta / Kossel printer fanatic

        1 Reply Last reply Reply Quote 1
        • dc42undefined
          dc42 administrators @clearlynotstef
          last edited by

          @clearlynotstef, take a look at the M505 command. This lets you have a separate set of system files for each configuration.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 1
          • clearlynotstefundefined
            clearlynotstef
            last edited by

            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.

            deckingmanundefined 1 Reply Last reply Reply Quote 0
            • deckingmanundefined
              deckingman @clearlynotstef
              last edited by

              @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.

              Ian
              https://somei3deas.wordpress.com/
              https://www.youtube.com/@deckingman

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA