Page 1 of 1
spindlecoolingfan on m37
Posted: Fri Sep 29, 2023 8:35 pm
by cryptonym
The SpindleCoolingFan comes on when the M37 is entered to turn on the laser. I know this was not happening in 4.82, not sure about after that. How can this be prevented?
I use SpindleCoolingFan to run my water pump on the spindle. Makes no sense to do that while lasering. I use this output since it automatically turns on and off with the m3/4/5.
Re: spindlecoolingfan on m37
Posted: Sat Sep 30, 2023 6:27 pm
by grossmsj
M37 is the M-code for laser enable. That hasn't changed.
It's hard to know what's changed without a report file. The assignment of a couple of AUX keys has changed from 4.82 to current version, so it's possible that may be a cause. I use spin_brake to trigger the cooling pump on my machine since I also have a laser and don't need it when the laser is enabled.
Re: spindlecoolingfan on m37
Posted: Mon Oct 02, 2023 5:00 pm
by cnckeith
cryptonym wrote: ↑Fri Sep 29, 2023 8:35 pm
The SpindleCoolingFan comes on when the M37 is entered to turn on the laser. I know this was not happening in 4.82, not sure about after that. How can this be prevented?
I use SpindleCoolingFan to run my water pump on the spindle. Makes no sense to do that while lasering. I use this output since it automatically turns on and off with the m3/4/5.
post a fresh report.zip please. thanks,
Re: spindlecoolingfan on m37
Posted: Fri Oct 06, 2023 6:36 pm
by cryptonym
I've gone through all I can think of and something changed with the logic on the spindlefan. M37 should not turn it on. Behind the scenes I know a M37 is basically enabling the PWM, similar the M3/M4. The fan logic needs to detect m37 is active and not come on I believe. I've attached a report in case someone sees something.
I sorted out a bad pin issue on my laser assembly, but it was affecting the crosshair, not the laser itself. The module functions fine, but the spindlefan output comes on while the laser is in use.
Re: spindlecoolingfan on m37
Posted: Tue Oct 10, 2023 9:00 am
by Allin1Chris
Hello cryptonym,
It does make sense to not turn on the spindle fan when the laser is active. I have taken your plc from your report and modified it to prevent the spindle cooling fan output when M37 is active. To install simply extract the contents of the .zip into your C:\cncm directory and overwrite files, ensure to power cycle the system after installing the files.
These changes should also show up in the next revisions of software as well.
Re: spindlecoolingfan on m37
Posted: Tue Oct 17, 2023 11:35 am
by cryptonym
Thanks, I will try it this weekend.