Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: dougie329 on December 04, 2011, 10:48:01 AM

Title: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: dougie329 on December 04, 2011, 10:48:01 AM
Newly built machine running gecko G540. Got all the motors running and tuned in etc. When I run a program or sometimes when jogging around it throws up an external estop, it doesnt happen in the same place. I have tried:

swapping the axis over
disabling the limits
removing all the motors from the gecko (still does it when running through a program)
messed with the debounce
checked all the wiring and connections
disconnected the spindle so it cant be that

All the motors are grounded, shielded, have resistors on.

Any suggestions on what this could be? I have been troubleshooting it for hours and hours with no joy. Could it be a faulty gecko?
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: Hood on December 04, 2011, 10:51:54 AM
 E-Stop wiring properly shielded and grounded?
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: dougie329 on December 04, 2011, 11:02:16 AM
no the estop isnt shielded, its definately grounded. Is there a way I can disconnect the estop to eliminate that? It seems like the gecko and/or mach wont run without it. When I disable it in mach it just pops back up ticked again.

Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: Hood on December 04, 2011, 11:24:14 AM
yes just change the active state.
Hood
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: dougie329 on December 04, 2011, 01:06:31 PM
I have disconnected the actual e-stops (2 of them) and jumpered the gecko pins 10 and 12 to bypass the estops. It still throws up an imaginary estop!

limits are disconnected aswell so both the limits and estop can be discounted.

Any ideas?
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: Hood on December 04, 2011, 01:12:48 PM
Can you attach your xml, may be a config issue.
Hood
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: dougie329 on December 04, 2011, 01:26:34 PM
Just been playing with it a bit more and the strangest thing is happening.

If I plug the X and Z cables into the gecko, (setup as before with estops and limits disabled) I get a green light and can move them about. If I plug Y and A in (slaved axis) then it goes to red light and wont run. However if I plug just the Y in then it works and likewise if I plug just the A in it works but not together. I have unslaved them in the software but when they are both plugged in the gecko wont run!!
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: Hood on December 04, 2011, 03:58:54 PM
ok have you tried plugging these axis in to the others, eg a into x and y into z. That will let you know if the issue is on the plug side of the wiring.
Hood
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: dougie329 on December 04, 2011, 04:15:14 PM
Hi, Yes ive tried plugging them in all the differernt axis in multiple combinations and it seems to have the same problem. There is nothing consistent about the way its happening which I can definately say its related to one thing or another. It throws an estop up whether I have X or Y plugged in, all four plugged in or none plugged in. The only thing I can think of is a faulty gecko but its new so I am not sure. Once it does throw an estop up to reset it I have to push the physical e-stop on the machine in and then twist and pull out and it resets.
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: Hood on December 05, 2011, 06:18:55 AM
Geckos stuff is usually pretty good but there is always a chance there is a problem. Gecko are pretty good with things like that so may be worth contacting them and see what they suggest.
Hood
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: dougie329 on December 13, 2011, 05:02:55 AM
This is still causing a lot of problems, ordered another gecko. Same thing happens, its very strange, just throws an e-stop up after a few seconds. Will only reset upon shorting the e-stop. So I ordered another gecko, same thing, changed all the 4 motors, reloaded mach3, chnaged computer, bought another brand new (different make) 48v, 7amp power supply, charge pump on/off, bought in a large 6800uf capacitor for the power supply, built a whole fresh control box, same problem. It did strangely work for 5 minutes with a 24v power supply.

Any ideas, the only thing I can think is its the gecko G540? tearing my hair out here!
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: Hood on December 13, 2011, 05:48:25 AM
Are you wiring as per the G540 docs?
Hood
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: Hood on December 13, 2011, 05:56:39 AM
Also can you attach your xml as you never did the last time I requested it, could be a simple config issue.
Hood
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: mrtomsharp on January 17, 2012, 12:58:12 PM
I'm having the same kind of imaginary e-stop problem.
I think I may have figured out the cause.
Whenever I turn on the shop vacuum to collect some wood chips the imaginary e-stop occurs.
I experimented by powering the shop vacuum else ware and the problem is less prevalent.
However is something big, like the air compressor, kicks in there we go again.

I am running the shop computer and CNC electronics off of a single 15A circuit and the router off of a separate 20A circuit.
The 15A circuit also powers the other shop outlets.
Someday I will have dedicated circuit.

Until then, I'm thinking a small UPS for the CNC electronics.
dougie329, could this be the cause of your issue?
Do you think the UPS solution will work for either of us?


Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: simpson36 on January 20, 2012, 05:11:47 PM
A UPS probably will not help. A line filter will. And moving the PC and the motor power supply to different power circuits can have a positive effect.

Random 'spookie' issues in general can be caused by voltages that are hovering near the ON/Off TTL threshhold. Make sure you do not have a newer 3.3V parallel port driving a 5V BOB.

Assuming all of that is OK, add pull-up or pull-down resistors the the pins that are causing trouble. i.e. hold then up or down away from the threshold.

Practical example: Say your E-stop line goes HIGH to activate E-Stop. Put a 10K resistor between that pin and ground. This will hold the signal OFF and keep it from wandering all over the place from induced voltage. When your E_stop goes HIGH, it will have no trouble driving thru the 10K resistor to pull the pin HIGH. Still, check it to be sure.

Conversely, if your E-stop goes LOW, then put the same resistor frm the pin to 5V to hold the pin HIGH until the E-stop signal pulls it down. Some BOBs have these pull-up/pull-down resistors built in. If your BOB has these, make sure that they are set to pull in the right direction as described above.
Title: Re: HELP, mach throws up random ESTOP mid program. Gecko G540
Post by: dude1 on January 20, 2012, 11:08:33 PM
if you have Use WatchDogs ticked on general config un tick it if it still happens it could be your computer i have the same problem  i un ticked it it stopped happening my computer just runs it it only happens sometimes