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 12-26-2010, 11:27 PM
judleroy's Avatar  
Join Date: Dec 2006
Location: USA
Posts: 406
judleroy is on a distinguished road
Encoder Problems need advise!

Ok here is whats going on. I have quadrature encoders that output 4096 cts per rev. The longest cables are about 10 feet long. The cables are sheilded. They only have A, B, +5v, and Ground wired to the controller and read just fine. The counts want to float while the machine is on so the motors are constantly adjusting for errors that arent really there. That means nothing can be cut accuratly. At first they would float at idle when the machine was just sitting there. Then I connected the machine directly to earth ground and ran the sheilding from the motor power wires to the machine chassis near the motor end of the cables. This fixed the problem of them wanting to float while the machine was idle. This however did nothing to keep them from floating while the machine is running programs. The effects get worse the more motors running at the same time. The next step I have been told is to ground the sheilding from the encoder wires to the same place as the encoder ground wires go at the controller end. Then I am told to use a 1/4 watt 150-250ohm resister running from the encoder A to the same ground and also another one from the encoder B to ground. Each encoder has its own ground at the board. Does this sound like it will fix my noise problem. Are there any other suggetions to help with the noise problem? I will be trying all this tommorow so I guess we'll see how it works. Just wondering if anyone else has had problems with encoder noise causing them to float and how you fixed the problem in your setup. Thanks for any advise.
Judleroy
Reply With Quote

  #2  
Old 12-27-2010, 10:53 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,538
Al_The_Man is on a distinguished road
Buy me a Beer?

By 'float' I assume you mean there are spurious counts?
Or do you mean that the signal Level is varying?
What I normally do is to ground the encoder shield at the Earth Ground star point wherever that is set up.
Do you know the nature of the encoder output? Single ended encoders can be push/pull or open collector output, if open collector, you will definitely need a resistor from each output to 5v+.
Another thing that may resolve it is to ground the common of the 5v supply to the ground star point also.
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 12-27-2010, 06:04 PM
 
Join Date: Sep 2010
Location: usa
Posts: 838
mike_Kilroy is on a distinguished road
Buy me a Beer?

you dont mention a-not & b-not channels.... do u have them available to use? if using just a & b and not a'a-,b,b-, you are fighting an uphill battle. if you can use differential outputs with a,a-,b,b- your problems will likely be gone.

if you cannot get differential outputs, then you are at the mercy of the shielding, wire length, noise in your machine. assuming you do not have open collector outputs (that require external added pull up resistors to +5vdc) as Al said, then, yes, the suggestion to add those 200 ohm resistors to common is fair advice simply adds more low impedance to the lines to try to help reduce the noise.

so ur 10' encoder cable is shielded' good. latest grounding scheme is to tie the shield AT BOTH ENDS not just one end. and dont bother doing this by soldering a 6" #18 wire to the shield and taking it over to a screw - not worth the effort at the PWM turn on times used today. You get 400% better shield ground by carefully cutting back the plastic jacket over shield, exposing it, and wire tying it with a plastic wire tie directly against a ground point - at both ends.

since u know it is motor PWM noise (you improved it by changing motor shield ground & it gets worse with more motors running), do same for their shields - tye at both ends by wire tying to ground point.

last comment: is ur encoder wire run separate from the motor leads? it cannot run parallel to them in same wireway, or even parallel in wireway with any other 120 or 230v ac wires. if you cannot get it to stop counting wrong try pulling encoder cable out of machine away from everything across floor to motor and see if it fixes it - will give u ideas of how to rerun it in cabinet if helps/works.

really tho, no one uses or should use single ended encoders (a & b only) anymore - the days of being able to reliably get away with that ended when PWM drives replaced SCR drives.
Reply With Quote

  #4   Ban this user!
Old 12-29-2010, 12:41 AM
judleroy's Avatar  
Join Date: Dec 2006
Location: USA
Posts: 406
judleroy is on a distinguished road

