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! > MetalWorking Machines > Benchtop Machines


Benchtop Machines Discuss all mini mills sherline, taig, square column, round column and CNC mill conversions here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-23-2008, 06:04 PM
 
Join Date: Mar 2008
Location: USA
Posts: 5
jtodd is on a distinguished road
DRO feedback to CNC controller SW

Pardon my ignorance, but I'm rather new to CNC. Maybe this is something obvious, but I haven't found mention of it yet.

I've just purchased a vintage 2000 Shopmaster/Shoptask Eldorado 2000 (ball screws, stepper CNC, DRO.) I'm having a heck of a time working out the backlash, but from what I hear that is typical (.002-.005 on all axis measurements.)

It seems to me that there is an obvious solution for backlash, as well as a good "hint" for limit and home positions: the DRO. It seems obvious that the DRO actually "knows" where the X, Y, and Z positions are, regardless of how far the steppers are spinning. Why isn't it more common for the DRO to relay this information back to the computer head-end? It's a pretty obvious solution, but in the last few weeks of digging through this (and other) archives, I've never seen it mentioned. None of the CNC software that I've demo'ed (FlashCut, Mach 3) seems to have any provision for DRO feedback. The DRO I'm using looks like it has a spot on the bottom that is a DB-9 -shaped cutout, but there doesn't appear to actually be a serial feed.

Wouldn't this solve a huge number of headaches if the controller actually knew the real distances the steppers were driving the axis movements?

- backlash avoided
- blockage or collisions detected
- inaccurate stepper software configurations detected
- manual adjustment compensation reflected on controller
- more?

JT
Reply With Quote

  #2   Ban this user!
Old 03-24-2008, 08:21 AM
 
Join Date: Dec 2007
Location: Canada
Age: 48
Posts: 617
cam1 is on a distinguished road

Hi:
Just some thoughts.
Mechanical backlash (slop or play) cannot be avoided or repaired by positional feedback.
Most OEM's like Fanuc,Fagor etc have the provision to use positional feedback from optical scales (direct reading of position), as opposed to rotary encoders.
My rationale for the lack of this provision on lower end CNC controllers (no aspersion inteneded) is the requirement to be able to perform (I/O). They generally output pulses that are converted to rotary motion. These systems imply position. In order to be able to run closed loop, you would need to be able to read and compare the number of steps generated vs. the actual position. This tends to complicate things, and drive the cost up, as you need to be able to read/convert/compare/correct this data probably 10 times/s or faster.


regards
Reply With Quote

  #3   Ban this user!
Old 03-24-2008, 12:47 PM
 
Join Date: Mar 2008
Location: USA
Posts: 5
jtodd is on a distinguished road

Originally Posted by cam1 View Post
Hi:
Just some thoughts.
Mechanical backlash (slop or play) cannot be avoided or repaired by positional feedback.
Most OEM's like Fanuc,Fagor etc have the provision to use positional feedback from optical scales (direct reading of position), as opposed to rotary encoders.
My rationale for the lack of this provision on lower end CNC controllers (no aspersion inteneded) is the requirement to be able to perform (I/O). They generally output pulses that are converted to rotary motion. These systems imply position. In order to be able to run closed loop, you would need to be able to read and compare the number of steps generated vs. the actual position. This tends to complicate things, and drive the cost up, as you need to be able to read/convert/compare/correct this data probably 10 times/s or faster.
I do agree that it cannot stop backlash or prevent it. However, compensating for backlash during free operations seems to be fairly valuable, and even while performing cut tasks it seems like it would be useful to know where the tool was landing.

A serial port can operate at 115000bps, and there are certainly inexpensive and easiy-available chipsets that can push data fairly rapidly. Combined with very fast desktop machines, I would think that this would be easily possible at very high speeds if the DRO was able to provide X/Y/Z back to the controller. I don't know if I would say that the DRO would "control" the system in a closed loop fashion, but it would certainly help in zeroing points or curve vectors against reality instead of "guessing" based on belief of backlash hardcoded data and accuracy of steps. I'd think that the DRO would be frequently referenced, but not used as the canonical source which was used to provide pulse data to the steppers.

Just like modern networked computers use their internal clocks for time reference, but every few minutes or hours will go out and synchronize themselves with a stratum-1 time source to account for slop in their inexpensive crystals. I would think that every X milliseconds the controller would examine it's assumed positional data against that which was provided by the DRO and compare the two. If there is a minor discrepancy, repair it. If there is a large discrepancy, halt and alert the operator. If the machine is in a free move, then use the DRO as the actual position and reset internal assumed positional data so that the next cut is true to the zero position. (sorry if my nomenclature is off here - I'm still getting the handle on things)

I'm not arguing with you - I'm simply trying to figure out why this wouldn't be standard practice to improve accuracy and avoid burned out servos/steppers. It seems to be such a cheap way to improve performance, and I've not seen any references for it in Mach, which seems to be software that has every other bell and whistle imaginable.

JT
Reply With Quote

  #4   Ban this user!
Old 03-24-2008, 01:29 PM
 
Join Date: Dec 2007
Location: Canada
Age: 48
Posts: 617
cam1 is on a distinguished road

