Skip to content
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

Part Cooling Fan commands do not work after Select Tool command #104

Open
mik077 opened this issue Apr 17, 2022 · 11 comments
Open

Part Cooling Fan commands do not work after Select Tool command #104

mik077 opened this issue Apr 17, 2022 · 11 comments
Labels
help wanted Extra attention is needed

Comments

@mik077
Copy link

mik077 commented Apr 17, 2022

I am having an issue with GCode generated in Cura where the parts cooling fan does not turn on. Cura inserts a Select Tool command to select the second extruder (T1) at the start of the file. After this command is sent to the printer the Set Fan Speed command (M106) does not work if the fan index is not given. For example M106 S255 does not work, but M106 S255 P0 does work. There is no option in Cura that I can see to make it add the fan index to the M106 commands.

I tested this by sending T1 command to the printer and M106 S255. The fan does move momentarily sometimes but stops. Then when M106 S255 P0 is sent the fan runs as normal.

@mik077
Copy link
Author

mik077 commented Apr 17, 2022

I forgot to mention this is on a FlashForge Inventor running the precompiled firmware.

@moonglow
Copy link
Owner

Hi @mik077 ! I will try to check it soon, but i has only 1 head machine... anyway i will try to check firmware logic for such case. Thanx for report.

@moonglow moonglow added the help wanted Extra attention is needed label Apr 19, 2022
@mik077
Copy link
Author

mik077 commented Apr 19, 2022

No problem. I switched to the firmware with the hotend swap and it's resolved my Cura issue with the part cooling fan not turning on. Great job with the FF Marlin firmware by the way.

@Mrnt
Copy link
Contributor

Mrnt commented Apr 22, 2022

@moonglow line 2977 in configuration.h needs to be enabled:
//#define NUM_M106_FANS 1
I just verified this.

It looks like marlin assumes there is a part cooling fan for each head unless you specify the actual number of fans using NUM_M106_FANS. When you do M106 S255 it sets the speed for the fan associated with the active extruder, so selecting T1 means M106 S255 will try to turn on a non existent fan. You can specify the fan by using the fan index: M106 P0 S255

Mrnt added a commit to Mrnt/FlashForge_Marlin that referenced this issue Apr 22, 2022
@moonglow
Copy link
Owner

Thank you @Mrnt ! I check it right now and all works as expected, cooling fan works OK for both extruders ! Thank you !

@moonglow
Copy link
Owner

moonglow commented May 4, 2022

@Mrnt Hm... take a look please HERE. Looks like we need to stay FAN counts as it was and maybe create fake FAN for second extruder and make CHAMBER FAN has index 3 ?... it will looks like FAN1 and FAN2 is actually same FAN... hm need to find a logic about how does Marlin control cooling fans for two extruders.

@moonglow moonglow reopened this May 4, 2022
@Mrnt
Copy link
Contributor

Mrnt commented May 4, 2022

Will take a look

@Mrnt
Copy link
Contributor

Mrnt commented May 6, 2022

Looks like making a second dummy fan for the same fan does not work, ie FAN_PIN = real cooling fan, FAN1_PIN = FAN_PIN, FAN2_PIN as chamber fan - I can't get the cooling fan to turn on with M106 P0 S255 or M106 P1 S255 with that configuration.

What does work is defining FAN_PIN only and then setting CHAMBER_AUTO_FAN_PIN to be the chamber fan - this will automatically turn on the chamber fan when it gets to 45 degrees, but M106 will no longer control the chamber fan...

@Mrnt
Copy link
Contributor

Mrnt commented May 6, 2022

Reading through the bug reports in Marlin related to chamber fans it appears that M106 is meant only for part cooling - if you want to control the chamber fans manually they are suggesting using M42. The implementation of fan control seems very convoluted and not very flexible...

@moonglow
Copy link
Owner

moonglow commented Aug 8, 2022

I found a nice ( actually not ^_^ ) solution to make rear case fan works as expected and part cooling fan together, i will update such patches for next 2.0.9.5 release pack, after fix some other issue due Marlin another big source code updates :)

@moonglow
Copy link
Owner

moonglow commented Oct 3, 2022

@mik077 and @Mrnt you can now try latest builds ( 0.15.0 ) now all works as expected ( some fixes was applied to Marlin code base ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants