CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-08-2005, 04:13 PM
 
Join Date: Jun 2004
Location: United States
Posts: 137
gregmary is on a distinguished road
CNC Controlled Spindle motor speed control

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
Reply With Quote

  #2  
Old 01-09-2005, 02:21 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

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.
Reply With Quote

  #3   Ban this user!
Old 01-09-2005, 10:19 PM
 
Join Date: Jun 2004
Location: United States
Posts: 137
gregmary is on a distinguished road

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.
Reply With Quote

  #4  
Old 01-10-2005, 09:35 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

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.
Reply With Quote

  #5   Ban this user!
Old 01-10-2005, 05:14 PM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,357
Bubba is on a distinguished road

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)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-10-2005, 06:39 PM
 
Join Date: Jun 2004
Location: United States
Posts: 137
gregmary is on a distinguished road

Thanks,

I will look into the digispeed control. I would like to follow a standard protocol.

Greg
Reply With Quote

  #7   Ban this user!
Old 01-11-2005, 06:12 PM
aghobby's Avatar  
Join Date: Feb 2004
Location: Canada
Posts: 93
aghobby is on a distinguished road

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
Reply With Quote

  #8   Ban this user!
Old 01-16-2005, 02:08 PM
 
Join Date: Jun 2004
Location: United States
Posts: 137
gregmary is on a distinguished road

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
Attached Thumbnails
Click image for larger version

Name:	speed.JPG‎
Views:	522
Size:	42.7 KB
ID:	4671  
Reply With Quote

  #9   Ban this user!
Old 01-24-2005, 06:02 PM
 
Join Date: Jun 2004
Location: United States
Posts: 137
gregmary is on a distinguished road

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.
Reply With Quote

  #10   Ban this user!
Old 01-24-2005, 06:16 PM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,357
Bubba is on a distinguished road

Greg,
Looking forward to seeing the results of your efforts! Hope you will share the necessary diagrams, coding etc.
__________________
Art
AKA Country Bubba (Older Than Dirt)
Reply With Quote

Sponsored Links
  #11  
Old 03-03-2005, 12:18 AM
miljnor's Avatar
S.N.A.F.U.
 
Join Date: Jan 2005
Location: usa
Posts: 1,844
miljnor is on a distinguished road

has there been any progress on your spindle controler gregmary?

just now starting the research on the electronics for my nc.
Reply With Quote

  #12   Ban this user!
Old 03-15-2005, 12:03 AM
 
Join Date: Jun 2004
Location: United States
Posts: 137
gregmary is on a distinguished road

I have finished with the schematic but have gotten side tracked on getting it breadboarded.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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




All times are GMT -5. The time now is 11:15 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361