Hi: I agree that it's a great Idea, generally speaking though CNC machines always track positional following errors (always comparing commanded distance to achieved distance), and will fault out if the deviation is larger than the tolerance. I'm no expert on the topic, but I have gained some appreciation on how much work the processor has to do in order to scale input signals. In the end I'm convinced that if it was economically feasible to do it commercially, then it would have been approached. My guess is that alot of people use precision ballscrews and powerful steppers to overcome the uncertainty of losing position. Some older CNC machines (with worn ballscrews or failed rotary encoders) get retrofit for scales. DRO's with glass scales are alot cheaper than they used to be, so you may find someone else with the same interests.

regards

regards
Reply With Quote

  #5   Ban this user!
Old 03-24-2008, 01:51 PM
 
Join Date: Aug 2007
Location: USA
Posts: 149
Hans_G is on a distinguished road

Here's a good link explaining how common DRO's work: link

1) update rate is slow
2) nothing synchs the positional output, in other words, if I'm accelerating (like when interping a circle, where backlash is a problem) and I get a message from the DRO saying "I'm at X", the question is "when were you at X?"
3) most closed loop motion controllers use quadrature encoder, SSI, or resolver feedback. So the DRO communication scheme isn't compatible with existing motion controller schemes.

There's also a thread in this forum from a month ago where a guy in the UK hacked the DRO a bit to do some interesting things. Hasn't been updated in a while.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-25-2008, 10:34 AM
 
Join Date: May 2007
Location: holland
Posts: 27
bertmiller is on a distinguished road

i converter my x3 to xy cnc this way.
i used dro's explained on this website:
http://www.shumatech.com/support/chinese_scales.htm
they have the ability to update every 20ms.
with a speed of 1cm/s that relates to 0.2mm/20ms.
thats not fast and can indeed not be used for direct tracking of the table position.
i made an interface pcb with a 89s8252 that sends the data via the serialport to my computer with 9600 baud.
i solved the timeproblem to addapt my cnc program to move slowly when the table position has become within 0.5mm of the end position.
this results in great accuracy. last week i milled a 32.00mm wide box and my digital scale reads out 32.00mm.
here a video of my milling machine:
i have alot of backlash on my x3: 0.25mm (0.01")
but with this kind of feedback thats no problem at all.
but i cant make circles or round shapes, that would require faster feedback.
Reply With Quote

  #7   Ban this user!
Old 03-25-2008, 11:14 AM
 
Join Date: Mar 2008
Location: USA
Posts: 5
jtodd is on a distinguished road

Originally Posted by bertmiller View Post
i converter my x3 to xy cnc this way.
i used dro's explained on this website:
http://www.shumatech.com/support/chinese_scales.htm
they have the ability to update every 20ms.
with a speed of 1cm/s that relates to 0.2mm/20ms.
thats not fast and can indeed not be used for direct tracking of the table position.
i made an interface pcb with a 89s8252 that sends the data via the serialport to my computer with 9600 baud.
i solved the timeproblem to addapt my cnc program to move slowly when the table position has become within 0.5mm of the end position.
this results in great accuracy. last week i milled a 32.00mm wide box and my digital scale reads out 32.00mm.

i have alot of backlash on my x3: 0.25mm (0.01")
but with this kind of feedback thats no problem at all.
but i cant make circles or round shapes, that would require faster feedback.
That is very interesting! I am surprised you only went with 9600 baud - would not a faster baud rate make things better and allow you to make curves?

Is there a standard serial syntax for these type of events, or did you make your own protocol?

Also: what controller program are you using that allows for the feedback of DRO input? I think this is the most important and difficult part.

JT
Reply With Quote

  #8   Ban this user!
Old 03-25-2008, 12:05 PM
 
Join Date: May 2007
Location: holland
Posts: 27
bertmiller is on a distinguished road

i have made my own cnc program with delphi 4 with the ComDrv32 package.
this made it posible to do this. but puts up great barriers if i want to mill more complex shapes.
i made my own gcode as well. very simple x and y movements.

with 9600baud it would take about 3ms to transfer the data to the computer while the data is send each 20ms out of the dro scale.
didnt thought of using higher baudrates.

i have a feeling that the dro values i get in the program are lagging behind on the actual position and that its also a little random on high feed.
at highest speeds its 0.1mm lag. 10 times slower and its 0.01mm and this is the speed i finetune the position with great results. i stop the motor 0.05mm before i reached the endpoint. it takes about 5ms to stop the motor. also goes via serial port.

with the first testruns i did with this system i had conclude that i needed ballscrew and rotoryencoder feedback as well to make more complex shapes.

Last edited by bertmiller; 03-25-2008 at 01:07 PM.
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
DRO for position feedback Bill Clark General Electronics Discussion 0 05-04-2007 06:40 PM
Feedback Please! bumperscoot Industrial Hobbies (Support forum) 50 04-26-2007 09:10 AM
Surfcam feedback moldcore Surfcam 13 03-20-2006 06:10 PM
Need feedback on design. Mike F DIY-CNC Router Table Machines 19 02-13-2004 07:18 AM
v5 What's the feedback JuiceMan Visual Mill 7 12-06-2003 03:37 PM




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