586,068 active members*
3,706 visitors online*
Register for free
Login

Thread: charge pump

Page 1 of 2 12
Results 1 to 20 of 24
  1. #1
    Join Date
    Jun 2009
    Posts
    27

    charge pump

    Hi all,
    You’ll have to excuse my ignorance here but I’m very new to CNC.
    I have an X2 on which I have installed a belt drive, CNCfusion #4 ball screw kit, Nema23 381 oz-in stepper motors, a Gekodrive G540 and I am using Mach3.
    I’m at the stage of wiring the motors up to the drive unit and setting up Mach3.
    My question is what is a "charge pump"?? Is it something to turn on a coolant pump “if you have one” or does it apply to something else? Do I need to have it switched on or off if I don’t have a coolant pump?
    Thanks

  2. #2
    Join Date
    Mar 2009
    Posts
    1114
    Its basically a safety device on the G540 to keep electrical noise from making unwanted moves of your stepper motors. I have the G540 and have the charge pump switched off and have never had any issues with any motors moving.

  3. #3
    Join Date
    Jun 2009
    Posts
    27
    Starleper1, Thanks for the prompt reply. "so much information, so little time"

  4. #4
    Join Date
    May 2009
    Posts
    141
    It has nothing to do with the coolant pump, but is a safety circuit designed so your machine can't move until it's under control by the Mach software.

    Mach sends a signal to a breakout board telling the board that is has control of the machine. This signal tells the breakout board that the computer is on and Mach software is up and running which will allow your breakout board to send power to your stepper drives and spindle board if wired correctly. You have to have a breakout board that has this feature and the board has to be wired up to take advantage of this feature. It is not just a setting in the software.

    I have a sound logic breakout board which supports this feature. I wired my board to send the machine into an E-Stop condition when it does not have the charge pump signal. My machine is wired so the stepper drives and spindle controller will not get power in an E-stop condition, but every machine is different so this can't be assumed. I'm guessing that the G540 has a build in breakout board? If so you will have to check with the instructions and see if it supports the charge pump feature and how it works with this specific board.

    Hope that helps.

    Dale P.

  5. #5
    Join Date
    Mar 2009
    Posts
    1114
    The G540 has a built in Charge Pump as well as a built in BOB. There is a dip switch on the back to turn it on and off.

  6. #6
    Join Date
    Feb 2007
    Posts
    456
    Just to be clear, the 'Charge Pump' describes a type of circuit that was originally designed to sense the 10kHz signal that Mach outputs to say "I'm in control". When you enable the 'Charge Pump' in Mach you are telling it to output the 10 Khz signal when ever Mach is running (and optionally during E-Stop condition or not.)

    So the 'Charge Pump' output signal from Mach is just an interlock of sorts to give your control the thumbs up to start powering things up. It prevents the things in your machine from turning on as the computer boots, as during the boot process the pins on an parallel port can be in an unknown (HI or LOW) state.

    The 'Charge Pump' signal is not a safety device though. It should not be relied upon to work as an E-Stop.
    Jeff Birt

  7. #7
    Join Date
    Dec 2003
    Posts
    24221
    I would see the signal that Mach outputs as similar to what many systems have used in the past and more commonly used to keep a Watchdog timer reset, rather than a charge pump, but the effect is the same.
    I would think putting it in any hard wired E-stop circuits, would not only prevent any operation until power up, but also if the PC were to crash or happen to go into the BSOD while running, also shut the operating systems down, and also maybe easier to implement?
    This to me would give it a wider scope.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  8. #8
    Join Date
    Feb 2007
    Posts
    456
    An 'E-Stop' is a very specific type of circuit, a safety circuit. It's job is to stop a machine when things go wrong it can be initiated by an operator or by a control sensing an error condition, like a limit switch being triggered. Think of an E-Stop as a several NC switches wired in series. Each switch as to be in its normal unswitched state (closed) for the circuit to completed and things to work. Even a wire in this circuit is damaged it will break the circuit and cause an E-Stop condition.

    The problem comes about when folks think they can use Mach and the charge pump to be the instigator of all things E-Stop. In other-words you have a switch hooked up to an input in Mach and set up in Ports & Pins as the E-Stop input. THEN you depend on Mach to quit outputting the chargepump signal in order for your BOB or other chargepump receiver to remove power from the drives. That is a very dangerous condition as the entire E-Stop system relies on a PC and a piece of software to always function properly in order for the E-Stop to work.

    An E-Stop circuit should be able to do its job no matter what is going wrong. That is why I suggest using the Charge Pump signal as an Enable not as a safety device.
    Jeff Birt

  9. #9
    Join Date
    Dec 2003
    Posts
    24221
    This is why I mentioned hard wired into the E-stop.
    I agree the true E-stop circuit should be a hard wired circuit, the watchdog/charge pump relay contact can be an AND'd part of the string.
    This has been done for many years now on industrial systems.
    If the electrical code was applied to anyones emergency stop, then ALL motion devices would have the power removed.
    I know the hobbiest community does not have to conform to the electrical code, but safety relays are becoming more prevalent and soon may be the code.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  10. #10
    Join Date
    Jun 2009
    Posts
    27
    Thanks everybody for all the information.
    Some more questions, should I be turning things on in any particular sequence? Meaning should I be turning the controller on before the PC or vice versa, should I be turning the controller on with the e-stop push in?
    My problem at the moment is that if I have the charge pump switched on and the switches set in Mach3 as recommended by Geko I get a red error light, if I switch the charge pump off on the Geko I get a green light. However, I can toggle the arrow keys and see movement on the DRO's, but nothing happens at the stepper motors, where should I be doing or where should looking to prevent the red error light from coming on, what haven’t I done?
    I did load the setup file from Geko but there where too many things included in that file that I am not using at this stage, so I made my own settings to Mach3 as required, even so I still can’t get any movement out of the steppers.
    Mike

  11. #11
    Join Date
    Feb 2007
    Posts
    456
    Sounds like you don't have Mach set up right. I would suggest using the Gecko supplied Mach profile and just disabling any axis that you are not currently using.
    Jeff Birt

  12. #12
    Join Date
    Aug 2005
    Posts
    1094
    Quote Originally Posted by michaelf View Post
    Thanks everybody for all the information.
    Some more questions, should I be turning things on in any particular sequence? Meaning should I be turning the controller on before the PC or vice versa, should I be turning the controller on with the e-stop push in?
    My problem at the moment is that if I have the charge pump switched on and the switches set in Mach3 as recommended by Geko I get a red error light, if I switch the charge pump off on the Geko I get a green light. However, I can toggle the arrow keys and see movement on the DRO's, but nothing happens at the stepper motors, where should I be doing or where should looking to prevent the red error light from coming on, what haven’t I done?
    I did load the setup file from Geko but there where too many things included in that file that I am not using at this stage, so I made my own settings to Mach3 as required, even so I still can’t get any movement out of the steppers.
    Mike

    Hi Mike,

    What you need to do is go into Machs general config and tick the Charge Pump in EStop checkbox.

    That should fix it.

    Cheers,

    Peter.
    -------------------------------------------------
    Homann Designs - http://www.homanndesigns.com/store

  13. #13
    Join Date
    Jun 2009
    Posts
    27
    Thanks Jeff and Peter.
    Peter, it’s probably just me, but I don’t understand what you mean by going to general config and ticking the charge pump in the EStop check box.
    In the input signals I have the EStop ticked, port 1, pin 14 and in output signals I have charge pump ticked, port 1, pin 16.
    Is there any way of checking if the controller is receiving information from the PC through the parallel ports?
    I am using the G540 CNC Stepper Motor Driver Controller assembled by Keling.
    Mike

  14. #14
    You can find more information on this circuits and how to implement them here: http://www.cnc4pc.com/Store/osc/index.php?cPath=23.

    Arturo Duncan
    http://cnc4pc.com

  15. #15
    Join Date
    Feb 2007
    Posts
    456
    The G540 is made by Gecko, NOT Keling.

    If you look in the Config menu in Mach you will see a selection called 'General Config'.

    Go over to the machsupport.com website and look under the documentation tab. Find your self the Mach users manual and download it. You will save your self a lot of time, trouble and frustration by looking through it so you have a general idea of what is in it and then having it to refer to when you need to change things.
    Jeff Birt

  16. #16
    Join Date
    Jun 2009
    Posts
    27
    Jeff, you are right, Gecko isn’t made by Keling, but Keling do make a complete controller using the G540, have a look at the bottom of the page. http://www.kelinginc.net/ControlSystem.html

  17. #17
    Join Date
    Aug 2005
    Posts
    1094
    Mike,

    You need to select Config->General from the Mach3 drop down menus. You should see the screen as attached. In the general configuration area, there is the 'ChargePump on in Estop'

    You need to check this checkbox.

    Cheers,

    Peter
    Attached Thumbnails Attached Thumbnails Config General.jpg  
    -------------------------------------------------
    Homann Designs - http://www.homanndesigns.com/store

  18. #18
    Join Date
    Jun 2009
    Posts
    27
    Thanks Peter, I checked the box but still have the fault light lit.
    The only other variation I have is in the BIOS set up;
    I have ON BOARD PARALLEL PORT "378h"
    PARALLEL PORT MODE "ECP"
    PARALLEL PORT IRQ "7"
    On the Gecko drive set up it shows the above as;
    EPP MODE SELECT "EPP1.7"
    I am now wondering if my parallel port doesnt support "EPP"

    Mike

  19. #19
    Join Date
    Aug 2005
    Posts
    1094
    Hi Michael,

    There are only a few reasons why the charge pump signal is not working,

    1. The charge pump signal generated from Mach3 is not being presented at pin 16 on the printer port. This is either due to you configuring the ports and pins incorrectly, or the printer port is not in the correct mode (EPP)

    Since your steppers do not move even when you disable the charge pump make me believe that the axis aren't set up correctly, let along the charge pump.

    Have you uded the GeckoDrive profile file for setting up Mach3?
    http://www.geckodrive.com/upload/540B.xml

    If not then use it do do the initial setup. If you are using it, then you need to check that you have sent up the printer port address and number correctly. It is done on the config ports and pins page.

    The standard setup is to use Port #1 and have its address set to 0x378

    Cheers,

    Peter.
    Attached Thumbnails Attached Thumbnails ports and pins.jpg  
    -------------------------------------------------
    Homann Designs - http://www.homanndesigns.com/store

  20. #20
    Join Date
    Jun 2009
    Posts
    27
    Thanks Peter, I think my problem is not being able to set the printer port to the correct mode "EPP", I will have to find away to fix that before anything else.
    Mike

Page 1 of 2 12

Similar Threads

  1. Charge Pump
    By cadmonkey in forum LinuxCNC (formerly EMC2)
    Replies: 8
    Last Post: 04-06-2010, 07:19 AM
  2. charge pump
    By eloid in forum DIY CNC Router Table Machines
    Replies: 3
    Last Post: 01-25-2009, 04:14 PM
  3. Charge Pump ???
    By jack55 in forum CNC Machine Related Electronics
    Replies: 6
    Last Post: 04-21-2007, 08:59 PM
  4. Diy Charge Pump Circuit?
    By zigmart in forum CNC Machine Related Electronics
    Replies: 6
    Last Post: 03-19-2007, 01:28 AM
  5. Charge pump
    By mlaws1172 in forum Screen Layouts, Post Processors & Misc
    Replies: 0
    Last Post: 01-04-2006, 05:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •