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

    Filament config.g reload at reset

    Scheduled Pinned Locked Moved
    Duet Web Control
    4
    6
    303
    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.
    • DK4YAundefined
      DK4YA
      last edited by

      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?

      deckingmanundefined chrishammundefined 2 Replies Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @DK4YA
        last edited by

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

        macros.PNG

        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.

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

        DK4YAundefined 1 Reply Last reply Reply Quote 0
        • DK4YAundefined
          DK4YA @deckingman
          last edited by

          @deckingman

          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?

          1 Reply Last reply Reply Quote 0
          • OwenDundefined
            OwenD
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • chrishammundefined
              chrishamm administrators @DK4YA
              last edited by

              @dk4ya It is recommended to insert M703 in your tpost*.g so the loaded filament is automatically configured when you select a tool.

              Duet software engineer

              DK4YAundefined 1 Reply Last reply Reply Quote 0
              • DK4YAundefined
                DK4YA @chrishamm
                last edited by

                @chrishamm @deckmann,

                I thank you very much for this great hint.

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