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 > Gecko Drives


Gecko Drives Discuss all Gecko drives here and get direct support!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-26-2011, 05:10 PM
 
Join Date: Feb 2006
Location: Romania
Posts: 6
cartula is on a distinguished road
G540 charge pump & Mesa 5i20

Hi,

I've interfaced a Mesa 5i20 with the G540, and everything went fine until I tried using the charge pump. Seems that the signal is too weak to drive the charge pump directly (only 3.3V is supplied by the FPGA for high).

So, I've tried using a optocoupler circuit, and for short times, seemed to work fine. Short times, because the additional output transistor I've used in open collector seems to be destroyed rather quickly (had to use a 150ohm pull-up resistor, higher values didn't work).

I've tried also using a TTL gate to drive the pin (a 7404 circuit), based on the push-pull output, but without success.

Does anybody have an ideea about what current is needed to successfully drive that charge pump?
Reply With Quote

  #2  
Old 04-26-2011, 05:50 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,451
ger21 is on a distinguished road
Buy me a Beer?

What software are you using?
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3   Ban this user!
Old 04-26-2011, 07:18 PM
 
Join Date: Feb 2006
Location: Romania
Posts: 6
cartula is on a distinguished road

Emc2, but the software is not an issue here. The waveform generated is ok, and while the open-collector setup worked, was perfectly suited to enable the G540.

Even in the current state (using the 7404), can feed back the generated signal to a 5i20 input, and I do get a clean signal. Unfortunately, that signal doesn't seem have the required power to drive the input of the G540 (the output is at around 2V(high) when connected to G540)
Attached Thumbnails
Click image for larger version

Name:	g540chargepump.jpg‎
Views:	91
Size:	31.5 KB
ID:	132593  
Reply With Quote

  #4  
Old 04-26-2011, 09:31 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Replace the 7404 with a 74ACT04 or better yet, a 74ACT14 and everything will work OK.

Mariss
Reply With Quote

  #5   Ban this user!
Old 04-27-2011, 06:05 AM
 
Join Date: Feb 2006
Location: Romania
Posts: 6
cartula is on a distinguished road

Mariss, many thanks for your input. Wasn't able to find a 74ACT14, so I'm gonna use a 74AC14, output specs appear to be identical.

Couple more question, will anything improve regarding noise rejection/signal stability if I use the same circuit for the other wires (basically, the step/dir wires)?
Also, is this setup also required for the PWM input of the G540 (spindle control)? haven't got that connected yet, but will want to use it rather soon.
Reply With Quote

Sponsored Links
  #6  
Old 04-27-2011, 08:46 AM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Both families are nearly the same; the ACT device has a 1.5V logic threshold while the AC device has a 2.5V threshold at a Vdd of 5VDC.

I'm a little baffled why you are using otpo-isolation in the first place. Every input and output on the G540 is internally opto-isolated already.

Mariss
Reply With Quote

  #7   Ban this user!
Old 04-27-2011, 10:11 AM
 
Join Date: Feb 2006
Location: Romania
Posts: 6
cartula is on a distinguished road

Well, the opto-isolation is there to protect the FPGA. Since I do use some 12V devices on other FPGA lines, I tend to stay on the safe side (the FPGA tolerates only 5V).

The G540 interface is just a small part, and as I've said, worked fine directly connected to the FPGA (without the charge pump). What I'll probably do, just to be safe, is to add some 74AC14 gates between the FPGA and G540 just to bring the signal up fom 3.2V to a 5V level.

Thank you
Reply With Quote

  #8  
Old 04-27-2011, 07:49 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

The G540 inputs from the DB-25 connector are designed to work with 3.3V and 5V logic levels. What is required is the hardware drivers have active pull-up instead of pull-up resistors. The 74AC/74ACT series does an excellent job because its outputs can sink and source 24mA at TTL spec logic voltage levels (-24mA @ 0.4V and +24mA @ 3V).

I would avoid using external opto-isolators for the STP/DIR inputs. The ones we use for these inputs are high-speed optos (HCPL-2531). A photo-transistor opto is way too slow to drive these inputs.

Mariss
Reply With Quote

  #9   Ban this user!
Old 04-27-2011, 08:20 PM
 
Join Date: Feb 2006
Location: Romania
Posts: 6
cartula is on a distinguished road

Mariss, thank you for all your input, really helped a lot. Taking a hint from your previous remark about the opto-isolators, I've done away with those for the G540 part.
I ended with using a single 74HC14 (my 74AC14s are still on the way), and voila, everything is working like a charm Only proves that the simplest solution is usually the best one. Will insert the 74AC14 when it arrives, just to be safe.

In case of the 5i20 board, the outputs are indeed pulled high by resistors (3.3k), and have no chance to drive the charge pump circuit. But everything else seemed to work OK (step/dir), have used the setup (G540+5i20) for quite a while and I saw no apparent issues. Based on your remark, that an active pull-up is needed, will probably use the same circuit for the step/dir pins. Couldn't hurt, I suppose. Maybe this will help 'revive' the broken A axis module (which I don't currently use/need), if not, will need to order a G250X to replace it. BTW, are the optos for step/dir on the G250X board?
Reply With Quote

  #10  
