Start Gcode for multiple print cooling fans

Basic Information:

Printer Model: RatRigstyle
MCU / Printerboard: Bigtreetech Octopus Pro
klippy.log (2.6 MB)

I have built a printer with two hotends that can be liftet up seperatly from each other.

Herefore I would like to be able to control each of the 2 part cooling fans separatly from each other over the slicer Simplify3D, by passing through the fanspeeds over the startGcode to klipper.
In the beginning the fan speeds could be saved as default with 0.

Has someone an idea how to write the start Gcode for this?

The simplify3d variable names/intended gcode commands i found look like this:
[fan_speed_percentage]

I’m not sure I understand what you are trying to achieve.
The parts’ fans are controlled by the G-code throughout the entire print. As such, it does not make sense to set them to some value in the starting G-code.

Thanks for your fast reply. I try to explain my lack of knowledge:

I have two hotends → so I need 2 x [heater fan] & 2 x [fan]

In klipper I can define several heater cooling fans.

" Heater cooling fans (one may define any number of sections with a “heater_fan” prefix)…"

But what I don’t understand is that it is just possible to define one [fan] (Print cooling fan).

To configure two print cooling fans on this way is wrong?:

And if I define two print cooling fans on this way they dont start turning when the gcode / print is startet:

I have never used IDEX or multi-head printers, but as far as I am aware, Klipper does not support this out of the box.
You will likely have to work with two generic fan objects like:

[fan_generic Tool_1_partfan]
pin: #some_pin_here

[fan_generic Tool_2_partfan]
pin: #some_other_pin_here

Then, depending on how the slicer emits the fan-controlling G-code, you can switch between one or the other fan via a macro.

I’m happily corrected or amended by someone with more experience with such machines.

You may try the solution on this thread: