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   Ban this user!
Old 09-10-2011, 09:37 PM
 
Join Date: May 2011
Location: USA
Posts: 15
NICKKINSMAN is on a distinguished road
How To Connect Spindle Encoder to EMC via Mesa?

I am running Mesa control boards for a Cadillac CNC controller new build. A 5I20 Anything I/O for the computer interface. It is fed from a 7I29 for x & z servo (including encoders), 7I37TA for limit swithes, start/stop, etc.

The only thing I need to hook up is the spindle encoder. It is a absolute type encoder with A, B, and Index channels. It has 5V+ and common. Somehow I need to get this terminated to get the feedback so EMC can know spindle location for threading.
I am thinking I may need another input board to terminate the spindle encoder too, but what kind? I can't find any boards specifically for encoders only, and all of them seem to be geared for axis control, by that I mean they have a servo power feed, and an encoder feed working together. I only need to get the encoder signal deciphered and back to EMC.

I am not 100% sure what type of encoder this is with the A, B and Index channels?

So, what I am asking is how do I get the encoder terminated back to EMC via the Mesa Anything I/O board? Someone must have done this in using Mesa boards on their lathe! Or, do I need something totally different to get this spindle encoder tied in?

I believe I need a board in between the encoder and Anything I/O that will power the 5V encoder, and decipher the channel signals to feedback to EMC.

Thanks for the help!

Last edited by NICKKINSMAN; 09-10-2011 at 09:55 PM.
Reply With Quote

  #2  
Old 09-10-2011, 10:02 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

If the encoder is A B & Index, then it is a quadrature encoder, not absolute.
There are a couple of types of output, differential is considered the best as it has complements of each of the three signals, the other is just AB&I and this is either single ended push pull or open collector.
The other thing is the voltage, many especially diff. or P.P. are 5v.
Most motion cards accept differential but in some cases can be set for single ended.
It is common for controllers and drives to multiply the basic quadrature count and times it x4, so the resolution increases proportionately.
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 09-12-2011, 11:30 AM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Have you used pncconf to generate a config for your lathe. It has setup in there for the spindle encoder. That should tell you which pins need to be connected to the 5i20 for the spindle encoder. I have a 7i43 with 7i42TA boards to break out the signals.

What are you using to actually connect the wires to the 5i20?

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

  #4   Ban this user!
Old 09-13-2011, 02:38 PM
 
Join Date: May 2011
Location: USA
Posts: 15
NICKKINSMAN is on a distinguished road
REPLY

Yes, I have used PncConf to setup the system - I get that there are inputs needed at the 5i20 level. I know EMC has a section for spindle encoder, but I don't understand where it pulls its information from at the board termination level, and how to set it up to match my A, B, I inputs.

What I am trying to find out is what I need to use to actually connect the wires to the 5i20!

Right now from the 5i20, I have a 50pin cable to the 7i29 for servo X & Z, and 2nd 50pin cable to 7i37TA for inputs/outputs for spindle on/off, coolant, limit switches, etc.

I have no idea where to terminate the A, B, I, gnd and +5V wires from the spindle encoder!
Reply With Quote

  #5   Ban this user!
Old 09-13-2011, 07:17 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

It looks to me like you hook the encoders to the 7i29 (see page 5 of the 7i29 manual) then the 50 pin cable between the 7i29 and the 5i20 makes the connection to the 5i20.

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-13-2011, 11:34 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

If you used pncconf post the README from the config folder. It should tell you where the spindle encoder is expected to be hooked up.

But really you should know already. what connector tab was showing when you configured the spindle encoder? It corresponds to the connector number on the 5i20.
Is that the connector that the 7i37 is connected to?

if you are using EMC 2.4, What pin number is beside the encoder combo box that you picked for the spindle encoder?
The position of the combo boxes relates to the 5i20 connector.
The top left combo box is pin 1 on the connector , next combo box down is pin 3 and so on.

Hopefully that helps
Reply With Quote

  #7   Ban this user!
Old 09-14-2011, 02:13 AM
 
Join Date: Jan 2007
Location: UK
Posts: 97
cncbasher is on a distinguished road

you are using a BIT file which includes an encoder ?
that will give you the connection detail for the pins for A,B,I ( OR ABZ which is the same)
using the 7I37TA , using pncconf will set up the spindle configuration

you do not need any other connection interface , connect directly to the 7I42TA pins
Reply With Quote

  #8   Ban this user!
Old 09-14-2011, 08:21 AM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

NICKKINSMAN, Chester and CNCBasher,

