Check hotend FAN RPM
-
@tecno - Mine also starts at 45 degrees. Basically, you're right. That is, provided that everything works. The moment the fan is broken or blocked by some dirt, you have a problem. I wouldn't start dealing with it until it happened to me. For example, PRŮŠA checks both fans.
-
@petrkroupa like i said.
Create the deamon.g file in sys folder. Check there your rpm from object model.
Note: deamon.g will run every 10sec, so your check can be delayed 10sec. But i think, this should not be a problem... -
@cosmowave - OK, thanks. I will try.
-
@cosmowave - I can not find "fans" or RPM in objects. Do you please have some link with right sintax. Many thanks.
-
@petrkroupa I think the rpm is somewhere in the "sensors"
i'm not at the machine now... -
@cosmowave said in Check hotend FAN RPM:
Note: deamon.g will run every 10sec, so your check can be delayed 10sec. But i think, this should not be a problem...
If you want it to run more frequently, use a while-loop in daemon.g - but include a G4 delay command (e.g. G4 S2 to delay two seconds) within the loop, to prevent it using too much CPU time.
-
I tried to find the right object but I was not successful. Please send where to look. Thanks
-
@petrkroupa it's fans[N].rpm where N is the fan number.
-
@dc42 - Many thanks! I will put here whole code when it works.
-
It can definitely be improved a lot, but it is enough for the basic function. Thanks to everyone for the help.
daemon.g
G4 S1 if heat.heaters[1].current > 55 && heat.heaters[1].current < 1000 ; hotend temp more than 55c ? ; hotend temp more than 55c ?, termostacic fan set to 45c (fan have time to start spin) if fans[1].rpm < 500.0 ; hotend fan spining faster than 500rpm? M150 R128 ; Neopixel red! M104 S0 ; set hotend temp to 0c M291 P"Hotend fan error!!!" S1 M98 P"pause.g" ; run pause.g else ;M150 U128 ; Neopixel green else ;M150 U128 ; Neopixel green G4 S1