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

    Using different config.g files?

    Scheduled Pinned Locked Moved
    Duet Web Control
    4
    6
    229
    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.
    • Nightowlundefined
      Nightowl
      last edited by Nightowl

      Is it possible to have different configurations for the same machine?

      This is more about changing the working limits for each tool of the CNC machine rather than changing the physical hardware configuration, but I was wondering if separate configurations could be used when using a milling motor, a laser or a drag knife, for example.

      Thanks

      Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
      I'm still on my learning curve, so take everything I say with caution!

      RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

      OwenDundefined deckingmanundefined 2 Replies Last reply Reply Quote 0
      • OwenDundefined
        OwenD @Nightowl
        last edited by

        @nightowl999
        Have a look at M505

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

          @nightowl999 Yes it most certainly is possible and as @OwenD has said, take a look at M505. Essentially it changes the "sys" path. So not only can you have separate config.g files, your can use different system macro such as homing, pause, resume etc.

          My "root" config.g looks like this
          ; Configuration file for Duet Gen 3
          ; ******CHOOSE .SYS PATH ******
          M505 P"6InputMultiMat"
          ;M505 P"6InputMixing"
          ;M505 P"SingleInput"
          ;M505 P"2Input"
          
          M98 P"config.g" 
          

          So to change between configurations, I simply uncomment the one that I want to use and comment out all the others.

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

          1 Reply Last reply Reply Quote 1
          • Nightowlundefined
            Nightowl
            last edited by Nightowl

            Well, that looks pretty good!

            I was also wondering, as I've got a browser link to DWC, whether or not I could use a shortcut to achieve the same sort of thing, e.g. Name_Laser, Name_CNC, etc?

            Or maybe even a prompt, asking which 'mode' I want to use, perhaps.

            Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
            I'm still on my learning curve, so take everything I say with caution!

            RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

            MintyTreborundefined 1 Reply Last reply Reply Quote 0
            • MintyTreborundefined
              MintyTrebor @Nightowl
              last edited by

              @nightowl999 You could create Macros to easily switch or use BtnCmd to create something like this:
              d7491f77-1c82-40ee-a72f-40d4e660e3a7-image.png
              each button runs the appropriate M505 cmd.

              NodeDSF - Native Node-Red integration with Duet boards.
              BtnCmd - Customise DWC with user defined buttons/layouts/panels (DWC Plugin)
              ReleaseMgr - Duet update info inside DWC.
              Repo

              Nightowlundefined 1 Reply Last reply Reply Quote 2
              • Nightowlundefined
                Nightowl @MintyTrebor
                last edited by

                Thanks, @mintytrebor. I'm looking at your BtnCmd already, but I never thought to add macros as you've suggested.

                Thank you 👍

                Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                I'm still on my learning curve, so take everything I say with caution!

                RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

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