Page 1 of 2
Spindle Fan M Code
Posted: Mon Apr 06, 2020 8:34 am
by mick41zxr
As the title say's, is there a standard spindle cooling fan M Code.
I have assigned the fan to an Output (output 1 currently, also assigned in the wizard) & would like to turn the fan on or off with a command.
Also is there a way to have the fan run time controlled by Acorn PLC is is it best done
with a separate run on timer relay.
Thanks,
Michael
Re: Spindle Fan M Code
Posted: Mon Apr 06, 2020 9:27 am
by Gary Campbell
Try configuring that output as "SpindleBrake" and see how it works for you
Re: Spindle Fan M Code
Posted: Mon Apr 06, 2020 10:31 am
by slodat
I use an interposing relay triggered from SPINFWD and SPINREV. These then switch the spindle vfd FWD and REV signal as well as power up an
RS Pro 8966822 off delay timer. It's set at a 5 minute time delay. So, when spindle is started in either direction, fan is started and stays running until after the last time it's stopped. Works well and is automatic.
Re: Spindle Fan M Code
Posted: Mon Apr 06, 2020 1:33 pm
by cncsnw
There is not a "standard" one. There is example code in the sample M55 and M56 codes showing how to make them control the SpindleCooling output (by setting and resetting request #31).
Re: Spindle Fan M Code
Posted: Mon Apr 06, 2020 3:18 pm
by martyscncgarage
mick41zxr wrote: ↑Mon Apr 06, 2020 8:34 am
As the title say's, is there a standard spindle cooling fan M Code.
I have assigned the fan to an Output (output 1 currently, also assigned in the wizard) & would like to turn the fan on or off with a command.
Also is there a way to have the fan run time controlled by Acorn PLC is is it best done
with a separate run on timer relay.
Thanks,
Michael
If you can put a temp sensor on the motor you can use it to directly control the relay that the fan motor controls. You would probably not want to control it, rather have it come on at a certain temp and off when the motor cools to that temp. Wouldn't you want the fan to cool the motor after the motor is shut down? Just a thought....
Re: Spindle Fan M Code
Posted: Mon Apr 06, 2020 3:19 pm
by martyscncgarage
martyscncgarage wrote: ↑Mon Apr 06, 2020 3:18 pm
mick41zxr wrote: ↑Mon Apr 06, 2020 8:34 am
As the title say's, is there a standard spindle cooling fan M Code.
I have assigned the fan to an Output (output 1 currently, also assigned in the wizard) & would like to turn the fan on or off with a command.
Also is there a way to have the fan run time controlled by Acorn PLC is is it best done
with a separate run on timer relay.
Thanks,
Michael
If you can put a temp sensor on the motor you can use it to directly control the relay that the fan motor controls. You would probably not want to control it, rather have it come on at a certain temp and off when the motor cools to that temp. Wouldn't you want the fan to cool the motor after the motor is shut down? Just a thought....
You can assign it to anyone of the Aux buttons on the VCP. Press one not used and you'll get a message....
Re: Spindle Fan M Code
Posted: Tue Apr 07, 2020 2:51 am
by mick41zxr
Thanks CNCNW,
Found that the m94 /31, m95 /31 will turn cooling fan on & off when assigned in wizard.
Possibly include a run on timer and/or a thermo switch as Marty suggests.
Regards,
Michael
Spindle Fan Delay Off Relay
Posted: Thu Apr 16, 2020 9:04 pm
by fusion
I'm trying to get my spindle fan to come on when the spindle starts, and stay on. When the spindle stops, I want the fan to stay off for a set period of time. I tried this delay off relay.
https://www.amazon.com/gp/product/B07CG ... UTF8&psc=1
I was connecting output 7 to it that was triggered by the spindle brake release function. This relay only stays on for the set period of time, then turns off.
Do they make a relay that will stay on as long as the output is high, then stay on for the set period of time, and then turn off?
Thanks!
Mike
Re: Spindle Fan M Code
Posted: Thu Apr 16, 2020 10:16 pm
by slodat
I posted a link to the one I used above.
Re: Spindle Fan M Code
Posted: Thu Apr 16, 2020 11:09 pm
by cncsnw
Remove the old "SpindleCooling" block from somewhere around line 4100.
Add the following timer definition and code:
Code: Select all
SpindleStopped_T IS T33
; ...
IF SpindleEnableOut_O THEN SET SpindleCooling, RST SpindleStopped_T
IF !SpindleEnableOut_O THEN SpindleStopped_T = SV_MACHINE_PARAMETER_175 * 1000, SET SpindleStopped_T
IF SpindleStopped_T THEN RST SpindleCooling
Set the spindle off-delay time, in seconds, in Parameter 175.