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

    Thank for the massive update about PID TUNING !!!

    Scheduled Pinned Locked Moved
    General Discussion
    13
    35
    2.3k
    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.
    • deckingmanundefined
      deckingman @Phaedrux
      last edited by

      @Phaedrux said in Thank for the massive update about PID TUNING !!!:

      @deckingman Done

      I meant add DC's comment that omitting the "V" parameter has the same effect as using V0. Or maybe you have elsewhere but not here https://duet3d.dozuki.com/Wiki/Gcode#Section_M307_Set_or_report_heating_process_parameters

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

      Phaedruxundefined 1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator @deckingman
        last edited by

        @deckingman Refresh the page perhaps?

        Vnnn VIN supply voltage at which the A parameter was calibrated (RepRapFirmware 1.20 and later). This allows the PID controller to compensate for changes in supply voltage. A value of zero disables compensation for changes in supply voltage. Use V0 for AC mains powered heaters. (V0 is the default. Leaving off V is the same as V0)

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • MartinNYHCundefined
          MartinNYHC
          last edited by MartinNYHC

          M303
          
          Annn (RRF 3.2beta3.2 and later, optional) ambient temperature - 
          use this parameter if you want to tune a heater that has been on 
          and has not cooled down to embient temperature yet
          
          M303 H0 S230 A40
          Error: M303: heater 0 target temperature must be below the temperature limit for this heater (120.0C)
          

          Did is misunderstand something?

          Phaedruxundefined 1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator @MartinNYHC
            last edited by

            @MartinNYHC said in Thank for the massive update about PID TUNING !!!:

            M303 H0 S230 A40 Error: M303: heater 0 target temperature must be below the temperature limit for this heater (120.0C)
            Did is misunderstand something?

            Yes. You're trying to tune the bed heater to 230c, which is above the max temp limit you've set at 120c.

            Z-Bot CoreXY Build | Thingiverse Profile

            MartinNYHCundefined 1 Reply Last reply Reply Quote 0
            • MartinNYHCundefined
              MartinNYHC @Phaedrux
              last edited by

              @Phaedrux said in Thank for the massive update about PID TUNING !!!:

              @MartinNYHC said in Thank for the massive update about PID TUNING !!!:

              M303 H0 S230 A40 Error: M303: heater 0 target temperature must be below the temperature limit for this heater (120.0C)
              Did is misunderstand something?

              Yes. You're trying to tune the bed heater to 230c, which is above the max temp limit you've set at 120c.

              Aaaargh. It has to be H1. That's the second time today I totally messed up. Not my day 🤒

              Vetiundefined 1 Reply Last reply Reply Quote 0
              • Vetiundefined
                Veti @MartinNYHC
                last edited by

                @MartinNYHC said in Thank for the massive update about PID TUNING !!!:

                H1

                better use T0, if you want tuning with the fan.

                1 Reply Last reply Reply Quote 2
                • Muggaundefined
                  Mugga
                  last edited by

                  I've just updated to version 3.2 coming from 3.1.1 and also did the new PID tuning, using the tool as "heater" M303 T0 S240. Everything went okay so far, but the results arent that good.
                  This was the first print I did, it really took some time to get stable temps (there is a 5 degree drop after the first layer via slicer):
                  hotend_temps.PNG

                  In another print I've got a heater error and a quite spicky graph, forgot to make a screenshoot of it. Cleared the heater fault afterwards and restarted print, which went fine.

                  This way my old PID tune with RRF 3.1.1:

                  M307 H1 A735.3 C254.6 D5.2 S1.00 V24.2 B0 
                  

                  And new with 3.2

                  M307 H1 R2.576 C273.2:173.4 D5.89 S1.00 V24.3
                  

                  Any ideas what could be the issue?

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

                    If you have a spiky temperature graph, that indicates a temperature measuring issue.

                    It's hard to tell much from that graph without seeing more detail, however there is evidently some overshoot at the start. The old gain (A) parameter was 735.3 whereas the new one is 2.576 * 273.2 = 704. The reduction probably explains the overshoot. Try increasing the R parameter by a factor of 735.3/704 to get rid of it.

                    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 0
                    • Muggaundefined
                      Mugga
                      last edited by

                      Thx for the explanation. I will adjust the R parameter like you said and see if that helps with the overshoot.
                      I will have a closer look at the spiky temperature at the heatup phase, maybe it was just a hickup.

                      Cableing should be okay, I just rebuild the printer and redid the wiring with new cables and crimps. Could any config related stuff interfere with the temperature readings?

                      1 Reply Last reply Reply Quote 0
                      • Blacksheep99undefined
                        Blacksheep99 @Mugga
                        last edited by

                        @Mugga said in Thank for the massive update about PID TUNING !!!:

                        I've just updated to version 3.2 coming from 3.1.1 and also did the new PID tuning, using the tool as "heater" M303 T0 S240. Everything went okay so far, but the results arent that good.
                        This was the first print I did, it really took some time to get stable temps (there is a 5 degree drop after the first layer via slicer):
                        hotend_temps.PNG

                        In another print I've got a heater error and a quite spicky graph, forgot to make a screenshoot of it. Cleared the heater fault afterwards and restarted print, which went fine.

                        This way my old PID tune with RRF 3.1.1:

                        M307 H1 A735.3 C254.6 D5.2 S1.00 V24.2 B0 
                        

                        And new with 3.2

                        M307 H1 R2.576 C273.2:173.4 D5.89 S1.00 V24.3
                        

                        Any ideas what could be the issue?

                        Sorry to go off topic but how do you name your heaters like that?

                        Phaedruxundefined 1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator @Blacksheep99
                          last edited by

                          @Blacksheep99 said in Thank for the massive update about PID TUNING !!!:

                          Sorry to go off topic but how do you name your heaters like that?

                          M308 A parameter. https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M308_Set_or_report_sensor_parameters

                          Z-Bot CoreXY Build | Thingiverse Profile

                          Blacksheep99undefined 1 Reply Last reply Reply Quote 0
                          • Blacksheep99undefined
                            Blacksheep99 @Phaedrux
                            last edited by

                            @Phaedrux said in Thank for the massive update about PID TUNING !!!:

                            @Blacksheep99 said in Thank for the massive update about PID TUNING !!!:

                            Sorry to go off topic but how do you name your heaters like that?

                            M308 A parameter. https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M308_Set_or_report_sensor_parameters

                            Thanks. Nice feature.

                            1 Reply Last reply Reply Quote 0
                            • Muggaundefined
                              Mugga
                              last edited by

                              @Blacksheep99
                              Yeah, exactly like Phaedrux told. Just the M308 A Paramter.

                              I changed the R value as dc42 told me to, and the overshoot is almost gone. There is a small hickup close before reaching the target temperature but nothing special.
                              Here is the curve:
                              hotend_temps_02.PNG

                              1 Reply Last reply Reply Quote 0
                              • Phaedruxundefined
                                Phaedrux Moderator
                                last edited by

                                @Mugga Seems like maybe a noisy thermistor connection. Maybe try giving it a twist, and isolating it from other wiring as much as possible. Is your hotend grounded?

                                Z-Bot CoreXY Build | Thingiverse Profile

                                1 Reply Last reply Reply Quote 0
                                • Muggaundefined
                                  Mugga
                                  last edited by

                                  I can try, but I havent had this behaviour before the 3.2 upgrade with the old PID tune. Hotend isnt grounded, you think that could change readings?

                                  Phaedruxundefined 1 Reply Last reply Reply Quote 0
                                  • Phaedruxundefined
                                    Phaedrux Moderator @Mugga
                                    last edited by

                                    @Mugga said in Thank for the massive update about PID TUNING !!!:

                                    I havent had this behaviour before the 3.2 upgrade with the old PID tune.

                                    True, but you also said " I just rebuild the printer and redid the wiring with new cables and crimps."

                                    So not exactly apples to apples.

                                    @Mugga said in Thank for the massive update about PID TUNING !!!:

                                    Hotend isnt grounded, you think that could change readings?

                                    Never a bad idea.

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    1 Reply Last reply Reply Quote 0
                                    • Muggaundefined
                                      Mugga
                                      last edited by

                                      Yeah, but I had a few hours of printing after the rebuilt with 3.1.1 without any issues. But I will double check the wiring.

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