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

    Allow subfolders for config files

    Scheduled Pinned Locked Moved
    General Discussion
    4
    13
    517
    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.
    • fcwiltundefined
      fcwilt @niocio01
      last edited by fcwilt

      @niocio01 said in Allow subfolders for config files:

      @fcwilt
      No, I'm trying to move the system defined files e.g. "homeall.g" into folders, which doesn't work out of the box.

      I'm familiar with M98 for calling macros / subconfigs.

      I would think @dc42 would be the one to ask - it may take a firmware modification.

      I've currently got 87 .G files in the SYS folder and it is not too bad.

      But I rarely edit the files directly in the DWC.

      Most editing/creating is done using a text editor called EditPad Pro would supports "projects", which are a collection of related files, and can use an FTP connection to the printer.

      The FTP connection can be configured to access the parent folder of SYS in which case you have access to the Macro and Filament files as well.

      If desired the FTP connection can also be configured to make backups (on the printer) of each file that is changed and to keep copies of each file on your computer.

      Having all of the features of EditPad, like "Search and Replace", is just a bonus.

      Good luck.

      Frederick

      Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

      niocio01undefined 1 Reply Last reply Reply Quote 0
      • niocio01undefined
        niocio01 @fcwilt
        last edited by

        @fcwilt
        Yea, I figured there is no easy way of just remapping the files, without firmware support.

        Good tip with using an external editor. (Why haven't I thought of that 🤷 )
        I might be able to setup my usual code editor (VSCode) to do all the configuring remotely via FTP / SSH.

        Thanks
        Nico

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

          @niocio01 There are some thing that you can do. You don't have to put files in the in the .sys folder - it just makes calling them a bit easier. But you can put them in the macros folder or a sub folder therein as long as you use the correct path when calling them. For tool change macros, you can use meta commands and conditional gcode to create "universal" ones. There is a thread on here somewhere that I made about it. You still need tfreen, tpostn and tpren for each tool but all they contain is an M98 to the "universal" files which I called "ToolFree.g", "ToolPre,g" and "ToolPost.g". In my case I had 9 tools for different filament types as well as combinations thereof but they all used the same "universal" tool change macros.

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

          niocio01undefined dc42undefined 2 Replies Last reply Reply Quote 0
          • niocio01undefined
            niocio01 @deckingman
            last edited by

            @deckingman
            Yes, I saw your post a while back. I am planing to implement something similar.
            I was thinking, I could use the arrays that are beeing introduced in RRF 3.5.0.
            That way I can keep all the settings in one file and just use global variables to set the settings per tool to arrays. I can use the same code this way and just index the array with the tool number.

            "
            You don't have to put files in the in the .sys folder - it just makes calling them a bit easier. But you can put them in the macros folder or a sub folder therein as long as you use the correct path when calling them.
            "
            I guess this is only true for custom files, which have no defined naming convention like "HomeX.g" or "ToolPreN.g" right?
            Which is what I'd like to do.

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

              @niocio01 said in Allow subfolders for config files

              I guess this is only true for custom files, which have no defined naming convention like "HomeX.g" or "ToolPreN.g" right?
              Which is what I'd like to do.

              I don't think naming conventions are the problem and so I suspect that you could use the exact same names in different folders as long as you include the correct path in the M98 call. Having said that, I suspect that DWC uses a fixed path (one of the Duet guys would have to confirm that). If that is the case, then none of the homing buttons on the dashboard would work, unless there are copies of the files in the .sys folder, which rather defeats the objective. If the path that DWC uses can be changed, then we'd be able to put files in sub folders or anywhere else. I'd guess that the path for the tool change macros is also fixed in firmware, in which case we're likely to be stuck with having them in .sys. Although as I've explained, we can have simplified versions of tree, tpre and tpost which call other macros. Perhaps @dc42 could comment on if it's possible to change the path to those native macros.

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

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

                @deckingman said in Allow subfolders for config files:

                You still need tfreen, tpostn and tpren for each tool

                That's no longer true in RRF 3.5. You can now have a single tpre.g file that is called for any tool that does not have its own tpreN.g file. Similarly for tpost.g and tfree.g.

                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

                niocio01undefined deckingmanundefined 2 Replies Last reply Reply Quote 4
                • niocio01undefined
                  niocio01 @dc42
                  last edited by

                  @dc42 said in Allow subfolders for config files:

                  You can now have a single tpre.g file that is called for any tool that does not have its own tpreN.g file. Similarly for tpost.g and tfree.g.

                  That's great to hear.
                  Is this also true for the "TriggerN.g" Files?

                  dc42undefined deckingmanundefined 2 Replies Last reply Reply Quote 0
                  • deckingmanundefined
                    deckingman @dc42
                    last edited by

                    @dc42 said in Allow subfolders for config files:

                    @deckingman said in Allow subfolders for config files:

                    You still need tfreen, tpostn and tpren for each tool

                    That's no longer true in RRF 3.5. You can now have a single tpre.g file that is called for any tool that does not have its own tpreN.g file. Similarly for tpost.g and tfree.g.

                    Brilliant!

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

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

                      @niocio01 said in Allow subfolders for config files:

                      Is this also true for the "TriggerN.g" Files?

                      No.

                      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
                      • deckingmanundefined
                        deckingman @niocio01
                        last edited by

                        @niocio01 said in Allow subfolders for config files:

                        Is this also true for the "TriggerN.g" Files?

                        DC said no, so what do your your trigger files look like? Could you use conditional gcode to make one "universal" triggerN.g?

                        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