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 > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-14-2007, 06:48 PM
Gold Member
 
Join Date: May 2003
Location: USA
Age: 48
Posts: 232
heilcnc is on a distinguished road
encoder

will a 500CPR encoder work for spindle rpm or do i need less cpr for my lathe im building for threading was using 1 cpr with turbocnc but found good price on these thanks
Reply With Quote

  #2   Ban this user!
Old 10-15-2007, 12:14 PM
Seb Seb is offline
 
Join Date: Jan 2006
Location: USA
Posts: 58
Seb is on a distinguished road

Disclaimer: I'm no expert.

I think 500 cpr should be fine for speed control. The only concern is that you read the encoder fast enough to keep up with all those transitions.

Let L be the number of lines on the encoder.

Let R be the speed of the motor in revolutions per minute.

(4 * L) is the number of quadrature transitions per revolution.

(R / 60) is the number of revolutions per second.

(4*L) * (R/60) is the number of quadrature transitions per second.

F = 2 * (4*L) * (R/60) is the minimum sampling frequency (according to Nyquist, as I understand it).

That simplifies to F = (0.1333 * R * L).

So if you have a 500 line encoder spinning at 4K rpm, you need to sample the encoder lines at 266 KHz.
Reply With Quote

  #3   Ban this user!
Old 10-15-2007, 12:38 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

plus - for emc2 to do threading - you need a index pulse. your encoder needs a and b channels + z (index)
Reply With Quote

  #4   Ban this user!
Old 10-15-2007, 12:52 PM
Seb Seb is offline
 
Join Date: Jan 2006
Location: USA
Posts: 58
Seb is on a distinguished road

Why does EMC need an index pulse to align the spindle? It seems like it (EMC) should be able to synthesize the index pulse from the normal A/B counter. It would have to know the cpr of the encoder, but that could be supplied via a parameter.
Reply With Quote

  #5   Ban this user!
Old 10-15-2007, 01:32 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

emc is not setup that way.. Mainly it would work fine for making threads all the same durring one session. but if your making threads that have to be the same degree start lead or maybe you started threads and needed to finish during another session (machine gets turned off and on) you will not be able to make the same threads again without a bit of work.

sam
Reply With Quote

Sponsored Links
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hp encoder mlaws1172 General Electronics Discussion 2 02-27-2006 05:14 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
encoder help motomitch1 Gecko Drives 8 10-11-2004 09:46 PM
What is an Encoder ? ynneb FAQ of CNC Machine building 0 08-17-2004 06:02 AM
Encoder ty1295 Servo Motors and Drives 4 05-27-2004 02:50 PM




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