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

    PID Tuning Number of Cycles

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    29
    2.2k
    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.
    • GeorgeMundefined
      GeorgeM
      last edited by

      In coming from Marlan I am used to using the Cycles parameter for PID Tuning. Meaning that it will heat and cool the number of cycles i specified in the M303 command.
      I do not see that option in the Duet. Is it not needed?

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

        Based purely on the quality of the tuned results, it would appear it isn't.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • GeorgeMundefined
          GeorgeM
          last edited by

          So after running the PID tuning twice and inputing data in config.g, my tool temp is not fluctuating badly. I am trying to print at 230 but it keeps going from 226 to 232. Any ideas as to why. Here is my heater part of the config:

          ; Heaters
          M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
          M307 H0 A90.00 C700 D10 V23.6 B0 ;PID Tuning Bed
          M143 H0 S120 ; Set temperature limit for heater 0 to 120C
          M305 P1 T100000 B4725 C7.06e-8 ; Set thermistor + ADC parameters for heater 1
          M307 H1 A260.3 C175.6 D1.1 S0.8 V23.8 B0 ;PID Tuning Hotend
          M143 H1 S280 ; Set temperature limit for heater 1 to 280C

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

            Are you tunning with the part cooling fan running as it would during a print? That can help get a more accurate model.

            Are you using a silicone heater block sock? Those can help stabilize temps a great deal.

            Are you sure you've got the right thermistor values for your particular thermistor?

            Are you sure you've transcribed the PID values correctly? My preferred method is to use M500 to save the values to config-override and then copying those over to config.g

            Z-Bot CoreXY Build | Thingiverse Profile

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

              I also see you're using s0.8 to limit the own power. Have you tried tuning at full pwm duty cycle?

              Z-Bot CoreXY Build | Thingiverse Profile

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

                Have you seen this?

                https://duet3d.dozuki.com/Wiki/Tuning_the_heater_temperature_control

                Z-Bot CoreXY Build | Thingiverse Profile

                1 Reply Last reply Reply Quote 0
                • GeorgeMundefined
                  GeorgeM
                  last edited by

                  I did see that. To answer some of your other questions

                  Part cooling fan was on
                  Silicone sock was on
                  Thermistor value was from E3d website for the V6
                  Double checked on getting the same values into M307
                  I did not specify the S0.8, but that is what came back when I did the M307 command. I only had M303 H1 S275 as the imput.

                  1 Reply Last reply Reply Quote 0
                  • GeorgeMundefined
                    GeorgeM
                    last edited by

                    Also I had the bed at printing temp and near the nozzle.

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

                      So the bed was powered when tuning the hotend?

                      Try without and see if the values are much different.

                      Also, are you tuning from cold state?

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • GeorgeMundefined
                        GeorgeM
                        last edited by

                        Yes from a cold state. When this print is done I will try again without the bed powered.

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

                          If the results are the same you could experiment with reducing the dead time. It's at 1.1 in the value you provided. Try 2. I think that may help smooth out the waves.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          1 Reply Last reply Reply Quote 0
                          • GeorgeMundefined
                            GeorgeM
                            last edited by

                            Well I went through a number of tunings today. I have to set the PWM to .7 or lower to get rid of any waves. Also I decided to use the M500 command and use the config-override.g file to eliminate any transcribing errors to the config.g.

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

                              What is the heater cartridge?

                              Z-Bot CoreXY Build | Thingiverse Profile

                              GeorgeMundefined 1 Reply Last reply Reply Quote 0
                              • GeorgeMundefined
                                GeorgeM @Phaedrux
                                last edited by

                                @phaedrux 24v E3d

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

                                  What wattage?

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  GeorgeMundefined 1 Reply Last reply Reply Quote 0
                                  • T3P3Tonyundefined
                                    T3P3Tony administrators
                                    last edited by T3P3Tony

                                    @GeorgeM I note that you have "D10" as part of the M307 command. is that what M303 gave you as an output?

                                    Also check you config-override.g to see if there is not a different M307 in there

                                    (note edited as I highlighed B0 instead of D10 originally)

                                    www.duet3d.com

                                    GeorgeMundefined 1 Reply Last reply Reply Quote 0
                                    • GeorgeMundefined
                                      GeorgeM @T3P3Tony
                                      last edited by

                                      @t3p3tony I dont remember now if that was from the M307 command or from the documentation.

                                      1 Reply Last reply Reply Quote 0
                                      • GeorgeMundefined
                                        GeorgeM @Phaedrux
                                        last edited by

                                        @phaedrux Don't know. How/where would I find that?

                                        1 Reply Last reply Reply Quote 0
                                        • T3P3Tonyundefined
                                          T3P3Tony administrators
                                          last edited by T3P3Tony

                                          @GeorgeM please run M303 again and post the results
                                          https://duet3d.dozuki.com/Wiki/Gcode#Section_M303_Run_heater_tuning

                                          You should read the documentation here that was linked already:
                                          https://duet3d.dozuki.com/Wiki/Tuning_the_heater_temperature_control

                                          It looks form the original M307 you posted that the tuning value is not what you had configured

                                          www.duet3d.com

                                          GeorgeMundefined 2 Replies Last reply Reply Quote 0
                                          • GeorgeMundefined
                                            GeorgeM @T3P3Tony
                                            last edited by

                                            @t3p3tony I'm not home currently. Will redo tomorrow.

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