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

    Unexpected startup behavior.

    Scheduled Pinned Locked Moved Solved
    Duet Web Control
    3
    7
    138
    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
      last edited by

      Hi,

      I am using firmware 3.4.6.

      If I had a filament type loaded in the DWC when I shut down the printer it seems that state is saved somewhere and restored when starting up again.

      However it doesn't seem to be executing the load.g/config.g files for that filament, that would be executed when selecting the filament within the DWC.

      So the settings made in the config.g file are not being applies and things are out of sync.

      Is there a way in my startup code to execute the config.g file for the selected filament type, so things end up by in sync?

      Thanks.

      Frederick

      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

      1 Reply Last reply Reply Quote 0
      • omtekundefined
        omtek
        last edited by

        See M703:

        https://docs.duet3d.com/User_manual/Reference/Gcodes#m703-configure-filament

        "After assigning a filament to a tool, this command may be used to run /filaments/<filament name>/config.g to set parameters like temperatures, extrusion factor, retract distance. If no filament is loaded, the code completes without a warning."

        fcwiltundefined 1 Reply Last reply Reply Quote 0
        • fcwiltundefined
          fcwilt @omtek
          last edited by

          @omtek said in Unexpected startup behavior.:

          See M703:

          https://docs.duet3d.com/User_manual/Reference/Gcodes#m703-configure-filament

          "After assigning a filament to a tool, this command may be used to run /filaments/<filament name>/config.g to set parameters like temperatures, extrusion factor, retract distance. If no filament is loaded, the code completes without a warning."

          Thanks for the feedback.

          How do I determine what the name is? I can see it on the screen but I need a way, in code, to do it for whatever the current name is.

          Frederick

          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

          droftartsundefined omtekundefined 2 Replies Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @fcwilt
            last edited by

            @fcwilt I'm not sure how the filament name is being saved; I admit I don't use the filament functionality of DWC! I think there's a DWC filament json file that gets updated? However, you could save the filament name and tool number to a variable, and echo > those variable to a file, then load them at start up and run the appropriate filament config.

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            fcwiltundefined 1 Reply Last reply Reply Quote 1
            • omtekundefined
              omtek @fcwilt
              last edited by

              @fcwilt You set the name in DWC using the drop-down menu: 0b500961-d2b0-489b-83ff-9726afc65748-image.png

              and you configure your filaments in the Filament section of DWC:
              96f13617-c1bb-4114-9ba6-30a521528573-image.png

              clicking on "New FIlament" will prompt you for a name8e4aa82f-907f-4925-b4db-35eb1b9b8450-image.png

              which will create the folder /filaments/<filament name>/ and empty config.g, unload.g, and load.g macros for you to use.

              If you want to update the filament using a macro you'll have to echo > <your filament name> to filaments.csv; the value is stored at the end of the file. When you change the filament using DWC this file is updated automatically so your macro changes may be overwritten.

              fcwiltundefined 1 Reply Last reply Reply Quote 0
              • fcwiltundefined
                fcwilt @omtek
                last edited by fcwilt

                @omtek

                Thanks for the feedback.

                I've been without internet for a couple of days due to weather.

                I found where the current filament info is kept.

                I can take your idea and create a file to execute on startup to that will get things back in sync.

                Thanks much.

                Frederick

                Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                1 Reply Last reply Reply Quote 0
                • fcwiltundefined
                  fcwilt @droftarts
                  last edited by

                  @droftarts

                  Thanks for the reply.

                  I believe I have a way to do what I want.

                  Frederick

                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                  1 Reply Last reply Reply Quote 1
                  • Phaedruxundefined Phaedrux marked this topic as a question
                  • Phaedruxundefined Phaedrux has marked this topic as solved
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA