Spindle Fan M Code

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

mick41zxr
Posts: 181
Joined: Thu May 17, 2018 8:19 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Spindle Fan M Code

Post 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
Gary Campbell
Posts: 2190
Joined: Sat Nov 18, 2017 2:32 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: Yes
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: Acorn 238
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Bergland, MI, USA
Contact:

Re: Spindle Fan M Code

Post by Gary Campbell »

Try configuring that output as "SpindleBrake" and see how it works for you
GCnC Control
CNC Control & Retrofits
https://www.youtube.com/user/Islaww1/videos
slodat
Posts: 793
Joined: Thu Apr 12, 2018 11:16 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: Spindle Fan M Code

Post 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.
cncsnw
Posts: 3855
Joined: Wed Mar 24, 2010 5:48 pm

Re: Spindle Fan M Code

Post 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).
martyscncgarage
Posts: 9914
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Spindle Fan M Code

Post 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....
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
martyscncgarage
Posts: 9914
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Spindle Fan M Code

Post 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....
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
mick41zxr
Posts: 181
Joined: Thu May 17, 2018 8:19 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: Spindle Fan M Code

Post 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
fusion
Posts: 42
Joined: Wed May 09, 2018 7:54 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 0479B7ADF2F3-1127192707
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Greensboro, NC

Spindle Fan Delay Off Relay

Post 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
slodat
Posts: 793
Joined: Thu Apr 12, 2018 11:16 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: Spindle Fan M Code

Post by slodat »

I posted a link to the one I used above.
cncsnw
Posts: 3855
Joined: Wed Mar 24, 2010 5:48 pm

Re: Spindle Fan M Code

Post 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.
Post Reply