best way to allow spindle to come up to speed before moving?

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

Post Reply
tomj
Posts: 45
Joined: Sun Mar 01, 2020 6:13 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: 0401202408
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: georgia, USA
Contact:

best way to allow spindle to come up to speed before moving?

Post by tomj »

Router retrofit, allinonedc, new user. I need to give the 18000 rpm spindle a few seconds to come up to speed before its first z move. Is this configurable in cnc12 or something I need to add in the post?
1000's of industrial items for sale at industrialtoolandmachineworks.com
cncsnw
Posts: 3848
Joined: Wed Mar 24, 2010 5:48 pm

Re: best way to allow spindle to come up to speed before moving?

Post by cncsnw »

There is nothing built into CNC12 that will work in your situation, since you do not have a spindle encoder.

If you are okay with the same wait time regardless of the commanded RPM, you could just edit your mfunc3.mac file (and mfunc4.mac, if you ever run the spindle in reverse) to include "G4 P__" (you fill in the number of seconds you need) after the last line.

If you want to wait only until the spindle is actually up to the commanded speed, then you could:
a) program your frequency drive to provide an "at speed" output
b) wire that output to any available PLC input on the Allin1DC
c) add an M101/500__ line at the end of your mfunc3.mac file (fill in the input number: e.g. if you wire the at-speed signal to PLC INP14, then the wait command would be M101/50014).

In the unlikely event that you have a spindle rotation encoder, then you can get an automatic wait using Parameters 78 and 149.
tomj
Posts: 45
Joined: Sun Mar 01, 2020 6:13 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: 0401202408
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: georgia, USA
Contact:

Re: best way to allow spindle to come up to speed before moving?

Post by tomj »

the G4 P# will be just fine.
thanks
t
1000's of industrial items for sale at industrialtoolandmachineworks.com
tomj
Posts: 45
Joined: Sun Mar 01, 2020 6:13 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: 0401202408
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: georgia, USA
Contact:

Re: best way to allow spindle to come up to speed before moving?

Post by tomj »

I just looked at the files on my machine, and there are probably 50 instances of mfunc3.mac what is the best way to locate the one I need to modify? my machine is a basic installation without atc probing or anything, really.
thanks
tom
1000's of industrial items for sale at industrialtoolandmachineworks.com
cncsnw
Posts: 3848
Joined: Wed Mar 24, 2010 5:48 pm

Re: best way to allow spindle to come up to speed before moving?

Post by cncsnw »

It sounds like you need to do some hard drive cleanup.

In a normal router (mill) installation, the control software is in the c:\cncm directory. The working mfunc3.mac file will be there.
tomj
Posts: 45
Joined: Sun Mar 01, 2020 6:13 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: 0401202408
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: georgia, USA
Contact:

Re: best way to allow spindle to come up to speed before moving?

Post by tomj »

Thanks, some may be from other configurations that were part of the download package but not installed. There's actually nothing on there but a few utilities and centroid..
1000's of industrial items for sale at industrialtoolandmachineworks.com
cncsnw
Posts: 3848
Joined: Wed Mar 24, 2010 5:48 pm

Re: best way to allow spindle to come up to speed before moving?

Post by cncsnw »

Yes, if you unpacked the installation package onto your hard drive, then there will be many files inside the "mpuplcprograms" folder. None of those have any bearing on how your control runs.
Post Reply