Old 04-27-2011, 09:39 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

The 74HC family is marginally adequate because of current sink/source limitations. This can be improved if you have spare inverters by wiring multiple inverters in parallel. It would take all 6 74HC inverters in parallel to equal a single 74AC series inverter.

I can't find a datasheet for an LVT817 device so perhaps the number is in error. My comments about your circuit diagrams:

The first circuit provides the better bandwidth because it limits the Miller capacitance effect of the photo-transistor. FYI, Miller Effect limits transistor bandwidth because the current required to charge/discharge Ccb (collector to base capacitance) is injected into the base to emitter junction. This injected current is in the opposite direction to the base current used to turn the transistor on or off. This opposing current is proportional to the dv/dt on the collector so it severely limits rise and fall times on the collector when the base is an open circuit as in a photo-transistor.

The Miller Effect is limited if the collector voltage excursion is limited. In your first circuit Vce ranges between Vsat (0.2V) and the follower transistor's Vbe (0.6V). The excursion is only 0.4V on the collector.

The second circuit has no Miller compensation and the photo-transistor collector has a 4.8V excursion (5V - 0.2V Vsat). This will limit bandwith.

The NPN in the first circuit has a 150 Ohm collector load resistor. It would be appropriate for a 50MHz bandwidth but your opto comes nowhere close to that (50kHz max). Use a 10K NPN collector load and then follow it with the 74AC inverter.

The G540 high-speed STP/DIR optos are on the motherboard. The G250 drives have no optos onboard.

Mariss
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 04-28-2011, 10:55 PM
 
Join Date: Feb 2006
Location: Romania
Posts: 6
cartula is on a distinguished road

Mariss, the 74HC was used based on being "on hand". Even with the output current limitations, has proven to be more than adequate for this purpose. The charge pump starts to work from about 1kHz up, fill factor between 20% and 80%. I'm more than happy with how stable it looks. Once I receive the 74AC14 circuits that I've ordered, probably will exchange them.

I have also added other 74HC14 for all the pins used to connect to the G540. The final circuit is attached. The result? Well, from a 120IPM max, with motors tuned, my machine's performance shot up to 350 IPM, and haven't even re-tuned the motors or touched anything else. What a spectacular difference a clean signal makes! Couldn't be more pleased. In my case, 350IPM (~150mm/sec) translates to a step frequency of 60kHz. Probably can squeeze a bit more than that after I re-tune the motors.

Thank you for everything, you've made another customer happy
Attached Thumbnails
Click image for larger version

Name:	5i20interfaceG540.jpg‎
Views:	57
Size:	93.9 KB
ID:	132802  
Reply With Quote

  #12  
Old 04-28-2011, 11:05 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Good to hear that. One persnickety comment about your circuit; never leave a CMOS logic unterminated like the top inverter in your diagram. A floating input causes the device to draw unnecessarily high supply current and touching the floating input (static discharge) may cause the inverter to destroy itself and the other 5 inverters in the package. Terminate all unused inputs to GND or + logic supply voltage.

Mariss
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
Need Help!- Anybody have a working PCI parallel card for G540 w/ charge pump enabled? Jr's Farm Gecko Drives 27 04-16-2011 01:23 PM
Need Help!- G540 charge pump fault, no motion. Settings? JosephD Gecko Drives 8 06-16-2010 02:47 PM
G540/Mach3 charge pump fault LED is lit will gilmore Gecko Drives 42 04-12-2010 08:26 PM
G540 charge-pump not pumping aystarik Gecko Drives 2 05-14-2009 02:38 PM
G540 Tempremental charge pump detector David Campbell Gecko Drives 1 03-20-2009 07:18 AM




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