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 10-29-2009, 05:40 PM
 
Join Date: Oct 2009
Location: USA
Posts: 3
foobar42 is on a distinguished road
CNC conversion typically open loop or closed loop?

Hi,

I have a very basic question/confusion. From my point of view there are at least two basic types of CN control:

1. The controller/software sends stepper/servo signals according to some code and the hardware controller controls the steppers/servos accordingly (open loop).
or
2. Like 1., but the controller/software reads the DRO data to measure the actual travel (closed loop).

The second alternative allows exact (up to the accuracy of the DRO) absolute positioning regardless of backlash or any other mechanical issues, the first alternative does not.

Now my question: How are hobby conversions typically done: closed, open or something entirely different?

It seems to me that -if the software supports it- a closed loop system has tangible benefits and is not considerably more complicated than an off-the-shelf DRO. Are people doing this?

-Jan.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 10-29-2009, 05:56 PM
 
Join Date: Aug 2007
Location: USA
Posts: 139
Hans_G is on a distinguished road

I think the vast majority of benchtop CNCs run w/ Mach3 and EMC use open loop steppers. Whenever the "stepper vs. servo" topic comes up, most people vouch for steppers, citing simplicity (if properly designed) and lower cost. Personally, I use servos, but the encoders are integral to the motor. If you already have the scales for a DRO, it makes good sense to use them. I don't know much about getting the signals back to Mach3, I'm sure someone else will chime in. The glass scales on my lathe dro output single ended quadrature, which any number of servo or data acquisition systems can use.

I agree that it doesn't add much complexity, whether it's a true servo motor or a stepper with position compensation. There are motion controllers that will treat a stepper as a BLDC motor and run it as a servo (Copley Controls for one), but this approach limits motor performance compared to simple micro stepping.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 10-29-2009, 06:03 PM
 
Join Date: Feb 2006
Location: USA
Posts: 2,057
HimyKabibble is on a distinguished road

Originally Posted by foobar42 View Post
Hi,

I have a very basic question/confusion. From my point of view there are at least two basic types of CN control:

1. The controller/software sends stepper/servo signals according to some code and the hardware controller controls the steppers/servos accordingly (open loop).
or
2. Like 1., but the controller/software reads the DRO data to measure the actual travel (closed loop).

The second alternative allows exact (up to the accuracy of the DRO) absolute positioning regardless of backlash or any other mechanical issues, the first alternative does not.

Now my question: How are hobby conversions typically done: closed, open or something entirely different?

It seems to me that -if the software supports it- a closed loop system has tangible benefits and is not considerably more complicated than an off-the-shelf DRO. Are people doing this?

-Jan.
First, it is a myth the adding an encoder and "closing the loop" will somehow magically "fix" backlash. It can't and won't. All it can do is reduce the effects under certain circumstances. True precision and accuracy comes ONLY from a well-designed machine, with essentially zero backlash, operated with its limits.

Mach3 is "open loop", regardless of whether you use servos or steppers. Mach3 tells the machine where to do, and it is entirely up to the machine to go where it's told. A properly built, properly operated machine WILL do this 100% of the time, whether using steppers or servos. A badly designed or improperly operated machine may, or may not, do this. "Closing the loop" on a badly designed machine, or one that is operated outside its limits, will NOT magically transform it into a good machine.

EMC, apparently, will do true closed-loop control, at least with appropriate hardware.

Regards,
Ray L.
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 10-29-2009, 06:08 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 15,714
Al_The_Man is on a distinguished road
Buy me a Beer?

You have a couple of descriptions mixed in there.
Steppers generally are never closed loop as there is no feedback device, servo's operate with a feedback device of some kind and close the loop via a PID method.
With a system such as Mach where the control is through the parallel port, the loop is closed back to the servo drive, the loop is not closed back to the CNC controller (Mach).
The controller sends a command and assumes that the position will be reached.
With the addition of a motion card such as Galil, the control can close the loop back to the controller.
This has the advantage of features such as electronic cam and electronic gearing, as well as true synchronized threading and helical milling etc.
If you are also talking of DRO or scales on the final positioning, then dual feedback is required, an encoder on the motor and a scale on the final positioning device, the PID loop is then split between the two feedback devices.
Al.
__________________
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 10-29-2009, 06:09 PM
 
Join Date: Oct 2009
Location: USA
Posts: 3
foobar42 is on a distinguished road

Thanks to Ray and Hans for the responses.

Ray, could you elaborate a little more, why e.g. backlash is still an issue with a closed loop system? From my understanding, backlash is a problem in the mechanical coupling of the driveshaft and the table. Assuming I am able to read the position of the table exactly (up to epsilon precision), how would the backlash still affect me?

-Jan.

Originally Posted by HimyKabibble View Post
First, it is a myth the adding an encoder and "closing the loop" will somehow magically "fix" backlash. It can't and won't. All it can do is reduce the effects under certain circumstances. True precision and accuracy comes ONLY from a well-designed machine, with essentially zero backlash, operated with its limits.

Mach3 is "open loop", regardless of whether you use servos or steppers. Mach3 tells the machine where to do, and it is entirely up to the machine to go where it's told. A properly built, properly operated machine WILL do this 100% of the time, whether using steppers or servos. A badly designed or improperly operated machine may, or may not, do this. "Closing the loop" on a badly designed machine, or one that is operated outside its limits, will NOT magically transform it into a good machine.

