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 > UHU Servo Controllers



This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-29-2009, 07:41 AM
 
Join Date: Jul 2005
Location: Pakistan
Posts: 107
ahmedrehan is on a distinguished road
Divided by 4 Counter for 2000 pulse encoder

I am using 2000 pulse encoder but UHU seems to not handel these pulses so i used a divided by 4 counter to reduce the pulses to 500 using CD4520 but servo run away to one side using the counter. any sujestion.

Ahmed
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 01-29-2009, 08:48 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi,
It's not as easy as it first seems to divide the quadrature signal from an encoder like that. The number of pulses on the encoder isn't really the limit per se, it's the frequency at which the chip can count the pulses. So the faster you want to go the lower resolution you'll have to use. Are you saying that it doesn't work at all without the divider either or are you loosing position and getting O-counts as the speed increases.

Start slow and work your way upwards and see where the problem starts. I've found that 130kHz is about max what I can achive with my HP-UHU. So if your setup is about equal to mine you should be able to reach 975rpm with 2000 lines encoders (8000ppr in quadraure).

USDigital sells a quadrature divider called EDIVIDE and there's also some open source project available that uses a small Atmel uC to do the quadrature dividing. Even so I say it's better to either live with the reduced speed or buy new encoders.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 01-30-2009, 06:44 AM
 
Join Date: Jul 2005
Location: Pakistan
Posts: 107
ahmedrehan is on a distinguished road

Any link for microcontroller based divider.

Will check for the o count. which line driver you are using?

Ahmed
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 01-30-2009, 07:56 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

This is the site I was thinking about, there's a couple of different versions available there.

The RENCO encoders that I'm using has the AM26C31 line driver in them - so that's what I'm using.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 01-30-2009, 09:34 AM
 
Join Date: Jul 2005
Location: Pakistan
Posts: 107
ahmedrehan is on a distinguished road

i have checked o count it is giving some time 10 sometime 100 random could it be powersupply problem? also on forward movement it gives more travel and reverse it give less travel. any sujestion.

Regards

Ahmed
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-30-2009, 05:15 PM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Do you see any relationship between the amount of O-counts and the speed at which you run the motor. IDo you get less O-count if you run the motor at 100rpm for a minute compared to if you run it at 1000rpm?

It could be a problem with PCB layout so switching noice from the powerstage upsets the controller. I've only used the HP-UHU so I have no experience with the other versions available but I've read numerous times that some are very sensitive to noice.

If you have a scope, look at the signals and verify the phase shift and signal levels etc. Try feeding the encoder with a separate +5V supply (common ground with the drive of course) and then run the motor very slow. Still getting O-counts?

/Henrik.

PS. I had HUGE problems with invalid counts and lost postion on my system and I worked on it for several weeks trying to figure out what was wrong. I had brand new USDigital E7P encoders with linedrivers and I tried just about every trick in the book (and some not in the book) regarding grounding, shielding, powersupply filtering, separate powersupply for the encoder, cable length, cable type, filtering - you name it. It simply refused to work. In the end I was convinced it was the encoders that was the cause. I threw the brand new USDigital encoder in the spare parts bin and got some RENCO encoders and the problem went away for good.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 01-31-2009, 05:51 AM
 
Join Date: Jul 2005
Location: Pakistan
Posts: 107
ahmedrehan is on a distinguished road

Originally Posted by H.O View Post
Do you see any relationship between the amount of O-counts and the speed at which you run the motor. IDo you get less O-count if you run the motor at 100rpm for a minute compared to if you run it at 1000rpm?

It could be a problem with PCB layout so switching noice from the powerstage upsets the controller. I've only used the HP-UHU so I have no experience with the other versions available but I've read numerous times that some are very sensitive to noice.

If you have a scope, look at the signals and verify the phase shift and signal levels etc. Try feeding the encoder with a separate +5V supply (common ground with the drive of course) and then run the motor very slow. Still getting O-counts?

/Henrik.

