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! > Machine Controllers Software and Solutions > General CNC (Mill and Lathe) Control Software (NC)


General CNC (Mill and Lathe) Control Software (NC) General Discussion of CNC (Mill and Lathe) control software here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-20-2008, 01:37 PM
 
Join Date: Oct 2008
Location: UK
Posts: 4
frservo is on a distinguished road
low cost USB/Serial controller for mill

Here goes nothing:

Background:
I run a (very) small electronics company and we use several mills running TurboCNC. It works great but we need to run faster, better (closed loop servo) and not rely upon ancient operating systems and PC's. I love the TurboCNC interface simplicity. I've tried MACH but really had enough of printer interfaces. I like the look of the Gecko controller but still feel this isn't quite what I want.

Low Cost Controller:
So I've designed a small controller board and PC based program (written in Liberty Basic so works with Vista/XP (and Macs in future)). The controller has a DSP and FPGA on-board and communicates via a low-speed optocoupled serial port (RS232) - the prototypes actually have a USB port on them with a built in USB-RS232 converter IC.

The controller currently drives 3 sets of step/dir ports (although we will add at least one more) and has a bunch of I/O for control, analog output voltages for speed control, encoder pulse counters, jogwheel interfaces, estops, limit & datum switches, etc...

There is no (practical) limit on the max/min pulse rate we can generate and the controller handles nearly everything without PC intervention (the PC sends very simple commands to the controller - not far short of pure G-code).

The aim is to be able to run the mill very robustly (all safety, tool & machine paramaters settings, etc... are stored on the controller boards; so can use any PC in the office. Just dowload the code from the website, take a single USB lead from the PC to the controller board and mill away - our test record is under 5 mins from download to milling (on a pre-configured controller board).

Proposal:
If we can get enough initial interest (frservo@gmail.com) then we will 'productionize' our code and hardware and make it available (late Dec).

At present the thought is that we sell the controller board fully built-up/tested and give the PC software away free (or at minimal charge), this allows us to add more functions and sortout any software/firmware bugs. Estimate the controller board to be $150-$200 and available worldwide.
Reply With Quote

  #2   Ban this user!
Old 10-21-2008, 01:16 PM
 
Join Date: Feb 2007
Location: USA
Posts: 2
calegatter is on a distinguished road

What type of control are you using?
Reply With Quote

  #3   Ban this user!
Old 10-21-2008, 01:27 PM
 
Join Date: Oct 2008
Location: UK
Posts: 4
frservo is on a distinguished road

control?

we have written our own front-end (similar in look and feel to TurboCNC), this then talks to the 'controller' board where all the motion control is processed and this drives sets of step/dir lines.

the controller board has full control of the mill at all times - so things like hitting 'halt' or estop are handled in a very controlled fashion (no danger of losing position), all the PC ends up doing is parsing the G-code (for errors), packing it up and sending it down the serial bus (USB/RS232), at 115kbaud we get something like 500 lines of code a second into the control board, this can be buffered and we can increase the speed of the bus much further - so 3D mould making is a possibility - G02/G03 are processed on the control board so curves are accurately reproduced.
Reply With Quote

  #4   Ban this user!
Old 10-21-2008, 01:32 PM
 
Join Date: Feb 2007
Location: USA
Posts: 2
calegatter is on a distinguished road

Sorry, my question was directed at what type of motion control approach you are using (i.e. PID, State Feedback etc.)

Thanks
Reply With Quote

  #5   Ban this user!
Old 10-21-2008, 03:49 PM
 
Join Date: Oct 2008
Location: UK
Posts: 4
frservo is on a distinguished road

The trajectory generators (in the DSP) generate desired position per iteration (with acceleration parameters used). This then feeds separate code and the FPGA with a proprietary method of generating fine-grain pulse trains. My initial prototype used (PID) servo routines & servos amps (I built these into the prototype, which I prefer) - but the current mills use step/dir Gecko drives. It is actually easier to build in 4 PID controlled DC servo amplifiers into the control board than adding the FPGA.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-21-2008, 03:55 PM
 
Join Date: Oct 2008
Location: UK
Posts: 4
frservo is on a distinguished road

Clearly the servo version (proto's) used a 2 ch. opto encoder (we didn't bother implementing the 3rd channel). The stepper version can run without an encoder or with our own absolute magnetic encoder or a stock 2ch. By using the abs.mag encoder we don't need to datum the machine, so long as each stepper hasn't moved more than 180degrees whilst switched off we know exactly where the machine is.
Reply With Quote

  #7   Ban this user!
Old 10-22-2008, 10:14 PM
 
Join Date: Feb 2006
Location: england
Posts: 64
integerspin is on a distinguished road

I have been looking at the various controlers I might well be interested in yours. Any more details?
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
Low cost 6 axis USB motion controller Xerxes Granite Devices 69 02-05-2011 06:06 AM
New low cost CNC Controller, USB, Windows XP based! bert_eding Product Announcements & Manufacturer News 13 10-25-2009 03:14 PM
serial port controller eloid Servo Motors and Drives 1 03-09-2007 09:49 PM
I need a low cost upgrade controller for my CNC Router ReefkeeperCNC General CNC (Mill and Lathe) Control Software (NC) 10 09-08-2006 08:01 PM




All times are GMT -5. The time now is 06:28 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