Improved powering on the Elegoo ''Open Neptune 4 Plus'' Large Cooler.

I want to share my macro for the Elegoo OpenNeptune 4 Plus. The changes can most likely be used for other printer models. It definitely will not work with the original Elegoo software!

Before you make any changes yourself, be sure to save a copy of your existing "printer.cfg" file.

The [gcode_macro LOAD_FILAMENT] and [gcode_macro UNLOAD_FILAMENT] macros were fixed with the help of Gemini AI. Now, you no longer have to manually input the heating command before performing these actions. The biggest success is the implementation of a large cooling fan. I plugged the large fan into the Fan4 socket. Nothing needs to be rewired; just disconnect it from Fan2 and plug it into Fan4. You can also choose another socket, but then the correct number will need to be defined in the macros. Now, Fan4 turns on when Fan0 starts operating at 83.5% power. As Fan0's power increases, Fan4's speed also increases proportionally. The large cooling fan now activates on overhangs, bridges, and when the layer time decreases to the time specified in the slicer. To turn it on and off manually, you can use M106 P4 Sxxx and M107 P4 Sxxx. If you only use M106 Sxxx or M107, only the main cooling fans will turn on. To finally stop Fan4 from running at the end of a print, M107 P4 must be added to the [gcode_macro PRINT_END] macro, immediately after M107.

You can find all the macros in the Fan4 file.

I hope I didn't forget anything!

Good luck!

########################################################################################################
Another idea how to operate the big cooling fan. My idea, written in Gemini AI.
!!! Not yet tested in action !!!

Of course! That's a great idea to achieve even more precise fan4 control, essentially making it mimic fan0's operation, but only when fan0 reaches a certain minimum speed.

This approach is very logical, as it retains the slicer's modulation and has already proven effective in your tests.

We can modify the existing [gcode_macro M106] macro to behave like this:

If fan0's speed is below a certain threshold, fan4 is completely off.

If fan0's speed is at or above this threshold, fan4 repeats fan0's speed.

Here's how it would look in your printer.cfg file. I'll assume you want fan4 to start only when fan0 is at least 80% speed (as we defined it previously).

Ini, TOML

UPDATED M106 MACRO WITH FAN4 SPEED MIRRORING

[gcode_macro M106]
gcode:
{% set target_fan_name = 'fan' + (params.P|int if params.P is defined else 0)|string %}
{% set requested_speed_raw = params.S|float if params.S is defined else 255 %}
{% set requested_speed_normalized = requested_speed_raw / 255 %}

# Sets the speed for the target fan (fan0, fan3, fan4, fan5, etc.)SET_FAN_SPEED FAN={target_fan_name} SPEED={requested_speed_normalized}# Conditional control for fan4 based on fan0 speed{% if target_fan_name == 'fan0' %}    {% set fan4_activation_threshold_raw = 204 %}   ; Fan0 speed (0-255) at which Fan4 starts mirroring fan0 speed (approx 80%)    {% if requested_speed_raw >= fan4_activation_threshold_raw %}        ; Fan4 mirrors fan0 speed        SET_FAN_SPEED FAN=fan4 SPEED={requested_speed_normalized}        M118 S"Fan4: Mirroring Fan0 speed (%d). Fan4 speed: %.2f."|format(requested_speed_raw, requested_speed_normalized)    {% else %}        ; Fan4 is off        SET_FAN_SPEED FAN=fan4 SPEED=0.0        M118 S"Fan4: Off (Fan0 speed < %d)."|format(fan4_activation_threshold_raw)    {% endif %}{% endif %}

Changes and their explanation:

Simplified logic block: Now there's only one threshold - fan4_activation_threshold_raw.

Speed mirroring:

If fan0's raw value (requested_speed_raw) is at or above fan4_activation_threshold_raw (default 204 or 80%), then fan4's speed (SET_FAN_SPEED FAN=fan4 SPEED={requested_speed_normalized}) is set to be exactly the same as fan0's speed (requested_speed_normalized). This means fan4 precisely mimics fan0's speed throughout the range from the threshold to 100%.

If fan0's raw value is below fan4_activation_threshold_raw, fan4 is fully turned off (SET_FAN_SPEED FAN=fan4 SPEED=0.0).

Console messages: The M118 messages have been updated to reflect this new logic.

To implement these changes:

Open your printer.cfg file.

Find the existing [gcode_macro M106] section and replace it with the new code shown above.

Save the printer.cfg file.

Restart your Klipper firmware.

This version should provide a very intuitive fan4 operation – it will come to life and follow the main part cooling fan only when additional cooling is truly needed. Try it out and let me know the results!