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

    M500 after PID autotune overwrites G31 in config-override.g

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    5
    20
    999
    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 @flobler
      last edited by fcwilt

      @flobler

      The comment about changing the layer change G-Code in PrusaSlicer - what change do you make?

      How are you keeping the "macro" from updating config_override.g on every layer change?

      Frederick

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

      floblerundefined 1 Reply Last reply Reply Quote 0
      • floblerundefined
        flobler @Phaedrux
        last edited by flobler

        @phaedrux I just tried with using M500 P31 to save the PID values and it worked just fine. G31 is no longer being overwritten.

        As we use a macro for PID tuning is well I can simply store via M500 P31 and the problem should be solved.

        Of course we cannot prevent users to run PID autotune outside our macro which then could be a potential issue. For now I think it should be OK though.

        1 Reply Last reply Reply Quote 0
        • floblerundefined
          flobler @fcwilt
          last edited by

          @fcwilt thanks for your tip!

          Here is what I use in the "before layer change gcode" in Prusaslicer:

          G92 E0.0                                                                    ; reset extruder position to 0
          {if layer_z == layer_height+first_layer_height}M98 P"layer_change.g"{endif} ; execute layer_change.g
          ;[layer_z]
          

          This only executes the macro on layer change from layer 1 to 2.

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

            @flobler said in M500 after PID autotune overwrites G31 in config-override.g:

            @fcwilt thanks for your tip!

            Here is what I use in the "before layer change gcode" in Prusaslicer:

            G92 E0.0                                                                    ; reset extruder position to 0
            {if layer_z == layer_height+first_layer_height}M98 P"layer_change.g"{endif} ; execute layer_change.g
            ;[layer_z]
            

            This only executes the macro on layer change from layer 1 to 2.

            Thanks.

            If for some reason in the future you would need to run code on other layer changes it would be easy using a RRF global variable to make the "first layer" test in your macro and simply have M98 P"layer_change.g" in the slicer.

            This would also have the minor benefit of keeping all of your code together in your macro.

            Frederick

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

            floblerundefined 1 Reply Last reply Reply Quote 0
            • floblerundefined
              flobler @fcwilt
              last edited by

              @fcwilt That's a great point, thank you!

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

                @phaedrux said in M500 after PID autotune overwrites G31 in config-override.g:

                Will have to check with DC42 on whether this is the expected behaviour of M500.

                What should be happening is:

                • Once you save using M500 P31 then assuming you have one or more Z probes defined, a G31 line or lines will be written to config-override.g
                • If you have M501 in config.g then that G31 command will be read at boot time and the "save G31 settings with M500 automatically" flag will be set. So subsequently, sending M500 without the P31 parameter will include saving G31 settings.
                • If you delete config-override.g or you manually edit out the G31 lines from config-override.g and then reboot, M500 will no longer write the G31 settings unless you specify the P31 parameter.

                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

                CR3Dundefined 1 Reply Last reply Reply Quote 2
                • CR3Dundefined
                  CR3D @dc42
                  last edited by

                  @dc42

                  see my post here:

                  https://forum.duet3d.com/topic/24830/config-override-parameters-gets-lost-after-saving/4

                  Looks like the same issue

                  Christian from CR-3D
                  Homepage:
                  www.cr-3d.de

                  Facebook:
                  https://www.facebook.com/cr3d.official

                  Our Discord Server
                  https://discord.gg/SxRaPNuRdA

                  Thingiverse Profile:
                  https://www.thingiverse.com/cr-3d_official/about

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

                    @cr3d this is now fixed in the 3.4 source code.

                    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

                    CR3Dundefined 1 Reply Last reply Reply Quote 0
                    • CR3Dundefined
                      CR3D @dc42
                      last edited by

                      @dc42 ok perfect 🙂

                      When will it be released... we have to pack an idex machine on the weekend and that should also be included ... 😉

                      Christian from CR-3D
                      Homepage:
                      www.cr-3d.de

                      Facebook:
                      https://www.facebook.com/cr3d.official

                      Our Discord Server
                      https://discord.gg/SxRaPNuRdA

                      Thingiverse Profile:
                      https://www.thingiverse.com/cr-3d_official/about

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

                        @cr3d I can provide an internal build for you to test with. Would that help? Which Duet do you have?

                        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

                        CR3Dundefined 1 Reply Last reply Reply Quote 0
                        • CR3Dundefined
                          CR3D @dc42
                          last edited by

                          @dc42 Ok ... better than nothing 🙂

                          At this printer there is a Duet 2 Wifi EA + Duex 5

                          Christian from CR-3D
                          Homepage:
                          www.cr-3d.de

                          Facebook:
                          https://www.facebook.com/cr3d.official

                          Our Discord Server
                          https://discord.gg/SxRaPNuRdA

                          Thingiverse Profile:
                          https://www.thingiverse.com/cr-3d_official/about

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

                            @cr3d the current internal build is at https://www.dropbox.com/sh/qkexrvhgsebbz0g/AAD9gfyS8UIU5Sau311WS1oLa?dl=0.

                            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

                            CR3Dundefined 1 Reply Last reply Reply Quote 0
                            • CR3Dundefined
                              CR3D @dc42
                              last edited by

                              @dc42

                              Quick answer -> now it works!

                              We can use M500 / M500 P10 / M500 P31 / M500 P10:31 and nothing gets deleted 🙂

                              Thank you!

                              Christian from CR-3D
                              Homepage:
                              www.cr-3d.de

                              Facebook:
                              https://www.facebook.com/cr3d.official

                              Our Discord Server
                              https://discord.gg/SxRaPNuRdA

                              Thingiverse Profile:
                              https://www.thingiverse.com/cr-3d_official/about

                              1 Reply Last reply Reply Quote 1
                              • floblerundefined
                                flobler
                                last edited by

                                Great, thanks everyone for the help! Looking forward to the fix!

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