Notifications
Clear all

GCODE Question - Starting fan  

  RSS
cwbullet
(@cwbullet)
Member
GCODE Question - Starting fan

If I enter:

{if [layer_num] == 10}M106

Will this turn of the fan for all layers 10 and above or until I turn the fan off?  

--------------------
Chuck H
3D Printer Review Blog

Opublikowany : 10/03/2021 12:54 am
Clarmrrsn
(@clarmrrsn)
Honorable Member
RE: GCODE Question - Starting fan

AFAIK Chuck you are only able to turn the fan on at layer 10 in the GCODE file with M106, then switch it off with M107.

Can set the speed, etc but C++ commands are intended only for the Firmware, sure the printers are only able to interpret marlin GCODE commands as per the following format.  Set Fan Speed | Marlin Firmware (marlinfw.org)

I could be wrong, it has been known before 🙂

This post was modified 4 years temu by Clarmrrsn

Tank you very much!

Opublikowany : 10/03/2021 1:34 am
bobstro
(@bobstro)
Illustrious Member
RE: GCODE Question - Starting fan

That command (followed by {endif}) will insert M106 at layer 10. That will stay in effect until changed. Hard to say when it might be changed though, esp. with variable cooling in the slicer.

So you want cooling fan off above layer 10?

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Opublikowany : 10/03/2021 1:34 am
Clarmrrsn
(@clarmrrsn)
Honorable Member
RE: GCODE Question - Starting fan

Hmmm, so you can custom code C++ into a GCODE file.

Interesting, well I'll be a monkeys uncle

Thought Bobstro would know the answer, clever lad 😉

Tank you very much!

Opublikowany : 10/03/2021 1:37 am
bobstro
(@bobstro)
Illustrious Member
RE: GCODE Question - Starting fan

It's very limited, but yes. Some notes and links here.

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Opublikowany : 10/03/2021 1:41 am
cwbullet
(@cwbullet)
Member
Topic starter answered:
RE: GCODE Question - Starting fan

@bobstro

No.  Not layer 10.  I was using this as an example.  I am print nose cones with ABS.  The tip is always messed up.  I found that if I manually turn the fan on for the last 10 layers that it prints perfectly.  I just need to insert that in the Gcode.  I need to figure that out by determining the number of layers.  

--------------------
Chuck H
3D Printer Review Blog

Opublikowany : 10/03/2021 1:43 am
bobstro
(@bobstro)
Illustrious Member
RE: GCODE Question - Starting fan

I found the easiest way to do this was use the minimum layer time cooling settings. Observe the layer times as your print heard the tip, and have it kick cooling on for the quick layers. I've got some notes on doing this in my PPE printing notes. It's a manual process unfortunately. If most of your cones are similar, you should be able to find a good range.

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Opublikowany : 10/03/2021 1:55 am
bobstro
(@bobstro)
Illustrious Member
RE: GCODE Question - Starting fan

"nears the tip". Stupid short edit window.

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Opublikowany : 10/03/2021 2:03 am
cwbullet
(@cwbullet)
Member
Topic starter answered:
RE: GCODE Question - Starting fan

@bobstro

That is perfect.  I will try that.  It is much easier than GCODE.  

--------------------
Chuck H
3D Printer Review Blog

Opublikowany : 10/03/2021 2:47 am
Share: