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

    How control 2 fans from a single web interface slider?

    Scheduled Pinned Locked Moved
    General Discussion
    2
    3
    133
    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.
    • nachogilundefined
      nachogil
      last edited by

      Morning all,

      I have two fans installed through a 3HC extension board, that (thank God) works perfectly 🙂

      As I created two fans in two different connections the web interface shows two controls (obvious).

      My doubt is if there is any way to name these two fans as one to have a single control in the web interface.

      That is my current code:

      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      ;;;;;;;;;;;;;; FANS ;;;;;;;;;;;;;;;;;;;
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      M950 F0 C"1.out6"			;create fan 0 on 1.out6
      M106 P0 C"Layer Fan 0" S0 H-1		;named fan 0, NOT always O, disables thermostatic mode 
      M950 F1 C"1.out7" 			;create fan 1 on 1.out7
      M106 P1 C"Layer Fan 1" S0 H-1		;named fan 1, NOT always O, disables thermostatic mode
      

      and I'm thinking in something like:

      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      ;;;;;;;;;;;;;; FANS ;;;;;;;;;;;;;;;;;;;
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      M950 F0 C"1.out6+1.out7"			;create fan 0 on 1.out6 and 1.out7
      M106 P0 C"Layer Fan 0" S0 H-1		;named fan 0, NOT always O, disables thermostatic mode 
      

      Its possible to do something like that?


      www.nachogil.com
      www.nachogil.surf
      wwwtwitter.com/3dNachogil
      www.instagram.com/nachogilsurf

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

        @nachogil I don't think that's going to work. The second port can only be used for the fan tacho. See https://docs.duet3d.com/User_manual/Connecting_hardware/Fans_connecting#configuring-fans

        When using M950 to create a fan, the port name string may be either a single port, or two ports separated by the '+' sign. The second port is used to read the fan tacho.

        If they are going to be controlled by Gcode, you can bind them to a tool, eg M563 P0 D0 H1 F0:2, then the 'tool fan' in DWC will control both, and can be controlled with M106 when the tool is selected. This won't work if they are supposed to work independently of the tool, though.

        Or, you could also simply wire the fans in parallel, assuming they don't draw too much current.

        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

        nachogilundefined 1 Reply Last reply Reply Quote 1
        • nachogilundefined
          nachogil @droftarts
          last edited by

          @droftarts Done!! Thaks a lot!!


          www.nachogil.com
          www.nachogil.surf
          wwwtwitter.com/3dNachogil
          www.instagram.com/nachogilsurf

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