Hello Guest it is April 26, 2024, 11:40:38 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - armac

Pages: 1
1
I have created a circuit to deal with Gecko G320 power-up faults and reset requirements.  It solves all my problems by allowing the Campbell breakout board to power-down the Gecko power supply on an ESTOP condition, and it provides automatic Gecko start-up when the Mach3 RESET is pressed as well as servo fault detection using a Limit sense input.

The advantage of powering down the Gecko drives is a safety issue in case a Gecko fails and kicks on a servo motor when in an ESTOP condition.  I know, not likely, but I can imagine pawing around an ESTOPed machine and suddenly having a motor kick on, pinning me or worse.  With this circuit, you can kill the Gecko power supply when in ESTOP mode by breakout board relays, and automatically initiate Gecko servo driver power-up when the Mach3 RESET button is pressed.  Fault detection is then automatically enabled after start-up Gecko faults are removed.

I have attached a .PDF file with the circuit diagram and explanation.   :o

Happy and safe machining!

2
re: DennisF
The fault/reset pin 5 will be pulled to ground on a fault condition through an internal resister by the Gecko, or you can manually pull it to ground to kill the Gecko. or you can manually pull it to +5V to reset the Gecko  (It is current limited by the 470 Ohm resistor in the Gecko and will not kill your computer power supply)  You only need to pull this pin to +5v for reset (which you are already doing), and alternately pull it to ground to force the Gecko drivers to fault if you wish.  You can tie this pin to an input to the computer for fault detection, usually through an optical isolator built in to a breakout board to protect the computer parallel port.  You can also tie several of the Gecko pin 5 resets together and use a single switch to control all simultaneously.  Your computer power supply should have no problem as long as you don't short the +5 volt supply to ground directly.

3
re: jimpinder
Yes, there are inputs available on the breakout board.  The problem is the Gecko fault occurring on power-up.   If I am going to use the Gecko fault for an ESTOP function, simply connecting a fault from the Gecko to an input on the breakout board will not allow me to power up the system.  As soon as the RESET button is pressed, power goes to the Gecko drivers and they immediately shut the system back down.  It seems silly that the breakout board removes power to the Gecko drives as well as step and direction shutdown.  Perhaps if the 5V were to remain on from the breakout, all would be well.

re: Hood
The original question was to kill all drivers if one faults so that all must be reset.  That can easily be done by wiring all pin 5 resets together and using a momentary switch to pull all to +5V for reset.  If one drive faults and there is no feedback to Mach, you do not want the system to keep running on the other drivers.  Thus one faulting Gecko can also shut down all other Gecko drivers.  Obviously, the better solution is to notify Mach that there is a problem and shut down the machining process completely.  The connection on the G320 is pin 5, which doubles as a reset and a fault.  On power-up, this pin is pulled low through an internal resistor (impedance about 235 Ohms) indicating a fault condition, and must be hard-pulled up for several seconds to reset the Gecko.  Why they thought that a fault should occur on power-up, I can only guess that it is a safety measure.  It is a headache to use this signal for fault detection/ESTOP and be able to power up the machine as well.

4
All the Gecko G320 reset pins (pin 5) can be tied together, so that one faulting driver will shut down the others.

  My Campbell breakout board has no provisions to utilize the fault/reset outputs from the Gecko drivers, so Mach does not know when an error occurs.  As a result, the machine was delivered with no fault detection and the fault-reset pins were tied to +5V permanently for automatic start-up.  Since the fault pins are tied high to +5V, the Gecko does automatically reset after a few seconds, but Mach does not know and continues milling with the machine now offset from where it should be.   (It caused my milling machine to eat up a tailstock and milling bit, and me to nearly have heart failure).  According to the Gecko engineers, leaving the fault tied high is a really bad idea (duh).

  I have been struggling with the Gecko G320 drivers to automatically start up when powering up the machine, and also to provide a fault condition when milling so that an ESTOP can shut down the machine.  The trouble is that when the Gecko G320 is powered up, it immediately "Faults" and must be enabled by momentarily placing +5V on the fault pin 5 for a few seconds (reset function).  This has the unfortunate result that when the fault is wired to a limit function, you can not power up the machine since it triggers a shut-down as soon as the RESET is pressed and power comes up.  The Gecko people can only suggest a center-position manual switch to toggle the drive units on or off, but does not prevent the fault-startup problem from occurring when sensing pin 5.  They ran short of pins and doubled up the reset and fault functions (unfortunate choice).

  I am sure that others have solved this problem since Gecko drivers are in wide use, so if anyone has a solution to this problem, please post it.

 :P  In the mean time ...

  In order to get around the problem, I just purchased some photo-darlington transistors (Fairchild L14F1) that are sensitive enough to sense the fault LED on the Gecko drive modules when glued or placed above, which then can activate the Limit pins on my Campbell break-out board (it works).  I still need a delay to prevent the fault start-up from killing power-up.  I intend to place a N-FET (at least 15 mA capable) with its SOURCE tied to GROUND and the DRAIN being common to all photo-darlington EMITTERS, and with a simple RC delay on the N-FET GATE (CAP to ground, resistor to +5V with the common connection tied to the GATE) to hold off activation of the fault until 10 seconds have passed when powered up.  Each photo-darlington COLLECTOR is wired to a limit pin on the breakout board.  This way, each Gecko can have its own fault sensed, hopefully reporting which one faulted and having the message displayed on the screen in a status window (needs some programming to monitor the LEDs).  Alternately, a 555 timer could be used as the delay element in place of the FET, but is harder to wire without a small circuit board for the IC pins.

  If all goes well, I can hit the RESET button to power up the machine, Geckos fault for several seconds (with pin 5 tied to +5V for automatic reset) but fault reporting to MACH will be delayed by the FET until the Geckos clear their fault conditions.  Now the machine should run normally until a limit switch or a Gecko fault lights its LED and activates a photo-darlington which pulls a limit pin to GROUND and triggers an ESTOP shutdown, and hopefully reports the offending error condition.

Pages: 1