PS. I had HUGE problems with invalid counts and lost postion on my system and I worked on it for several weeks trying to figure out what was wrong. I had brand new USDigital E7P encoders with linedrivers and I tried just about every trick in the book (and some not in the book) regarding grounding, shielding, powersupply filtering, separate powersupply for the encoder, cable length, cable type, filtering - you name it. It simply refused to work. In the end I was convinced it was the encoders that was the cause. I threw the brand new USDigital encoder in the spare parts bin and got some RENCO encoders and the problem went away for good.


Encoder are FANUC 2000pulse made by fijitsu.

If i run fast it gives more o count if run slow it give less o counts.

It is hard to find new encoder here in Pakistan. I have to import them and will atleast takes 2-3weeks.

Ahmed Rehan
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 01-31-2009, 06:48 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Can you run at any speed without getting O-counts?

I initally started with 3600lines (14400ppr) encoders and it worked fine up to ~130kHz (540rpm). Based on that number and my ballscrew pitch and gearing I ordered the USDigital encoders with 625 lines (2500ppr) which will give me a theoretical resoultion of 0.001mm. However, with the USDigital encoders it was impossible to get it to run reliably at ANY speed no matter what. I then got the Renco encoders, also 625 lines and it works perfectly. I got both the USDigital and the Renco encoder directly from the US. Renco had 6 weeks leadtime.... :-(

I'm sorry I can't be of any more help... I know my setup works up to 130kHz so the UHU chip is good for at least that. If your FANUC encoders are 2000lines (8000ppr) then you should be able to reach 975rpm if all else is equal.

Again, can you get it to run at any speed without getting O-counts? What version of the UHU hardware (PCB etc) are you using?

/Henrik.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 01-31-2009, 03:41 PM
 
Join Date: Jul 2005
Location: Pakistan
Posts: 107
ahmedrehan is on a distinguished road

1. attach please find the version of pcb but the important thing is i am using external mosfet module not the on board mosfet. may be they are picking up some noise.

2. Any check points
3. can you send me the screen shot of analyzer software how it looks when the servo is properly tuned.

Ahmed
Attached Thumbnails
Click image for larger version

Name:	PIC00002.JPG‎
Views:	166
Size:	72.8 KB
ID:	74772  
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 02-01-2009, 03:49 AM
 
Join Date: Jul 2005
Location: Pakistan
Posts: 107
ahmedrehan is on a distinguished road

Henrik,

Do you think i should put inductor in series with motor? also i have seen in other post about load dump should i use that?

Ahmed
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-01-2009, 04:32 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi Ahmed,
The powerdump circuit is only needed if there's a risk that the voltage of the powersupply goes beyond the maximum voltage for the drive while deccelerating. It's not a part of this particular problem so leave it for now ;-)

It's really hard to guess what the problem is here.... You still haven't told me if it works at any speed or if you always get O-counts, no matter what the speed is. Try running at 100rpm or something for a minute, then check the O-count.

Also, you should be aware that the max frequency the chip can keep up with drops when you use the analyse function in the software so don't have that turned on while trying to figure out this problem.

Are you using shielded cable for the encoder? Shield grounded at one end only?

Don't worry about tuning just yet - you have to figure out this problem first.... I'll grab a screenshot next time I fire mine up.

/Henrik.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 02-01-2009, 10:03 AM
 
Join Date: Jul 2005
Location: Pakistan
Posts: 107
ahmedrehan is on a distinguished road

When run at very slow speed it dose not give o count at higher speed it gives more ocount and in one direction it give more ocout than in other direction with same setting.

what is the max value for o count for drive or it should always be zero?

the encoder is with original wiring for fanuc 6t control, encoder are fitted with line driver and i have used 74sn115 for line reciver.

Thanks for your help.

Regards

Ahmed
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
Change the Pulse Encoder bdyenter Daewoo/Doosan 0 10-17-2007 11:29 PM
2000 line encoder = how many counts? REVCAM_Bob General Electronics Discussion 1 05-22-2007 02:00 PM
Unfit Pulse Of Pulse Coder Alarm Crashmaster Machine Problems, Solutions , Wireless DNC, serial port 2 04-23-2007 10:55 AM
Divided plastic disks anchornm General Metalwork Discussion 0 05-21-2006 10:41 PM
How to tell if my motor is Pulse encoder or quadrature encoder? Darc Servo Motors and Drives 0 07-22-2005 04:51 AM




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