# Timer too close, multiple fans

**URL:** <https://klipper.discourse.group/t/timer-too-close-multiple-fans/19218>\
**Category:** General Discussion\
**Created:** [October 5, 2024, 10:49am UTC](https://klipper.discourse.group/t/timer-too-close-multiple-fans/19218 "2024-10-05T10:49:40Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![DJ\_Obsidian](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@DJ\_Obsidian](https://klipper.discourse.group/u/DJ_Obsidian)\
**Post date:** [October 9, 2024, 7:59pm UTC](https://klipper.discourse.group/t/timer-too-close-multiple-fans/19218/20 "2024-10-09T19:59:33Z")

</div>

Thanks for looking into my logs and clarifying what’s happening.  
CPU is powerfull enough and it is not overheating. The problem turned out to be macro M106. With cooling turned off no errors appeared during test prints. I copied someone else’s code for IDEX without much attention to its code. After replacing it with a simpler macro from here, the problem disappeared.

> [@IDEX Parts cooling fan turned off](https://klipper.discourse.group/t/idex-parts-cooling-fan-turned-off/2160/2):
>
> Hi @SiC_FPV try this ## add to T0 macro SET\_GCODE\_VARIABLE MACRO=FAN\_VARIABLE VARIABLE=active\_fan VALUE=0 CARRIAGE\_PRINT\_FAN ## add to T1 macro SET\_GCODE\_VARIABLE MACRO=FAN\_VARIABLE VARIABLE=active\_fan VALUE=1 CARRIAGE\_PRINT\_FAN HW config # X1 print cooling fan [fan\_generic fan] pin: PC9 cycle\_time: 0.0100 kick\_start\_time: 1.00 # X2 print cooling fan [fan\_generic fan1] pin: PA8 cycle\_time: 0.0100 kick\_start\_time: 1.000 Macro M106 / M107 [gcode\_macro FAN\_VARIABLE] gcode: variable\_act…

I’m a little surprised I’m the first one to encounter such issues. There is no official example of M106 configuration for multi-extruder printers, so everyone writes their own macros and, as it turns out, some of them are too stressful, especially in combination with adaptive cooling, when the slicer issues a lot of these commands in a short period of time.  
I suggest adding computationally expensive macros with lots of conditions and variable accesses to the list of potential causes for this “Timer too close” error

---

_[View the full topic](https://klipper.discourse.group/t/timer-too-close-multiple-fans/19218)._
