585,575 active members*
3,637 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Gecko Drives > Charge pump - do I need this on?
Results 1 to 18 of 18
  1. #1
    Join Date
    Sep 2009
    Posts
    160

    Charge pump - do I need this on?

    Trying to figure out the charge pump signal on Gecko 540 with Mach 3. My understanding is that the charge pump signal from Mach 3 to Gecko, tells the Gecko that the computer is alive. And apparently this is very important on metal cutting machines that typically have a coolant pump...am I close?

    So my machine is a headed to becoming a wood/MDF cutting router - no coolant pumps anywhere. And my Gecko 540 has the little external switch that allows me to turn off the charge pump.

    So, can I just turn off the charge pump switch on the Gecko and forget about the XML files and setting pin 16 in Mach 3 and all the rest of that jazz?

    Is there any reason for me to have the charge pump signal active? I think if my computer dies, it will be pretty dang obvious.

    Would one of you electronic guys enlighten me? Thank you kindly.

  2. #2
    Join Date
    Dec 2003
    Posts
    24220
    Historically processor controlled systems, which includes PC based systems, have used something called a watchdog timer, this essentially is used to produce the same result as a charge pump, it is just another method of using the 12.5khz signal.
    I believe the original intention of Mach was to indicate when the system was either booting up or closing down and motion can be inhibited during this period.
    My experience has always been to use any watchdog timer/charge pump signal output in the E-STOP string, this inhibits or shuts off any power devices, motors, drives etc.
    This allows for the eventuality of a PC crash or shut down and when powering up/down to disable the rest of the system.
    Obviously there is no point in drives obliviously controlling motors when the brain (PC) is dead.
    Especially in such systems as Mach where the controll loop is either open (steppers) or not closed back to the servo controller.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

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

  3. #3
    Join Date
    Mar 2003
    Posts
    35538
    The charge pump in Mach3 was created to keep relays from turning on and off, and the machine from moving, when Mach3 was not running.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  4. #4
    Join Date
    Sep 2009
    Posts
    160
    So, if i understand this correctly, the watch dog/charge pump function acts as a safety device to keep the muscles (drive/motors) from doing something bad when the brain (PC) suddenly dies? Okay, sounds like I need it to be active. Thanks, guys.

  5. #5
    Join Date
    Mar 2003
    Posts
    35538
    You shouldn't rely on the Charge Pump alone for safety.

    If you only turn your drives on and off while Mach3 is running, then the charge pump won't really do anything for you, unless Mach3 crashes, or you lose power.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  6. #6
    Join Date
    Dec 2003
    Posts
    24220
    A hardware E-stop string can be wired to take care of all eventualities, so if the W.D./C.P signal is part of it, then you do not have to worry about using it in individual cases.
    There is a snag, as if you monitor the E-stop by input to Mach to indicate an external E-stop has taken place, Mach turns off the 12.5khz signal on E_stop, so it becomes a catch 22.
    The answer would be to use the E-stop reset P.B. to momentarily turn off the E-stop enable input.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

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

  7. #7
    Join Date
    Sep 2009
    Posts
    160
    Sorry to be so dense...but I am getting confused. I thought the drive could not send a pulse to the motor unless Mach told it to. Hence in my understanding, the drive cannot give a move signal unless Mach is on...unless we are talking about the nanosecond where Mach has told the drive to pulse the motor...and the drive is executing that..and Mach crashes in the meanwhile...?

    Hope I am not coming across as a smart aXXX, but I truly do not understand this stuff.

  8. #8
    Join Date
    Feb 2007
    Posts
    966
    When a PC is booting up the steppers could jump around when windows is doing Plug and Play. (if the controller was on)
    But the most serious thing would be if the spindle turned on randomly (and some one was changing a tool).

    Like AL says, If Mach drops the CP signal when you hit the Estop, its good and bad. Its possible to loose machine steps when you enable/disable the Step/Dir driver.

    Its a wasted line when you use the CP signal, but its your call.

    Larry K

  9. #9
    Join Date
    Aug 2005
    Posts
    1091
    Quote Originally Posted by zeeway View Post
    So, if i understand this correctly, the watch dog/charge pump function acts as a safety device to keep the muscles (drive/motors) from doing something bad when the brain (PC) suddenly dies? Okay, sounds like I need it to be active. Thanks, guys.
    No. This is completely wrong. The original purpose of the Chargepump enable was to overcome the problem of PC's twiddling some of the parallel port output pins when the PC boots.

    Depending on what is connected to these pins, you may end up with a spindle temporary turning on and/or spurious step signals being send to you drives. This means that the machine is no longer is the same position that it was when powered down.

    The 12.5KHz signal was chosen as at the time Mach1 had a kernel speed of 25KHz, so the 12.5KHz was very easy to generate. The signal was generated whenever mach3 is running.

    Later on some people wanted it tied to the Mach3 'Reset' State. In this case, the chargepump enable is now only generated when Mach3 is not in a 'Reset' state. Some people then assumed that this was a signal to use in an EStop situation. They have an EStop button connected to the parallel port via a BOB and have Mach3 stop the Chargepump and disable the drives, spindle etc.

    This results in an extremely dangerous setup. The reason you press the estop may be because Mach3 is malfunctioning. When you press it Mach3 may ignore the input, not remove the estop and the drives and spindle keep running.

    There is a config option in Mach3's general config tab that allows the Chargepump enable to be present all the time regardless of the 'Reset' State.

    I recommend that people configure Mach3 to have the Chargepump signal present all the time Mach3 is running and have a proper EStop circuit that removes power from the drives and spindle when pressed.

    If you want, you can have your Estop circuitry inform Mach3 that an EStop condition has occurred, so it also stops. But do not rely on software to execute an Estop.

    Cheers,

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

  10. #10
    Join Date
    Sep 2009
    Posts
    160
    Aha - now maybe I understand. So, when the computer is booting up or crashing, it may generate some spurious signals through the parallel port. If the drive is on during these events, these spurious signals may be interpreted by the drive as signals to turn on the spindle or move an axis a few bumps. The result could be dangerous or inconvenient depending on your setup. So, my understanding is now when the charge pump/watchdog timer signal is present, the drive knows that the computer is fully booted and giving it intentional (not spurious) commands.

    So while having the charge pump/watch dog function is optional, it is a good idea to avoid some undesirable effects.

    Thanks for all the help... (hope I got it right this time).

  11. #11
    Join Date
    Dec 2003
    Posts
    24220
    Watchdog timers and charge pumps have been used for decades and they were not intended as a primary source of E-Stop but were commonly used in the HARDWIRED e-stop string.
    If an E-stop occurs it is customary to cut power to all powered devices and advise the controller that an E-stop has occurred, there is no reason it cannot be done safely.
    At some point in time the W.D./C.P. signal has to be detected by hardware, it may as well be in the E-stop.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

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

  12. #12
    Join Date
    Aug 2005
    Posts
    1091
    Quote Originally Posted by Al_The_Man View Post
    Watchdog timers and charge pumps have been used for decades and they were not intended as a primary source of E-Stop but were commonly used in the HARDWIRED e-stop string.
    If an E-stop occurs it is customary to cut power to all powered devices and advise the controller that an E-stop has occurred, there is no reason it cannot be done safely.
    At some point in time the W.D./C.P. signal has to be detected by hardware, it may as well be in the E-stop.
    Al.
    Al,

    The watchdog timers and chargepumps you talk about have always been generated via independent hardware/software from the system they are monitoring.

    The 12.5KHz signal Mach3 is generating does not fall into the Chargepump category that you described above. It has been incorrectly labelled 'chargepump', that's all.It is in fact an Enable output.

    It is the same as the Mach3 input signal in the ports and pins config that has been incorrectly labelled as 'EStop'.

    Cheers,

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

  13. #13
    Join Date
    Dec 2003
    Posts
    24220
    So my question is then, if I were to take the 12.5khz signal and feed a 555 watchdog timer with relay contact output and AND it in my hardwired E-stop string in order to detect a PC fault, shut down, powering up or any event that Mach is not running, this would be construed as wrong?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

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

  14. #14
    Join Date
    Aug 2005
    Posts
    1091
    Quote Originally Posted by Al_The_Man View Post
    So my question is then, if I were to take the 12.5khz signal and feed a 555 watchdog timer with relay contact output and AND it in my hardwired E-stop string in order to detect a PC fault, shut down, powering up or any event that Mach is not running, this would be construed as wrong?
    Al.
    Al,

    What I'm trying to say is that you cannot rely on the charge pump output from Mach3 to tell you that Mach3 is operating correctly. Only that it is operating.

    So, If I were you, I'd wire it as you suggest, and configure Mach3 to generate the chargepump signal , all the time.

    With this set up, your relay from the 555 will be OFF until you start Mach3, after which it will active the relay.

    Does that make sense?

    Cheers,


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

  15. #15
    Join Date
    Feb 2007
    Posts
    966
    Quote Originally Posted by phomann
    They have an EStop button connected to the parallel port via a BOB and have Mach3 stop the Chargepump and disable the drives, spindle etc.
    This results in an extremely dangerous setup. The reason you press the estop may be because Mach3 is malfunctioning. When you press it Mach3 may ignore the input, not remove the estop and the drives and spindle keep running.
    IMO , There should be 2 stop buttons on a system. A big RED Estop that Kills power to mains (and signals Mach to stop via BOB input) in case of severe problem (part come loose, machine slamming into Vise etc)
    And a smaller Red Feed stop button that Stops Mach (via the BOB estop input)and Holds the axes and relays in their current state. It could also shut down the spindle (like a Fanuc does when you hit soft reset) It shouldn't disable the axies motors. You use this button most of the time to stop the machine.

    You almost never hit the Big Estop unless you want your workpiece and cutters possibly destroyed ! It can self feed into the part.

    Quote Originally Posted by phomann
    I recommend that people configure Mach3 to have the Chargepump signal present all the time Mach3 is running and have a proper EStop circuit that removes power from the drives and spindle when pressed.
    Too extreme !
    Mach3 is stable while its putting out a charge pump signal, trust it.
    I do agree to have Mach output the CP signal all the time though.

    Al, I would just use the CP 555 output and AND it to the Spindle_on and other relay outputs. Keep it out of the Estop circuit. You can configure Mach to drop the CP on Reset if you want.

    Larry K

  16. #16
    Join Date
    Aug 2005
    Posts
    1091
    Quote Originally Posted by Larken View Post
    IMO , There should be 2 stop buttons on a system. A big RED Estop that Kills power to mains (and signals Mach to stop via BOB input) in case of severe problem (part come loose, machine slamming into Vise etc)
    And a smaller Red Feed stop button that Stops Mach (via the BOB estop input)and Holds the axes and relays in their current state. It could also shut down the spindle (like a Fanuc does when you hit soft reset) It shouldn't disable the axies motors.

    You almost never hit the Big Estop unless you want your workpiece and cutters possibly destroyed ! It can self feed into the part.
    No, No, No. You cannot have to types of EStop buttons. In an emergency you don't have time to decide.

    Don't confuse the issue. Mach3 has a feedhold. It has a stop input. We are not talking about these. These have no bearing on a safety circuit. The feed hold and stop inputs are normal operating inputs such as feedrate, spindle on/off etc.

    There should only be 1 type of EStop button.

    Quote Originally Posted by Larken View Post
    Too extreme !
    Mach3 is stable while its putting out a charge pump signal, trust it.
    Larry K
    This is an extremely irresponsible statement.

    Have a look through the Mach forum and Yahoo group and count the number of times people report axis runaway. In all these cases Mach3 believes that it is operating correctly, sometimes it is and sometimes it isn't. In all cases, the chargepump signal is present.

    Relying on Mach3 to remove the chargepump when things go wrong is asking for disaster.


    The Emergency Stop system you put in place needs to be appropriate for the machine that you have. If your machine cannot damage anyone or anything then you may not need an Estop at all.

    If you have a large machine moving hundreds of pounds of metal, you Estop circuitry, probably needs to appy brakes to the axes in addition to removing power.

    Cheers,

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

  17. #17
    Join Date
    Feb 2007
    Posts
    966
    No, No, No. You cannot have to types of EStop buttons. In an emergency you don't have time to decide.

    Don't confuse the issue. Mach3 has a feedhold. It has a stop input. We are not talking about these. These have no bearing on a safety circuit. The feed hold and stop inputs are normal operating inputs such as feedrate, spindle on/off etc.
    There should only be 1 type of EStop button.
    I'm agreeing that a big machine needs a Main Estop button to kill the power. This has nothing to do with the charge pump. It overrides everthing. Everthing is lost.

    The one that has to do with the charge pump is the Stop input on Mach through the BOB.


    I've had a 6 ton Leadwell V40 machining center for 10 years with a Fanuc control ,and i've only once had to hit the Big Estop.
    I always use the Soft reset that just stops the machine and the spindle, coolant, but keeps the motors holding.

    What name should the Estop into Mach be called to avoid confusion? Maybe Mstop (Mach-stop)?

    I know there are a number of theorys on Estops. Maris knows there are people who want to put a Estop relay on the incoming DC power to the stepper drives, but this blows drives. Some people even run the main power through their limit switches , yikes !

    Larry K

  18. #18
    Join Date
    Aug 2005
    Posts
    1091
    Quote Originally Posted by Larken View Post
    I've had a 6 ton Leadwell V40 machining center for 10 years with a Fanuc control ,and i've only once had to hit the Big Estop.
    So you've had one emergency situation, what point are you making?


    I have a pick and place machine that would do severe damage if a hand was caught in it. The rapids are really impressive.

    I haven't had to press the E-Stop yet, but if I did, the last thing I'd want is the E-Stop to go into the software and request it to do something to help me.



    Quote Originally Posted by Larken View Post
    What name should the Estop into Mach be called to avoid confusion? Maybe Mstop (Mach-stop)?
    Either 'Disable' or 'Select'.


    Quote Originally Posted by Larken View Post
    I know there are a number of theorys on Estops. Maris knows there are people who want to put a Estop relay on the incoming DC power to the stepper drives, but this blows drives. Some people even run the main power through their limit switches , yikes !
    Larry K
    This is the reason why we who know should clearly explain what is required. I even disagree with the G540 input 10 being labelled "DISABLE input (E-STOP)" when "DISABLE input" is sufficient as it accuratly describes the input.

    Cheers,

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

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 michaelf in forum Benchtop Machines
    Replies: 23
    Last Post: 10-25-2009, 11:55 PM
  3. charge pump
    By eloid in forum DIY CNC Router Table Machines
    Replies: 3
    Last Post: 01-25-2009, 04:14 PM
  4. Charge Pump ???
    By jack55 in forum CNC Machine Related Electronics
    Replies: 6
    Last Post: 04-21-2007, 08:59 PM
  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
  •