![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I thought I would let anyone interested know about a project I am workin on for my CNC wood router. The problem I am trying to solve is two fold, first an attempt to maintain a constant cutting bit speed under varying load conditions, and second to generate a fault to the CNC if the spindle motor stalls. When cutting wood the bit can not be too fast or the chips produced are too small and do not carry away the heat generated and the wood burns. If the bit is turning too slow the router stalls. It is a bit of a balancing act to get the feed rate and the spindle speed just right. The problem I have is that when I get it just right, it doesn't stay just right. So, I am designing a circuit that interfaces to my CNC machine and provides a constant speed control. The inputs to the system from my CNC are: 1.) Spindle On 2.) Spindle Desired speed There is an output from my system that indicates a motor stall. I use a magnet mounted on my router shaft and a hall sensor to provide actual speed feedback to my circuit. I have a small microcontroller that takes all this info and controls a triac that controls the power to the spindle motor. Just for grins I also added a circuit that provides an LCD readout of the spindle speed. Right now the circuit is a bunch of breadboards spread over my work bench. I use TurboCNC to drive my machine and am working out how do define the desired spindle speed. I'll get some pictures taken of the breadboards. I just wanted to see if anyone is interestted in this project or has had similiar problems. Greg |
|
#2
| ||||
| ||||
| What is the nature of the signal from the CNC to the spindle for speed control? Does TurboCNC allow the normal S value for spindle speed? If so would it not be just a question of calibrating the (S)speed command to output. I assume your motor is a Universal type series motor, if so Have you tried using a Triac control with speed regulation built it? Al
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#3
| |||
| |||
| TurboCNC uses the parallel port to control the CNC machine. It uses the various inputs and outputs signals of the parallel port to create digital signals such as x-axis motor step and x-axis motor direction. You can use individual pins as general purpuse IO, but I don't know what it might do with a S spindle speed command, or how it would wiggle one of the outputs. This is one of my primary stumbling blocks--how does the computer communicate the desired speed to the CNC machine? I have tried using Triac control with speed regulation built in, as a matter of fact that is what I now use. The problem is that it is open loop. The circuit delivers a varing amount of power to the universal A/C motor. So as the load increases, the bit slows down. I want to close the loop on the bit speed by using actual spindle speed feed back. When the spindle loads down, give it more juice. |
|
#4
| ||||
| ||||
| In a normal CNC system, the control outputs an analogue or digital signal to the Spindle controller the value of which is entered in the S value and the M3 M4 determines the direction. In your case, I assume you just need one direction so the M function can be eliminated. But if you have 4 output lines available this would give 16 possibilities for speeds to your triac controller, which would then monitor and control the speed. But I assume the problem is going to be the ability of TurboCNC to interpret the S value and translate that to the port, unless TurboCNC has some kind of logic programming or parametric programming. The way it is done in a full-blown CNC system, regardless of make, is that there is a CNC control side (processor) that takes care of the axis motion and a co-processor that looks after the Mcode Spindle &Tool functions as well as all the mundane machine functions. When a S,M,T function is seen in the program it is passed over to the co-processor for implementation. It would also be usefull I guess if Turbocnc allowed the use of auxilliary cards, either digital or analogue. Al
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#5
| ||||
| ||||
| I know that TurboCnc is being outfitted to handle the DigiSpeed control and would think following this procedure should allow another controller. I have not yet gotten into the programming necessary, but it should be "simple" to configure that programming to accept other controllers. From memory, there are three pins need for this controller. I look forward to seeing this thread continue as I have a VFD on my mill that will accept either a 0-5 or 0-10V analogue input to control the speed..
__________________ Art AKA Country Bubba (Older Than Dirt) |
| Sponsored Links |
|
#7
| ||||
| ||||
| I'm using Mach2 software, it send pulse and dir signal to a small board thant convert it to 0-10V signal depending of the frequency of the pulse signal!! The board is wired to a vfd.
__________________ Alex www.ebfcnc.com |
|
#8
| |||
| |||
| The digispeed interface is a good one to use as a standard, they support three different interfaces though. I am thinking of using the step, diection approach and define each step to be a certain number of RPM. the g-code to shut the spindle down would stop it right away. Cheers, Greg |
|
#9
| |||
| |||
| I am finalizing the specification for the speed control. I will have a four wire interface for the CNC controller: inputs to the CNC controller: Step, Direction, Panic stop outputs from the speed controller: Fault. These input/outputs will be optoisolated since the speed controller will be using line voltage. There will be an optional input for the actual speed of the spindle. The only other two connections will be Line in, Line out and Netral. The line in and netral come from the power plug and the netral and line out go to the spindle motor. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CNC Glossary | CNCadmin | CNCzone Club House | 17 | 03-09-2008 03:08 PM |
| Augh. Too many choices in CNC control software | MadMax | General CNC (Mill and Lathe) Control Software (NC) | 4 | 07-08-2005 01:00 PM |
| HobbyCNC controller spindle control? | PranksterO | General Electronics Discussion | 6 | 07-26-2004 06:40 PM |
| Tutorial for Spindle Control | teilhardo | Xylotex | 29 | 06-22-2004 10:43 PM |
| CNC spindle and fluid control | replicapro | General Electronics Discussion | 0 | 06-22-2004 01:37 PM |