EMC, apparently, will do true closed-loop control, at least with appropriate hardware.

Regards,
Ray L.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-29-2009, 06:17 PM
 
Join Date: Oct 2009
Location: USA
Posts: 3
foobar42 is on a distinguished road

Al, you are right, I wasn't particularly precise in my description.
I am referring to a setup independent of the particularities of the drive mechanism.
More abstractly, I am assuming that I have a means to measure the absolute position of the workpiece/table up to some precision, similar to a DRO. If I have this measurement available, can I not use this to control the drive mechanism? E.g.: the computer drives the X-axis until the measurement increased 5mil in value.

-Jan.

Originally Posted by Al_The_Man View Post
You have a couple of descriptions mixed in there.
Steppers generally are never closed loop as there is no feedback device, servo's operate with a feedback device of some kind and close the loop via a PID method.
With a system such as Mach where the control is through the parallel port, the loop is closed back to the servo drive, the loop is not closed back to the CNC controller (Mach).
The controller sends a command and assumes that the position will be reached.
With the addition of a motion card such as Galil, the control can close the loop back to the controller.
This has the advantage of features such as electronic cam and electronic gearing, as well as true synchronized threading and helical milling etc.
If you are also talking of DRO or scales on the final positioning, then dual feedback is required, an encoder on the motor and a scale on the final positioning device, the PID loop is then split between the two feedback devices.
Al.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 10-29-2009, 07:11 PM
 
Join Date: Aug 2007
Location: USA
Posts: 139
Hans_G is on a distinguished road

Yes, if you can measure the table position, you can use this to drive your motion control system, but your motion control system is probably going to be more sophisticated than the typical hobbyist mill.

And you can use DROs as the sole encoder. For steppers you would need a motor driver that accepts encoder feedback and compensates for position error. Again, Copely Stepnet amps do this as an example (I've used them, but I don't like them).

Practically any brushed dc motor servo amp could operate w/ a DRO as the sole feedback. A brushless DC servo amp can work well on just DROs if the BLDC's have hall sensors. If they don't have hall sensors, you'll need an amp that can perform hall-less commutation and a system without much backlash. Most modern digital BLDC amps can operate w/ encoder feedback only (no halls). I have worked with AMC digiflex and Copley Accelnet and Xenus amps in this way.
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 10-29-2009, 07:26 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 15,714
Al_The_Man is on a distinguished road
Buy me a Beer?

Some of the Galil on line instructional video's are worth checking out to get some precise idea of servo mechanisms in particular.
There is one that deals with dual feedback to eliminate backlash as a last resort.
http://www.galilmc.com/learning/tuto...sation-methods
These video's, although geared to Galil, are common to most PID loop systems.
Al.
__________________
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 10-29-2009, 08:21 PM
 
Join Date: Feb 2006
Location: USA
Posts: 2,057
HimyKabibble is on a distinguished road

Originally Posted by foobar42 View Post
Thanks to Ray and Hans for the responses.

Ray, could you elaborate a little more, why e.g. backlash is still an issue with a closed loop system? From my understanding, backlash is a problem in the mechanical coupling of the driveshaft and the table. Assuming I am able to read the position of the table exactly (up to epsilon precision), how would the backlash still affect me?

-Jan.
When you have backlash, the machining forces can and will push the tool around within the range of the backlash. So, if you have 0.005" of backlash on your X axis, and you command it to 0.000, it may be at 0.000 for part of the cut, then the machining forces can push it, essentially instantly, up to 0.005" one way or the other (depending on which side of the backlash you were on). Servos (and almost *any* closed loop system will be implemented as a servo, using a PID loop for control) do NOT react instantaneously. It takes time for the servo to realize its off position, and more time for it to decide the error is great enough to warrant correction, and more time to decide it needs to do something about it, and more time for the correction to actually take place. So, even in the simplest case, where the servo can quickly correct the position, you'll still end up with a "divot" in your part due to the short time the system was off position. In more complex cases, it is easy to get into a situation where the servo and the machining forces are fighting each other, and the system can start oscillating, leaving visible artifacts in the workpiece. This is precisely why encoders are typically fitted to the motors, not to the table. If there is *any* backlash in the system, there is a risk of instability as a result. The higher the system gain (and gains is what gives a servo "stiffness", the worse this problem. If you're going to be using feedback, you need to make very sure there is zero backlash between the encoder and the motor.

Regards,
Ray L.
Tweet this Post!Share on Facebook
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
Open Loop to Closed Loop Stepper Conversion beamhome Stepper Motors and Drives 0 01-02-2008 12:41 PM
question on closed loop vs open loop (servo systems) boonie Servo Motors and Drives 20 11-09-2007 01:30 PM
Closed loop vs. open loop pelesl Benchtop Machines 10 04-06-2007 05:56 PM
Lathe conversion - open loop vs closed loop bhowden General Metal Working Machines 7 03-21-2006 04:56 PM
Closed loop....open loop? DAB_Design General Electronics Discussion 10 06-26-2004 05:02 PM




All times are GMT -5. The time now is 07:32 AM.





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