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

PID Heater for Hotend

Scheduled Pinned Locked Moved
Tuning and tweaking
4
8
1.9k
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.
  • undefined
    Samuel235
    last edited by 4 Oct 2016, 17:19

    I'm attempting to auto tune the heater for my hotend (E3Dv6 Full Metal), i'm running a M303 H1 P0.5 S240 command and its hitting the temperature limit and failing. So, I've changed the PWM parameter to 0.4, that is then giving me a read out of:

    Warning: Heater 1 appears to be over-powered and a fire risk! If left on at full power, its temperature is predicted to reach 515C.
    Auto tune heater 1 with PWM=0.40 completed in 538 sec, maximum temperature reached 209.7C
    Use M307 H1 to see the result

    I then run the M307 H1 to see the parameters it has generated and i get:

    Heater 1 model: gain 495.0, time constant 188.7, dead time 7.7, max PWM 1.00, in use: yes, mode: PID
    Setpoint change: P8.9, I0.05, D47.6
    Load change: P8.9, I0.58, D47.6

    Do these parameters look appropriate to you? I'm just a little concerned on the "If left on at full power, its temperature is predicted to reach 515C" message. Or is this a standard warning message?

    I am running with 1.15b firmware at the moment, but i do plan on upgrading that at some point, should i make that my priority tonight?

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 4 Oct 2016, 18:06

      That message is generated when the predicted temperature, assuming 20C ambient temperature, exceeds 190C for a bed or chamber heater and 500C for a hot end heater. The predicted temperature is very approximate.

      For comparison, my E3DV6 which has a 30W heater and no silicone sleeve gives gain 337, time constant 138, dead time 5.1. Do you have the silicone sleeve over the hot end? If you do, that would increase both the gain and the time constant by approximately the same factor.

      Later firmware versions won't give different tuning results, but may help you avoid getting spurious heater faults.

      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
      • undefined
        Samuel235
        last edited by 4 Oct 2016, 19:54

        Thank you for the reply. Its nice to have some confirmation!

        I don't have the sleeve either. So i'm safe to put these settings into my config.g AFTER the M301 command? "M307 H1 A495.0 C188.7 D7.7 B0" would be what i enter, correct?

        I've been getting a few heating faults, so i will get that firmware sorted tomorrow. Is the 15-e version on your github is the latest that you advise to upgrade to?

        Also, when upgrading firmware, do all the config.g mods remain or do i need to back all the files up first?

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 4 Oct 2016, 20:31

          Normally you remove your M301 commands and just use M307. Two sets of PID parameters will be computed from the M307 parameters. Only use M301 if you want to override the computed PID parameters, then put the M301 command after the M307 command.

          Updating the firmware does not touch your config.g file. Version 1.15e is current.

          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
          • undefined
            Samuel235
            last edited by 4 Oct 2016, 20:40

            Ahh right okay, i will replace the M301 with the M307 then.

            Awesome, thanks for the confirmation. Will get to it tomorrow!

            1 Reply Last reply Reply Quote 0
            • undefined
              peridot
              last edited by 4 Oct 2016, 21:34

              I'd just like to mention: the warning is a real warning. If your hot end gets stuck on somehow - MOSFET fails shorted, gremlins manage to lock the firmware in spite of the watchdog - that's an estimate of how hot your hot end will get. It'd be safer if your hot end used a lower-power heater cartridge, just in case something goes badly wrong.

              That said, if you use a part cooling fan, you may want to rerun the PID tuning with it turned on; you probably won't get a warning (which doesn't make your hot end any safer) but you're less likely to get heater faults when the fan does turn on.

              1 Reply Last reply Reply Quote 0
              • undefined
                pete1961
                last edited by 5 Oct 2016, 01:23

                With 115e after doing a M307 Auto tune which works fine…
                I change my config.g file and add these parameters.

                What I'm seeing though is when I cancel a print and the heater is not at room temperature the heater will always fault out.
                What is causing this.
                My PID Parameters are M307 H1 A363.0 C177.9 D12.0 B0

                1 Reply Last reply Reply Quote 0
                • undefined
                  Samuel235
                  last edited by 5 Oct 2016, 05:47

                  Part cooling fan, I was tuning with this turned off so i just turned it on and used the same tuning parameters of "M303 H1 P0.4 S240". It reached 145.5C and completed in 370 seconds. Maybe if i should be now putting the PWM back to 0.5 if i'm tuning with the fan on…

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