Thanks Al and Mike
I will try what you have suggested. If it will help you lead me in the right direction the motors are the ones asked about in this post. http://www.cnczone.com/forums/genera...se_servos.html
The encoder wiring is shown in post 2 and 3. The encoders have a ribbon cable with ten wires coming out of them. The wiring doesnt mention a- and b- though. Thanks again.
Judleroy
Reply With Quote

  #5  
Old 12-29-2010, 09:56 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,538
Al_The_Man is on a distinguished road
Buy me a Beer?

These look like older Renco encoders, they traditionally used either push/pull or open collector for single ended type, they show pull up resistor N/A, so they may be push/pull which does offer fairly low impedance drive, so you may get away with a run of 10'.
The other option is to convert to RS485 using a suitable driver I.C., if your system takes differential then you will not need a corresponding receiver IC.
Do you have the encoder 5v supply connected to Earth Ground point?
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

Sponsored Links
  #6   Ban this user!
Old 12-29-2010, 10:34 PM
judleroy's Avatar  
Join Date: Dec 2006
Location: USA
Posts: 406
judleroy is on a distinguished road

Hi Al
The encoders are powered by the 5v from my k-motion board. It has 4 5v outputs and 4 grounds for the encoders built into the board.The actual power comes from a pc power supply connected to the board through the molex connector. The pc supply is mounted to the side of an industrial control box. The box is plastic and has a metal plate across the bottom that the boards and power supply are bolted to. The pc supply is not touching the plate at all. Would it help to connect the pc supply to the screw in ground points built into the plate by a wire. Also the control box is not connected to earth ground. Should I run a ground wire to earth ground from that same ground screw hub. Sorry but electrical is all new to me and proper grounding has me confused. If you would like or if it will help I will take some pictures of what I have going on. Thanks alot for the advice.
Judleroy
Reply With Quote

  #7  
Old 12-30-2010, 09:52 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,538
Al_The_Man is on a distinguished road
Buy me a Beer?

Your PC power supply should be grounded through the MB screws, so check with a meter, I bond all power supplies to the Earth Ground star point.
Ground Practices
I would ensure your encoder supply common is bonded to this point also.
It has been my experience that most noise related problems are due to lack of grounding and bonding all supplies to earth ground.
I prefer this over the 'isolate everything' method.
http://www.cnczone.com/forums/phase_...se_issues.html
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

  #8   Ban this user!
Old 12-30-2010, 11:18 AM
 
Join Date: Jun 2010
Location: UK
Posts: 1
engineertony is on a distinguished road

A few electronic basics. I usually define "floating" as not grounded, i.e. prone to pick up voltages induced by stray magnetic or electrostatic fields. These voltages can be read by a counter as pulses and therefore give a wrong position reading.
Shielding is meant to pick up the volts and short to ground. We normally only ground at one point to prevent the formation of a complete loop which would act as a turn on a transformer and cause current to circulate.
Somewhere at the counter there is a circuit which sees logic 1 or 0, and this has a differential circuit which needs to go past a certain voltage level to register as 1 or 0. For example encoder channel A is at 5v, (logic 0) then it must go below say 1 v to change to 0v, (logic 1). Then having established logic 1, it must go above say 3v to return to logic 0.
So to have counter interference you must have quite high voltage spikes, the system is immune to say 1 volt spikes.
I used to track these with a storage oscilloscope, you can see the spikes or wobbles superimposed on top of the encoder pulses, and experiment with various grounding configurations and resistor loadings to get rid of them.
Pretty standard grounding arrangement in my experience is a tree structure, all single ended and all brought to one point, with electronic ground well away from the power ground.
Reply With Quote

  #9  
Old 12-30-2010, 12:24 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,538
Al_The_Man is on a distinguished road
Buy me a Beer?

Originally Posted by engineertony View Post
Pretty standard grounding arrangement in my experience is a tree structure, all single ended and all brought to one point, with electronic ground well away from the power ground.
Agree with most, but I only use one common ground and that is one Earth Ground star point.
Your PC (electronic) MB is going to be at Earth ground anyway if it is secured the usuall way with MB screws.
And your Spindle motor is at Earth Ground via the Grounded neutral.
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

  #10   Ban this user!
