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

    Ability to turn pinned fans off with gcode

    Scheduled Pinned Locked Moved
    Duet Web Control wishlist
    4
    8
    2.4k
    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.
    • wescundefined
      wesc
      last edited by

      Currently if you pin a fan speed during a print, there is no way (afaik) to turn the fan off via gcode.

      For example, if I have pinned the fan speed to 100% for a difficult print, the fans keep running afterwards – long afterwards if I'm not around to tend things at end of print.

      Looking at the source, I see this is implemented in the DWC updateStatus(), so things would have to be rejiggered to implement this with gcodes (perhaps an override param to G106 and have pinning implemented in the firmware?).

      Or could (optionally?) un-pin on end of print via DWC code.

      CroXY - Crossed Gantry Printer, Ultibots D300VS+, Custom CoreXYU

      1 Reply Last reply Reply Quote 0
      • JRDMundefined
        JRDM
        last edited by

        How did you turn on the fan? You can't add a "M106 S0" in the program ending g code? Also, an "H" parameter can set it up to watch a heater and if it cools down below a set temperature, it can turn off the fan automatically.

        1 Reply Last reply Reply Quote 0
        • deckingmanundefined
          deckingman
          last edited by

          You can use M107 to turn the print fan off but this is deprecated so you should use M106 S0. https://duet3d.com/wiki/G-code#M107:_Fan_Off

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

          1 Reply Last reply Reply Quote 0
          • wescundefined
            wesc
            last edited by

            The fan was originally turned on by the gcode of the print. I adjusted the speed and pinned it with the DWC UI. Once you press the pushpin there's no way to turn it off with gcode. M106 S0 gets ovverriden when the web client updates the fan speed in updateStatus()

            This is the code that does it:
            // Fan Control
            var newFanValue = (status.params.fanPercent.constructor === Array) ? status.params.fanPercent[0] : status.params.fanPercent;
            if (!fanSliderActive && (lastStatusResponse == undefined || $("#slider_fan_print").slider("getValue") != newFanValue)) {
            if ($("#override_fan").is(":checked") && settings.showFanControl) {
            sendGCode("M106 S" + ($("#slider_fan_print").slider("getValue") / 100.0));

            Another option would be to only do this override when a print is currently taking place.

            CroXY - Crossed Gantry Printer, Ultibots D300VS+, Custom CoreXYU

            1 Reply Last reply Reply Quote 0
            • deckingmanundefined
              deckingman
              last edited by

              Sorry, I don't understand. By "PushPin" do you mean the fan slider? If so, then I can adjust the fan using the slider and I can turn it off (or set any other speed) but entering an M106 Snn command via the console. During a print, this will of course be over ridden by any M106 commands that are in the gcode file of the object that you are printing.

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

              1 Reply Last reply Reply Quote 0
              • darookeeundefined
                darookee
                last edited by

                I think he's talking about that pin:

                1 Reply Last reply Reply Quote 0
                • deckingmanundefined
                  deckingman
                  last edited by

                  That's what I thought but I can set it to anything I like and then use M106 S0 which works for me - hence the confusion.

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

                  1 Reply Last reply Reply Quote 0
                  • darookeeundefined
                    darookee
                    last edited by

                    I just tried that while not printing and you are right. But it also looks like the pinning does not work (anymore, or just not while idle) 😐

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