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

    How do I configure my default fan?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    25
    981
    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.
    • dc42undefined
      dc42 administrators @maroonds
      last edited by

      @maroonds said in How do I configure my default fan?:

      Hey! I'd like to have my Heater 2 port configured to be my 4010 Hotend cooling fan which turns on when my H1 is over 45C and my fan2 port to be my hotend cooling fan.
      However, I don't really understand how the parameters work in the g-code commands section.
      My duet maestro has the RRF2.05 firmware installed.
      Any help is greatly appreciated!

      With RRF 2.05 or 2.05.1 I think the following should work to configure fan 3 as a thermostatic hot end fan:

      M307 H2 A-1 C-1 D-1 ; disable heater 2
      M106 P3 A2 H1 T45 S1 ; Fan 3 is on heater 2 output, thermostatically controlled by heater 1

      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

      maroondsundefined 2 Replies Last reply Reply Quote 1
      • maroondsundefined
        maroonds @dc42
        last edited by

        @dc42 The fan still doesn't kick on at 45 degrees. Btw. maybe it's not H2 I'm talking about this port: https://imgur.com/a/jzyW0WV

        1 Reply Last reply Reply Quote 0
        • maroondsundefined
          maroonds @dc42
          last edited by

          @dc42 And could you please tell me how I can set my 5015 fan2 to be my default fan (part cooling fan)

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

            @maroonds First, test the fans on an 'always on' fan pin header, to check they are working.

            H0 is 'HEATED BED', H1 is 'E0 HEATER' and H2 is the 'E1 HEATER'. So connect your fan (checking polarity) to the E1 HEATER screw terminals, or the pins behind it (+ve is on the left, GND on the right):
            e3ae355f-0d9c-4c53-9aed-48b998f8a9c8-image.png

            To test the fan, use the gcode @dc42 suggests, but change the M106 line to:
            M106 P3 A2 H-1 S1
            This should turn the fan on at 100%, ignoring the heater, and should show up in DWC to control it.

            For the part cooling fan, do you want this to be Fan 0, but connected to Fan2? Try:
            M106 P0 A22 H-1 S1
            This should map fan0 to logical pin 22, which should be fan2. I think!

            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

            maroondsundefined 1 Reply Last reply Reply Quote 1
            • maroondsundefined
              maroonds @droftarts
              last edited by

              @droftarts said in How do I configure my default fan?:

              M106 P3 A2 H-1 S1

              Thanks! My part cooling fan is now working, but my hotend cooling fan (connected to e1) is still not working...

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

                @maroonds Did you test the hot end fan on the 'always on' fan pins? Did a fan control show up in DWC?

                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

                maroondsundefined 1 Reply Last reply Reply Quote 1
                • maroondsundefined
                  maroonds @droftarts
                  last edited by

                  @droftarts Fan control shows up but only for my part cooling fan. The fan turns on when I connect it to the always on pin but I'd like it to only turn on when the temperature is above 45c since it's kind of loud.

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

                    @maroonds Can you post how your fans are set up at the moment? You can also check by sending M106 P[fan number], though this doesn't tell you what pins it's using.

                    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

                    maroondsundefined 1 Reply Last reply Reply Quote 0
                    • maroondsundefined
                      maroonds @droftarts
                      last edited by

                      @droftarts said in How do I configure my default fan?:

                      M106 P[fan number]

                      here is my fan setup

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

                        @maroonds I meant in your config.g. Copy the text from config.g and paste it into your reply.

                        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

                        maroondsundefined 1 Reply Last reply Reply Quote 0
                        • maroondsundefined
                          maroonds @droftarts
                          last edited by

                          @droftarts Oh my bad..
                          ; Custom settings are not defined
                          ; Configuration file for Duet Maestro (firmware version 2.03)
                          ; executed by the firmware on start-up
                          ;
                          ; generated by RepRapFirmware Configuration Tool v2.1.8 on Wed Apr 22 2020 01:05:56 GMT+0200 (Mitteleuropäische Sommerzeit)

                          ; General preferences
                          G90 ; send absolute coordinates...
                          M83 ; ...but relative extruder moves
                          M550 P"My Printer" ; set printer name

                          ; Network
                          M552 P192.168.1.69 S1 ; enable network and set IP address
                          M553 P255.255.255.0 ; set netmask
                          M554 P192.168.1.254 ; set gateway
                          M586 P0 S1 ; enable HTTP
                          M586 P1 S1 ; enable FTP
                          M586 P2 S0 ; disable Telnet
                          M552 S1 P192.168.8.101

                          ; Drives
                          M569 P0 S1 V0 ; physical drive 0 goes backwards X
                          M569 P1 S1 V0 ; physical drive 1 goes backwards Y
                          M569 P2 S0 ; physical drive 2 goes forwards Z
                          M569 P4 S1 ; physical drive 3 goes forwards E
                          M584 X0 Y1 Z2 E3 ; set drive mapping
                          M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
                          M92 X80.00 Y80.00 Z400.00 E393.00 ; set steps per mm
                          M566 X420.00 Y420.00 Z12.00 E180.00 ; set maximum instantaneous speed changes (mm/min)
                          M203 X24000.00 Y24000.00 Z720.00 E7200.00 ; set maximum speeds (mm/min)
                          M201 X2000.00 Y2000.00 Z500.00 E5000.00 ; set accelerations (mm/s^2)
                          M906 X850 Y850 Z600 E950 I30 ; set motor currents (mA) and motor idle factor in per cent
                          M84 S30 ; Set idle timeout
                          M204 P1000 T2000 ; Set printing and travel accelerations

                          ; Axis Limits
                          M208 X-5 Y-5 Z-5 S1 ; set axis minima
                          M208 X235 Y230 Z260 S0 ; set axis maxima

                          ; Endstops
                          M574 X1 Y1 S1 ; set active high endstops
                          M574 Z1 S2 ; set endstops controlled by probe

                          ; Z-Probe
                          M558 P9 H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds
                          G31 P500 X-33 Y1 Z2.5 ; set Z probe trigger value, offset and trigger height
                          M557 X10:210 Y10:210 S20 ; define mesh grid

                          ; Heaters
                          M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
                          M305 P0 T98801 B4185 R2200 ; set thermistor + ADC parameters for heater 0
                          M143 H0 S120 ; set temperature limit for heater 0 to 120C
                          M305 P1 T100000 B4725 C7.060000e-8 R2200 ; set thermistor + ADC parameters for heater 1
                          M143 H1 S280 ; set temperature limit for heater 1 to 280C

                          ; Fans

                          M106 P0 A22 H-1 S1
                          M106 P3 A2 H-1 S1

                          ; Tools
                          M563 P0 D0 H1 F0 ; define tool 0
                          G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
                          G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C

                          ; Custom settings are not defined

                          ; Miscellaneous
                          M501 ; load saved parameters from non-volatile memory
                          M911 S23 R23.7 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss

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

                            @maroonds From your config.g:

                            ; Fans
                            M106 P0 A22 H-1 S1
                            M106 P3 A2 H-1 S1
                            
                            ; Tools
                            M563 P0 D0 H1 F0 ; define tool 0
                            

                            You haven't disabled Heater 1, as @dc42 suggested, with:
                            M307 H2 A-1 C-1 D-1 ; disable heater 2

                            Also, your tool is using F0, which is the part cooling fan.
                            For the hot end fan, you don't need to specify it in the tool, as it's going to be set to thermostatically watch Heater 1 anyway. As you don't have any other fans, you may as well call this 'Fan1' or P1. So, change your config.g to:

                            ; Fans
                            M106 P0 A22 H-1 S0
                            M307 H2 A-1 C-1 D-1 ; disable heater 2
                            M106 P1 A2 H1 T45
                            
                            ; Tools
                            M563 P0 D0 H1 ; define tool 0
                            

                            Fans that are linked to tools won't show up in DWC until the tool is active. Fans that are thermostatic won't show up at all. Fan visibility can be turned on and off in the 'Current Job > Status' page; click on 'change visibility' in Fans section.

                            Is there any reason you're not using the other PWM fan pins?

                            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 1
                            • maroondsundefined
                              maroonds
                              last edited by

                              I had to change my pwm ports because I shorted the ones I was previously using.
                              Btw. I tried it with your adjustments but my hotend fan is still not turning on when my heater reaches 50 degrees.

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

                                @maroonds You made the changes to config.g, saved it, then reset the Duet? Run M98 P"config.g" and see if it generates any errors.

                                What happens if you send:
                                M307 H2 A-1 C-1 D-1
                                M106 P1 A2 H-1 S1

                                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

                                maroondsundefined 1 Reply Last reply Reply Quote 0
                                • maroondsundefined
                                  maroonds @droftarts
                                  last edited by

                                  @droftarts It doesn't create any errors and after I pasted the other commands nothing happens and the fan still doesn't turn on at 50 C

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

                                    @maroonds Can you post a picture of your board showing wiring? How are you connecting the fan to E1 HEATER, on the pins or screw terminals? Have you checked polarity?

                                    The command from my previous post, M106 P1 A2 H-1 S1, should turn it on full speed straight away, to test. To be thermostatic controlled, needs to be M106 P1 A2 H1 T50. But it needs to be working with the first M106 command, before setting it to thermostatic control. See gcode dictionary to understand the settings: https://duet3d.dozuki.com/Wiki/Gcode#Section_M106_Fan_On

                                    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

                                    maroondsundefined 2 Replies Last reply Reply Quote 0
                                    • maroondsundefined
                                      maroonds @droftarts
                                      last edited by

                                      @droftarts said in How do I configure my default fan?:

                                      M106 P1 A2 H-1 S1

                                      Screw terminals. I checked the voltages with a multimeter and it has around 0.5V with this command sent: M106 P1 A2 H-1 S1
                                      And yes the polarity is right

                                      1 Reply Last reply Reply Quote 0
                                      • maroondsundefined
                                        maroonds @droftarts
                                        last edited by

                                        @droftarts This was my setup on RRF3 (now I'm on 2.05.1):
                                        ; Fans
                                        M950 F3 C"e1heat"
                                        M106 P3 H1 T35 S1
                                        M950 F2 C"nil"
                                        M950 F0 C"fan2" Q500
                                        M106 P0 I0 C"5015" S0 H-1

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

                                          @maroonds try S255 . Any reason you rolled back from RRF3? Where the fans not working? Setting the part cooling fan with P0 and not thermostatic or bound to a tool should put it under slicer or manual control.

                                          As this is a Maestro, I’m not sure if pin A2 is correct for Heater 1. It should be. @dc42 ?

                                          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

                                          maroondsundefined 1 Reply Last reply Reply Quote 1
                                          • maroondsundefined
                                            maroonds @droftarts
                                            last edited by maroonds

                                            @droftarts I don't know what I did wrong yesterday, but now it's working.
                                            At least this command: M106 P2 A2 H-1 s255
                                            But how can I make it thermostatic controllable?
                                            This is my current setup:
                                            M106 P0 A22 H-1 S1 ; Part cooling fan
                                            M106 P3 A2 H1 T45 ; Hotend fan
                                            M307 H2 A-1 C-1 D-1 ; Disables H2

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