The 7i29 has two connectors for the encoders to the attached servos. The manual says:
The 7I29 is a dual 22.5A 165V Hbridge intended for motion control applications
when used with the MESA 4I27, 4I34M, 4I65, 4I68, 5I20, 5I22, 5I23, or 7I60 motion control
cards. The 7I29 uses a 50 pin flat cable interface to the motion control card. The 7I29 is
a 2 Axis card but can connect to 4 axis/cable FPGA controllers, allowing 2 7I29s to share
a single flat cable from the controller.
Motor power and motor connection are made with screw terminals. 10 pin encoder
connectors allow TTL or differential encoders to be connected to the motion control system
through the 7I29 card

The 7I29 has overcurrent protection to prevent damage to the Hbridge from stalled
or shorted motors. Each channel has two user selectable current limit values, full (22.5A)
and low (11.25A)
The 7I29s control circuitry is galvanically isolated from motor power and has 2500V
RMS isolation for safety.
Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

  #9   Ban this user!
Old 09-14-2011, 09:28 AM
 
Join Date: Jan 2007
Location: UK
Posts: 97
cncbasher is on a distinguished road

correct , but where is the confusion ?
servo card 7I29 is for x & z servo drives and axis encoders

the question was for Spindle rpm & spindle sync for screw cutting etc , this can connect to a 7I42TA .
Reply With Quote

  #10   Ban this user!
Old 09-14-2011, 10:04 AM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

I missed that Nick was only asking about the spindle encoder. In Nick's case the 7i37TA rather than the 7i42TA.

I wonder if his confusion is over which input pin on the 7i37TA matches which input pin on the 5i20? Or that the bitfile reconfigures gpio pins to encoder pins and the 7i37TA just routs the encoder signals back to the reconfigured input pins on the 5i20?

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-14-2011, 05:28 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Nick,

Chester asked you to post the "README" generated by pncconf. It will show the pinouts that need to be connected to the 5i20. From that we should be able to help you with which encoder wires would go to which pins on your 7i37TA.

I am using a 7i43 so this does not directly apply but is merely an example of the info available in the "README" from pncconf. It shows that I need to connect:
pin# 7 (Pulse Width Gen-P)
connected to signal:'s-pwm-pulse'

pin# 9 (Pulse Width Gen-D)
connected to signal:'s-pwm-dir'

pin# 11 (Pulse Width Gen-E)
connected to signal:'s-pwm-enable'

pin# 14 (Quad Encoder-B)
connected to signal:'s-encoder-b'

pin# 15 (Quad Encoder-A)
connected to signal:'s-encoder-a'

pin# 17 (Quad Encoder-I)
connected to signal:'s-encoder-i'
Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

  #12   Ban this user!
Old 09-16-2011, 09:00 PM
 
Join Date: May 2011
Location: USA
Posts: 15
NICKKINSMAN is on a distinguished road
Found EMC selection, now how to connect board?

Thanks for weighing in everyone!

I did a little more experimenting today in PncConf.

I found that if I upped the encoder count from 2 to 3 in the Mesa board setup tab, that added the extra A, B & I pin selections (even says quatrature!) on the port 2 tab (ports 2, 3, & 4).

So, now under port 2 I have the x & z encoder pins used for the 1-25 pinout. And I have the 3 pins for the spindle encoder under the 25-50 pinout section.

Right now I have a 50 pin connector going to the 7I29 board which takes care of the 1-25 pins for x & z control & encoders.

I assume I need to jumper another 50 pin connector from the 7I29 to another board to pickup the 25-50 pins and grab that spindle encoder.

The question now is, what board does that jumper need to go to to provide the interface where I can terminate the encoder wires? Is it just a standard termination board, or is it something special which will take that encoder signal? Also, what supplies the 5V for the encoder?

Thanks for the help so far!

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie- How to get Encoder readings and change analog output using Mesa 5i20 + 7i33? Shen Bingquan LinuxCNC (formerly EMC2) 10 10-03-2010 11:58 PM
anyone connect a gecko 540 with colombo spindle? xspyke General Electronics Discussion 1 05-25-2010 06:30 AM
Newbie- Purpose of Capacitor connect with Spindle Motor? cjchands General Electronics Discussion 3 11-13-2009 10:05 AM
Newbie- EMC2 mesa 5i22 with linear encoder, Does it work? jbcj LinuxCNC (formerly EMC2) 20 06-16-2009 07:19 PM
Spindle Encoder to Mesa 5i20 RogerN LinuxCNC (formerly EMC2) 3 10-17-2008 07:55 AM




All times are GMT -5. The time now is 05:06 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 354 355 356 357 358 359 360 361