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 02-19-2008, 04:59 AM
 
Join Date: Feb 2008
Location: uk
Posts: 4
zeta is on a distinguished road
Charge pump setup

Hi Chaps
I'm looking for some guidance about the charge-pump setup in EMC. I have found in the setup docs how to assign a parallel port pin to the charge-pump, but that's all. A search on CNCzone yields a post about setting up a torch system in which there is mention of "the 15 kHz output" (but nothing about how to enable it) and searches of the EMC docs (and the Sherline docs) add nothing further. My conclusion is that I'm looking in the wrong place.
So, can anyone answer:
  • Where is the charge-pump set up documentation?
  • What's the charge-pump output amplitude (voltage)?
  • What's the charge-pump output frequency?
  • Is there anything else I need to know in order to set up a controller which expects a charge-pump signal?
Grateful thanks for any info.

Z
Reply With Quote

  #2   Ban this user!
Old 02-19-2008, 09:47 PM
 
Join Date: Feb 2006
Location: usa
Posts: 52
Gads is on a distinguished road

zeta some better explanations than i can give are at the bottom of the page when viewing your post. (My Charge-Pump circuit) my breakout board has control of my motor drivers and external relay/spindle controls etc. if board dosn't see signal it will disable motor drivers etc.. I can disable this feature on the board with jumper. you can also search for charge pump on this site and get a lot of hits
hope this helps
gads
Reply With Quote

  #3   Ban this user!
Old 02-20-2008, 04:28 AM
 
Join Date: Feb 2008
Location: uk
Posts: 4
zeta is on a distinguished road

Hi Gads
Thanks for helping. I understand the principle of charge pumps and how to wire up my controller board given a charge-pump input. What I can't find is anything specific to EMC. Suppose I have set up (say) parallel pin 1 as the charge-pump output pin in EMC, then what appears at pin 1? Is it 15 kHz, 12kHz? And what amplitude? Or must I also tell EMC what signal to send to the pin? The documentation doesn't seem to provide the answer.
I was looking for something like the following, found in "Setting up a basic three axis milling machine", in the Mach3 documentation:

About halfway down there is a signal called Charge Pump. Put a 1 in the Port # and the Pin # to which the circuit is connected, in this example pin #1. Then make sure the function is enabled (a green checkmark in the Enabled column). Check that no other output signals are enabled. Now, when ever Mach3 is running AND is not in E-stop mode there will be 12.5kHz square wave on pin 1 of the parallel port.

Any clues?

Regards

Z
Reply With Quote

  #4   Ban this user!
Old 02-22-2008, 08:11 PM
 
Join Date: Feb 2006
Location: usa
Posts: 52
Gads is on a distinguished road

Hi zeta
? are you switching from a mach3 system to emc2.
if this is all your doing then the charge pump pin used in your working mach settings would be the same pin you pick in your emc stepconfig setup,
I did need to select invert but it works fine.
If you are looking for specs I don't know the exact, but if you have a digital multimeter you could probly measure it for yourself. maybe have mach running and change settings to turn on and off to verify your looking at the right pin. Hz should be accurate but voltage may not be the same disconnected from a board that uses a charge pump (volt drop).
no electronics expert but this might give you what your looking for.
Gads
Reply With Quote

  #5   Ban this user!
Old 02-23-2008, 11:41 AM
 
Join Date: Feb 2008
Location: uk
Posts: 4
zeta is on a distinguished road

Thanks again Gads

I'm sure there are more pressing needs for the documentation team than describing in detail the charge-pump parameters in detail. Probably it will appear in a subsequent iteration. Meanwhile I'll install Mach and experiment as you suggest.

Regards,

Z
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-23-2008, 01:25 PM
 
Join Date: Feb 2007
Location: UK
Posts: 12
leo.dearden is on a distinguished road

Zeta,

I don't know what a charge pump is, but I'm comfortable with EMC, so I'll talk about that, and let you fill in the details.

I'm assuming that you're using EMC2.x, such as comes with Ubuntu. If you're using v1.x I can't help you.

EMC is mind bogglingly general. The hardest thing for me was to get my head round quite how general it is. EMC will send exactly the signals that you tell it to, to whichever pins you tell it to.

So: EMC uses a Hardware Abstraction Layer to map between the abstract world of G-codes, motion planning, etc, and the physical world of signals on pins. The HAL configuration is defined by one or more .hal files that you select when you start up EMC. That configuration 'wires' up a bunch of software modules to generate signals, and then 'wires' those signals to specific hardware inputs or outputs. If you already have a mostly suitable .hal for your set up that makes things easier. If not, then read the relevant parts of the User's Guide and Integrator's Guide.

From the POV of the HAL, there is no 'charge pump' output. Instead there is (amongst other things) a generalised mechanism for outputting a square wave at (broadly) whatever frequency you want. You can use that to drive your charge pump output in whatever way it needs to be driven. Since there is no way to control the parallel port voltage from software, you can only output square waves, and they'll be at whatever voltage your parallel port produces (usually about 4.3V), and this would be true whatever software you were using.

AFAICS, the module you need is called pwmgen and you can find an example of how to use it in Section 13.3.5, and a more complete reference in S 14.3 of the Integrator's Guide. If that doesn't make sense, try reading S1,5,6,7 of the same.

Hang in there, it will all make sense soon, and then you'll have a really powerful and versatile tool to play with.

HTH,

Leo
Reply With Quote

  #7   Ban this user!
Old 02-23-2008, 03:05 PM
 
Join Date: Feb 2008
Location: uk
Posts: 4
zeta is on a distinguished road

That's great Leo, exactly what I needed! Now I know how it hangs together I'm a lot happier wiring it up.
Regards,
Z
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
My Charge-Pump circuit Guillote Gecko Drives 7 05-25-2012 08:57 AM
My Charge-Pump circuit Guillote Gecko Drives 1 07-23-2007 10:58 AM
Charge Pump ??? jack55 General Electronics Discussion 6 04-21-2007 02:59 PM
Charge pump mlaws1172 Screen Layouts, Post Processors & Misc 0 01-03-2006 10:46 PM




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