Old 12-30-2010, 02:09 PM
 
Join Date: Sep 2010
Location: usa
Posts: 838
mike_Kilroy is on a distinguished road
Buy me a Beer?

also agree with most of what was said - well put!

One difference is the grounding shield at only 1 end; that is old school and has been updated to ground at both ends today. Old rule of thumb was ground at one end only to make an electrostatic shield (keeps noise OUT) of the cable, and ground at both ends for electromagnetic shield (keeps the noise IN from getting out). When we had SCR drives with slow rise times all this worked fine.... then came transistors and faster and faster switching times. A lot of today's IGBTs used in VFD and servo drives switch in a few nanoseconds; result is noise pulses with rise times making 100's of mhz up into ghz frequency noise now. I believe most servo drive manufactures have learned by now that tying the shield at both ends of both signal and power cables does a better job of shielding that the old fashion one side only. In addition, we found that the old common method of bunching the shield together at the end of the cable and soldering a 18 gauge wire on it 12" long to go to that ground screw was next to useless also: think of the 1/4 length antenna on your cell phone at 2.4ghz - a couple inches. A quarter wavelength means the noise voltage at the shield soldered point becomes 0 at the other end! Infinite impedance. So useless. And a lot of us still make that wire 6-12" long! My 2 meter ham radio uses 18" length for 1/4 wavelength at 146mhz! So a pigtail no longer makes a good ground. In addition, at these higher frequencies, there is something called "skin effect:" means the actual noise current is riding on the outside molecules of the shield wire itself and little is on the inside of the shield; so tying all that stuff together was a bit of a waste, in addition to only gathering up a small area of the OD of the shield cable at the bunched point of the soldered pigtail anyway.

So today's best practice is to cut back the plastic sheathing on the shielded cable and wiretie it to a good earth ground at both its ends. That makes the largest possible area touch ground to satisfy the skin effect problem, drains off more of the noise due to grounds at both ends, and prevents adding a nice pig impedance pigtail wire. At these high frequencies there is not so much concern over circulating currents as there is at low frequencies.
Reply With Quote

Sponsored Links
  #11  
Old 12-30-2010, 03:46 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,538
Al_The_Man is on a distinguished road
Buy me a Beer?

I try to keep up to date on what developments are taking place in the control world, but have not yet come across the reference for the change in shield grounding.
I have tried to find any definitive description with supported qualifying data related to switching to grounding shielding at both ends, the only thing I could find is a technical paper that mentions that the requirement is applied to shielded cables carrying signals in the GHz range??
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

  #12   Ban this user!
Old 12-30-2010, 06:08 PM
 
Join Date: Sep 2010
Location: usa
Posts: 838
mike_Kilroy is on a distinguished road
Buy me a Beer?

Al,

I have worked closely with the engineers at Kollmorgen over the years who have had to prepare our drives for CE certification. One of the first things they learned was the need for grounding ALL shields at both ends to meet CE. Here are some examples from their drive manuals:

page 81 shown of AKD drive manual:

http://www.kollmorgen.com/website/co..._en_07_10_.pdf
Attached Thumbnails
Click image for larger version

Name:	1.JPG‎
Views:	36
Size:	205.9 KB
ID:	122481  
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
Bridgeport Torq Cut 22 - Spindle/encoder problems, bad? vettespeed Bridgeport and Hardinge Mills 11 07-28-2011 04:16 AM
Need Help!- Advise needed - optical encoder AC servos scobob Servo Motors and Drives 6 04-22-2010 06:10 AM
Bridgeport R2E3 Boss 8 Encoder problems leftyrowe Bridgeport and Hardinge Mills 8 11-23-2009 08:03 AM
new and need advise and help jgipson CNCzone Club House 1 06-26-2008 11:08 PM
How to tell if my motor is Pulse encoder or quadrature encoder? Darc Servo Motors and Drives 0 07-22-2005 03:51 AM




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