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

    [3.6.0-beta.1] Heater feedforward not working

    Scheduled Pinned Locked Moved
    Beta Firmware
    6
    22
    800
    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.
    • Kioliaundefined
      Kiolia
      last edited by

      Issue: Heater feedforward appears to be broken in both the 3.6.0 5+1 alpha and the 3.6.0 beta.1, at least on my setup with E driven by a toolboard.

      Platform: Linear delta, 6HC + 3HC, E is a 2WD mixing extruder on the toolboard, heater and heater temps are wired to mainboard.

      Background: After getting feedforward working on 3.5.1, I started seeing extrusion dropoffs after updating to the 3.6.0 5+1 alpha. After a lot of other investigation, I traced part of the issue to M309 feedforward settings apparently having no impact on heater behavior (PWM or temps). I ran 7 meters of filament last night on the alpha with a variety of temperatures, extrusion amounts, and feedforward settings, and kept getting the same temperature outcomes (dropoff followed by overshoots). I updated to the beta this morning, and the behavior is unchanged. These results are in stark contrast to the heater behavior I observed in 3.5.1, which was nicely effective at compensating for extrusion with a value of 0.0115. See graphs and commanded gcode below.
      0230b6fb-bb2e-4001-978a-4f352e8e5e51-241005 FF testing 1 overlay.png
      1084758d-5c98-4dab-90f2-5cb865a0dedb-image.png

      AWD 48V Duet 3 6HC+3HC Linear Kossel XL "CarbonShrike"
      https://www.printables.com/@Kiolia | youtube.com/@jamespray
      aka Colphaer (Discord) | aka the Deltavangelist | aka that one duct guy

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @Kiolia
        last edited by

        @Kiolia heater feedforward doesn’t work on heaters connected to toolboards currently. There’s a feature request in already for this.
        https://github.com/Duet3D/RepRapFirmware/issues/1030
        Not sure why this was working for you in 3.5.1.

        Ian

        droftarts created this issue in Duet3D/RepRapFirmware

        closed [FeatureRequest] Add support for M309 Heater Feedforward to expansion and tool boards #1030

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

        jay_s_ukundefined Kioliaundefined 2 Replies Last reply Reply Quote 0
        • jay_s_ukundefined
          jay_s_uk @droftarts
          last edited by

          @droftarts the heater + temp sensor is wired to the mainboard

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          1 Reply Last reply Reply Quote 0
          • Kioliaundefined
            Kiolia @droftarts
            last edited by Kiolia

            @droftarts jay is correct -- heater and thermistor are currently wired direct to mainboard (as mentioned in first post line 2), and only E is driven by a toolboard. I made the wiring change so I could test FF. The firmware version is the ONLY change in the machine configuration that I've made since I got FF working with 3.5.1.

            AWD 48V Duet 3 6HC+3HC Linear Kossel XL "CarbonShrike"
            https://www.printables.com/@Kiolia | youtube.com/@jamespray
            aka Colphaer (Discord) | aka the Deltavangelist | aka that one duct guy

            Kioliaundefined 1 Reply Last reply Reply Quote 0
            • Kioliaundefined
              Kiolia @Kiolia
              last edited by

              @droftarts As supplemental information, here are some FF-enabled PWM plots from 8/27 on 3.5.1 for comparison against the 3.6.0-beta.1 plots. Again, this is when it WAS working, because I rewired my machine. The FF-enabled PWM reactions to extrusion have very different profiles, and the lack of this behavior in the alpha and beta 3.6.0 builds is obvious from the plots. 240827 different move FF testing.png

              AWD 48V Duet 3 6HC+3HC Linear Kossel XL "CarbonShrike"
              https://www.printables.com/@Kiolia | youtube.com/@jamespray
              aka Colphaer (Discord) | aka the Deltavangelist | aka that one duct guy

              droftartsundefined 1 Reply Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @Kiolia
                last edited by

                @Kiolia okay, sorry, I misunderstood, I think because you said the extruder was on a toolboard. One for @dc42 to look at. Maybe he made some changes to enable it on toolboards that have had unintended consequences.

                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

                Kioliaundefined 2 Replies Last reply Reply Quote 0
                • Kioliaundefined
                  Kiolia @droftarts
                  last edited by

                  @droftarts Understandable, no worries. I got overly stressed about this one because I thought I bricked my 6HC updating to the latest beta for testing (Bossa to the rescue, but idk what I'm doing wrong unless it's leaving the CANboard plugged in for the mainboard update), so I'm sorry if I came on strong 😬

                  AWD 48V Duet 3 6HC+3HC Linear Kossel XL "CarbonShrike"
                  https://www.printables.com/@Kiolia | youtube.com/@jamespray
                  aka Colphaer (Discord) | aka the Deltavangelist | aka that one duct guy

                  1 Reply Last reply Reply Quote 0
                  • Kioliaundefined
                    Kiolia @droftarts
                    last edited by

                    @droftarts I wasn't aware DC had done any work toward it. If so, is it possible a requirement was inadvertently added that E and heater/therm need to be on the same board? I could revert my wiring updates and re-test with heater/therm back on the CANBoard, if it would be useful. (I can't put E back on the mainboard, though; I'm out of drivers there!)

                    AWD 48V Duet 3 6HC+3HC Linear Kossel XL "CarbonShrike"
                    https://www.printables.com/@Kiolia | youtube.com/@jamespray
                    aka Colphaer (Discord) | aka the Deltavangelist | aka that one duct guy

                    droftartsundefined 1 Reply Last reply Reply Quote 0
                    • droftartsundefined
                      droftarts administrators @Kiolia
                      last edited by

                      @Kiolia Honestly, I don't know if he has or hasn't, I just don't know why there would be a regression in functionality between 3.5.1 and the 3.6 alphas and the betas. I can't find anything in the changelog: https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x-Beta. I'll ask in the morning.

                      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

                      Kioliaundefined 1 Reply Last reply Reply Quote 0
                      • Kioliaundefined
                        Kiolia @droftarts
                        last edited by

                        @droftarts Thanks! I figured that with all the 3.6.0 changes, it would have been easy for a link to something like feedrate to become broken, but it also seems like something unit testing ought to catch unless it's specific to a weird edge case like mine of the Extruder being the only aspect of extrusion not being controlled by the mainboard.

                        I appreciate your attention on this one. It's not quite a blocking issue for my use case but it's a significant QOL (and QOPrinting!) impact.

                        AWD 48V Duet 3 6HC+3HC Linear Kossel XL "CarbonShrike"
                        https://www.printables.com/@Kiolia | youtube.com/@jamespray
                        aka Colphaer (Discord) | aka the Deltavangelist | aka that one duct guy

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

                          @Kiolia I asked, and @dc42 replied that he couldn't think of anything, but would check the code.

                          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

                          1 Reply Last reply Reply Quote 0
                          • droftartsundefined
                            droftarts administrators @Kiolia
                            last edited by

                            @Kiolia @dc42 has confirmed heater feedforward is broken in 3.6. Use 3.5 for now.

                            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

                            Kioliaundefined 2 Replies Last reply Reply Quote 0
                            • Kioliaundefined
                              Kiolia @droftarts
                              last edited by

                              @droftarts Bummer, okay. Would it be (feed)forward (sorry) of me to ask if the fix might make it into the 3.6.0 release? Also, do I need to do anything to flag the forum topic closed/etc.?

                              AWD 48V Duet 3 6HC+3HC Linear Kossel XL "CarbonShrike"
                              https://www.printables.com/@Kiolia | youtube.com/@jamespray
                              aka Colphaer (Discord) | aka the Deltavangelist | aka that one duct guy

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

                                @Kiolia yes we'll fix it before the 3.6 release, probably in beta 2.

                                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

                                Kioliaundefined 1 Reply Last reply Reply Quote 3
                                • Kioliaundefined
                                  Kiolia @dc42
                                  last edited by

                                  @dc42 Legendary, thank you! I'll be watching for the next update and ready to test.

                                  AWD 48V Duet 3 6HC+3HC Linear Kossel XL "CarbonShrike"
                                  https://www.printables.com/@Kiolia | youtube.com/@jamespray
                                  aka Colphaer (Discord) | aka the Deltavangelist | aka that one duct guy

                                  1 Reply Last reply Reply Quote 0
                                  • Kioliaundefined
                                    Kiolia @droftarts
                                    last edited by Kiolia

                                    @droftarts @dc42 I hate to be a bother, but it seems related -- would it be possible for you to check the code that compensates for tool cooling based on the second K term set by M307? I have a growing suspicion that this isn't working, either.

                                    Source/testing: I was hoping to use second K manipulation as a backdoor patch for missing feedforward, but after 30 minutes of testing, I can't see any difference in the temp drops or PWM reactions to a range of second K's from .05 to .485. In each test case, without moving the head (from 1mm Z), the application of full CPAP knocked temps down by the same amount (+/-5%), ramp to the new PWM level took about the same amount of time, recovery of the hot end to commanded temp took about the same amount of time, and stability of the temps after regaining commanded temp looked about the same.

                                    I started doing diagnostics like sending M307 H1 to check the actual applied tuning values, then realized this was a little too similar to my last round of feedforward testing and figured I'd better ask.

                                    One thing I did not test was un-selecting the tool and re-selecting it between M307's, if that matters.

                                    The range of values I tested went from fairly lower than ideal to fairly higher. Most recent tune value, done tonight at the same toolhead location, was M307 H1 R3.181 K0.424:0.185 D4.11 E1.35 S1.00 B0. I have not changed my machine setup or firmware version since that described in the original post above. (Edit: and yes, the hotend is that efficient and windproofed. I've invested a lot of effort in optimizing thermal efficiency.)

                                    EDIT 2: this testing was done in 3.6.0-beta.1. I cannot say for certain if it was working or not in -alpha.5+1. I believe it was working in 3.5.1, but at the time I wasn't running as aggressive of cooling profiles in any print tests, so it's hard to say. I've been having difficulties with updates, so I'd prefer not to roll back to verify behavior.

                                    EDIT 3: I will also note that I did my testing with fan setting via the DWC fan controls, not by sending Gcode commands, if that matters.

                                    AWD 48V Duet 3 6HC+3HC Linear Kossel XL "CarbonShrike"
                                    https://www.printables.com/@Kiolia | youtube.com/@jamespray
                                    aka Colphaer (Discord) | aka the Deltavangelist | aka that one duct guy

                                    chrishammundefined 1 Reply Last reply Reply Quote 1
                                    • chrishammundefined
                                      chrishamm administrators @Kiolia
                                      last edited by

                                      @Kiolia I've identified and fixed a problem affecting the tools' heating rates which can occur when M106 Pnnn Snnn is used to update the current tool's fan value. It is no issue if only M106 Snnn is used.

                                      Duet software engineer

                                      Kioliaundefined 1 Reply Last reply Reply Quote 2
                                      • Kioliaundefined
                                        Kiolia @chrishamm
                                        last edited by

                                        @chrishamm droftarts asked me to test that (in the beta.1) and M106 without a P does appear to trigger cooling compensation behavior where the DWC fan controls do not. These were two ~1-minute CPAP bursts activated in those two ways: 7680317c-89b8-422a-90cd-3ab27e39a8c0-image.png

                                        AWD 48V Duet 3 6HC+3HC Linear Kossel XL "CarbonShrike"
                                        https://www.printables.com/@Kiolia | youtube.com/@jamespray
                                        aka Colphaer (Discord) | aka the Deltavangelist | aka that one duct guy

                                        chrishammundefined T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
                                        • chrishammundefined
                                          chrishamm administrators @Kiolia
                                          last edited by

                                          @Kiolia That's fixed then. DWC uses M106 Pnnn Snnn to set specific fan speeds. If you select the tool fan slider, DWC sends M106 Snnn instead.

                                          Duet software engineer

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

                                            @Kiolia please would you confirm these issues are fixed for you in 3.6beta2

                                            www.duet3d.com

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