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

    Non-PWM hotend fan always on with thermostatic control

    Scheduled Pinned Locked Moved Solved
    General Discussion
    3
    6
    308
    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.
    • Velviaundefined
      Velvia
      last edited by

      Fan / heater config

      ; Heaters
      M308 S0 P"temp1" Y"thermistor" T118000 B3950
      M950 H0 C"out1" T0                                 ; create bed heater output on out1 and map it to sensor 0
      M307 H0 B0 S1.00                                   ; disable bang-bang mode for the bed heater and set PWM limit
      M140 H0                                            ; map heated bed to heater 0
      M143 H0 S120                                       ; set temperature limit for heater 0 to 120C
      M308 S1 P"temp0" Y"pt1000"                         ; configure sensor 1 as PT1000 on pin temp0
      M950 H1 C"out2" T1                                 ; create nozzle heater output on out2 and map it to sensor 1
      M307 H1 B1 S1.00                                   ; disable bang-bang mode for heater  and set PWM limit
      M143 H1 S450                                       ; set temperature limit for heater 1 to 450C
      
      ; Fans
      M950 F0 C"out5"                                    ; create fan 0 on pin out5 and set its frequency
      M106 P0 S0 H1 T60                                  ; set fan 0 value. Thermostatic control is turned on
      M950 F1 C"out6" Q100                               ; create fan 1 on pin out6 and set its frequency
      M106 P1 S0.5 H-1                                   ; set fan 1 value. Thermostatic control is turned off
      
      ; Tools
      T0
      M563 P0 S"DragonHF" 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
      
      

      The hotend cooling fan is always on, even when below 60C.

      M122

      M122
      === Diagnostics ===
      RepRapFirmware for Duet 3 MB6HC version 3.4.1 (2022-06-01 21:09:01) running on Duet 3 MB6HC v1.01 or later (SBC mode)
      Board ID: 08DJM-9P63L-DJ3S0-7JKF0-3S86T-TAJR8
      Used output buffers: 1 of 40 (12 max)
      === RTOS ===
      Static ram: 151000
      Dynamic ram: 64296 of which 96 recycled
      Never used RAM 135280, free system stack 216 words
      Tasks: SBC(resourceWait:,0.5%,484) HEAT(notifyWait,0.0%,321) Move(notifyWait,0.0%,352) CanReceiv(notifyWait,0.0%,944) CanSender(notifyWait,0.0%,374) CanClock(delaying,0.0%,333) TMC(notifyWait,7.7%,92) MAIN(running,91.1%,1231) IDLE(ready,0.6%,30), total 100.0%
      Owned mutexes: HTTP(MAIN)
      === Platform ===
      Last reset 00:03:01 ago, cause: software
      Last software reset at 2022-06-28 12:49, reason: User, GCodes spinning, available RAM 135280, slot 1
      Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00400000 BFAR 0x00000000 SP 0x00000000 Task SBC Freestk 0 n/a
      Error status: 0x00
      Aux0 errors 0,0,0
      Step timer max interval 135
      MCU temperature: min 34.9, current 35.2, max 35.6
      Supply voltage: min 23.9, current 24.0, max 24.0, under voltage events: 0, over voltage events: 0, power good: yes
      12V rail voltage: min 12.2, current 12.2, max 12.3, under voltage events: 0
      Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
      Events: 0 queued, 0 completed
      Driver 0: standstill, SG min 0, mspos 590, reads 31022, writes 14 timeouts 0
      Driver 1: standstill, SG min 0, mspos 706, reads 31022, writes 14 timeouts 0
      Driver 2: standstill, SG min 0, mspos 618, reads 31022, writes 14 timeouts 0
      Driver 3: standstill, SG min 0, mspos 8, reads 31022, writes 14 timeouts 0
      Driver 4: standstill, SG min 0, mspos 8, reads 31025, writes 11 timeouts 0
      Driver 5: standstill, SG min 0, mspos 8, reads 31026, writes 11 timeouts 0
      Date/time: 2022-06-28 12:52:53
      Slowest loop: 1.21ms; fastest: 0.05ms
      === Storage ===
      Free file entries: 10
      SD card 0 not detected, interface speed: 37.5MBytes/sec
      SD card longest read time 0.0ms, write time 0.0ms, max retries 0
      === Move ===
      DMs created 125, segments created 0, maxWait 0ms, bed compensation in use: none, comp offset 0.000
      === MainDDARing ===
      Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
      === AuxDDARing ===
      Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
      === Heat ===
      Bed heaters 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
      === GCodes ===
      Segments left: 0
      Movement lock held by null
      HTTP* is doing "M122" in state(s) 0
      Telnet is idle in state(s) 0
      File is idle in state(s) 0
      USB is idle in state(s) 0
      Aux is idle in state(s) 0
      Trigger* is idle in state(s) 0
      Queue is idle in state(s) 0
      LCD is idle in state(s) 0
      SBC is idle in state(s) 0
      Daemon is idle in state(s) 0
      Aux2 is idle in state(s) 0
      Autopause is idle in state(s) 0
      Code queue is empty
      === CAN ===
      Messages queued 1625, received 0, lost 0, boc 0
      Longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 50 (min 50), ts 908/0/0
      Tx timeouts 0,0,907,0,0,716 last cancelled message type 4514 dest 127
      === SBC interface ===
      Transfer state: 5, failed transfers: 0, checksum errors: 0
      RX/TX seq numbers: 7681/7681
      SPI underruns 0, overruns 0
      State: 5, disconnects: 0, timeouts: 0 total, 0 by SBC, IAP RAM available 0x2b880
      Buffer RX/TX: 0/0-0, open files: 0
      === Duet Control Server ===
      Duet Control Server v3.4.1
      Code buffer space: 4096
      Configured SPI speed: 8000000Hz, TfrRdy pin glitches: 0
      Full transfers per second: 42.61, max time between full transfers: 63.6ms, max pin wait times: 53.6ms/32.5ms
      Codes per second: 0.34
      Maximum length of RX/TX data transfers: 3084/968
      

      Homegrown, grass fed and organically built 350mm delta

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @Velvia
        last edited by

        @velvia said in Non-PWM hotend fan always on with thermostatic control:

        M106 P0 S0 H1 T60 ; set fan 0 value. Thermostatic control is turned on

        change this line to

        M106 P0 S1 H1 T60                                  ; set fan 0 value. Thermostatic control is turned on
        

        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

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

          @jay_s_uk I'm not sure the fan speed (S parameter) is very relevant when setting thermostatic control. You can leave it out, and the fan will be off when below the set temperature, and on at 100% when above that temperature (just tested). So setting initially off (S0), or on (S1), doesn't make a difference (also just tested).

          @Velvia More likely, I think, is that you have connected the fan -negative wire to GND, rather than the out5 pin. Fans are switched on the ground/negative side, by the out5 pin. Positive voltage supply is via the VOUTLC1 pin, which is 'always on', and not switched.

          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

          Velviaundefined 2 Replies Last reply Reply Quote 3
          • Velviaundefined
            Velvia @jay_s_uk
            last edited by

            @jay_s_uk
            Nothing happened

            Homegrown, grass fed and organically built 350mm delta

            1 Reply Last reply Reply Quote 0
            • Velviaundefined
              Velvia @droftarts
              last edited by

              @droftarts
              This is most likely the issue. Will try this.

              Homegrown, grass fed and organically built 350mm delta

              1 Reply Last reply Reply Quote 0
              • Velviaundefined
                Velvia @droftarts
                last edited by

                @droftarts
                It worked! Thank you!

                Homegrown, grass fed and organically built 350mm delta

                1 Reply Last reply Reply Quote 0
                • droftartsundefined droftarts marked this topic as a question
                • droftartsundefined droftarts has marked this topic as solved
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA