- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fan index not used in m106 when cooling fan number is 0 #11152
Comments
From the MarlinFW.org description of M106: I think more information is needed. You have customized your printer. It's a third party printer with a 4th party mainboard, probably 5th party firmware and was altered by a 6th party. That being said - what I see in the gcode I generate (with my virtual machine) should work. |
Hi, my issue is similar to #8521. Let me clarify some things: I have Ender 5 with e3d chimera dual extruder (2 in 2 out). For part cooling both nozzles share one fan, which is a popular solution (e.g. https://www.thingiverse.com/thing:2947851), since it really isn't necessary to have independent fan on each nozzle. For my mainboard I have BTT SKR PRO, which has 3 pwm fan ports, correctly defined in Marlin as Fan0-2. When having multiple fan pins defined in marlin, the M106/107 command defaults to For a month I bypassed this issue by only having fan0 defined in marlin, therefore m106/107 worked as expected, but now I need fan1 for heated chamber. The P argument is passed to M106 in cura if cooling fan number is anything other than 0, therefore I don't see the problem why not pass it if cooling fan number is 0. |
That helped. |
Search and Replace would most certainly work, however this is more a temporary workaround and at least for me not the satisfactory long-term solution. |
See discussion around #4259 (comment) |
How about you change the label "Cooling fan number" to "Custom cooling fan number" and -1 is disabled/don't send P parameter, any other non-negative number would however force the use of P parameter? Or if anyone can help me configure cura so that both hotends T0 and T1 use the same fan, that would be even better, as that reflects the real world setup better. Forcing cura to send parameter P is a workaround anyway, as the printer firmware should have it defined which fan is used for which hotend... |
As you say:
And as Marlin's documentation for M106 says:
If it can select Fan1 when no fan index is given, and Fan1 is not a print cooling fan, then that is a direct conflict with the g-code specification given by your firmware. I think this problem is between your hardware and your firmware then. It seems that Marlin expects that both Fan0 and Fan1 are print cooling fans.
The problem with this is that this can give errors for printers that don't implement the P parameter. Many printers just stop the print when they encounter g-code that they don't understand. This prevents people from printing altogether with certain brands because someone somewhere connected up a fan wrongly in their custom printer mods. Now we could build more settings that turn this behaviour on or off, but if it's just for one printer that has wrongly connected fans, I'd say that the workaround with Search and Replace should do fine. |
@ladismrkolj - If it was mine I might be inclined to wire the enclosure exhaust fan to the Fan 2 connection on the MB. With M106 P2 S255 in the StartUp G-Code and M106 P2 S0 in the Ending G-Code it would be powered and shut off with the print. That would eliminate the need for Search and Replace and Cura would never inadvertently refer to "P2". Just a thought anyway. |
|
I can understand the need for that, yes. Essentially, the root of the issue is that the value of |
Application Version
4.12.1
Platform
Mac/Win10
Printer
Ender 5 - with skr pro
Reproduction steps
When using two extruders with single part cooling fan, I set Cooling fan number to 0 for both extruders.
Actual results
M106 is sent without P0 index, therefore the fan only turns on for extruder T0, for T1 it doesn't work.
Expected results
I expected that both extruders would turn on same fan when active.
Checklist of files to include
Additional information & file uploads
It works as expected if cooling fan number is other than 0
The text was updated successfully, but these errors were encountered: