Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: teccboxx on July 20, 2010, 02:31:57 AM

Title: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 02:31:57 AM
I am running there KL-G540 setup with Mach3 on a Vista 32bit.


I have tried the XML files from the gecko website, keling website, and tinkering around I cannot get it to come out of reset. I get a estop requested message. I know the port and pin are correct with 1 -15 in the setting. Also in the diagnostic page in Mach the m1home - m4home have a yellow box next to them. I turned the limits off to get rid of this,


Anyway went through all the wiring 5 times already and everything is wired correctly.

When the charge pump is off the motors lock. And the estop will fault when pressed.

Also the lpt port is set to epp and is running properly. and I have the correct port set in mach. I just do not know where to go from here. Any help will be great
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 04:45:42 AM
Do you have an E-Stop switch fitted?
Hood
Title: Re: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 10:47:08 AM
Yes I do have a eswitch
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 01:32:27 PM
Is the E-Stop LED showing on the diagnostics page? If it is change the active state of it in Ports and Pins and see if that helps. If you can now get out of Reset then first thing is push the E-Stop to make sure it works after changing the active state.
Hood
Title: Re: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 01:39:37 PM
The led is blinking???!!!

The estop came wired like the following.

10 connects to the estop

12 connects to the V- on the psu

Another wire connects to the other side of the estop to the V-

I was just playing with the active state when unchecked or in high it blinks when in low state it blinks faster!!
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 02:22:01 PM
Do you have a link to any documentation for the hardware you have?
Can you attach your xml please.
Hood
Title: Re: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 02:50:31 PM
Thanks for all your help Hood it really is appreciated.

Attached is the schematic and the xml file and a link to the controller I purchased.

http://www.kelinginc.net/ControlSystem.html (http://www.kelinginc.net/ControlSystem.html) it is package F

Also pins 1-9 on the g540 are going to a db9 port and nothing is connected to this port. I am about ready to just disconnect all those wires.

Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 02:59:26 PM
Your pdf doesnt seem to have uploaded correctly, while I have a look at your xml  I am wondering though if you have the patch for Vista installed?

Hood
Title: Re: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 03:03:12 PM
That is the first thing I checked I uninstalled mach3 reinstalled, ran the registry patch and re-booted
Title: Re: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 03:05:10 PM
also here is the link to the schematic

http://www.kelinginc.net/G540WD.pdf (http://www.kelinginc.net/G540WD.pdf)
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 03:08:55 PM
Your xml looks fine, obviously you have disabled most things but apart from that I see no problems.
Can you disconnect the parallel port cable from the computer and see if you can reset.
Hood
Title: Re: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 03:13:46 PM
Yes I can reset after I pull the cable and when I turn the controller off
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 03:20:14 PM
Ok so that proves Mach and Vista are fine as far as the Reset issue is concerned.
What I would do next is pull all the DB9 plugs, pull all the wiring out of the terminal strip on the G540 with the exception of the power supply (pins 11 and 12) and plug back in the Port cable and power up your supply.
See if Mach is OK still, if not would seem its a G540 problem. In the mean time I will have a look on Geckos site and see if there is info on it there as I am not familiar with them.
Hood
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 03:22:41 PM
Ok having a look through the manual you will also need a jumper wire between pin 10 and 12 or the G540 will fault (this is because you dont have your E-Stop wired in at the moment)

Hood
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 03:26:43 PM
Ok its worth looking at the G540 manual as there is a lot more info, look at page 1 for initial setup especially the charge pump disable switch.
http://geckodrive.com/upload/G540%20REV4%20MANUAL.pdf
Hood
Title: Re: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 04:02:53 PM
Ok so I disconnected all the wires to the g540 except for pins 10, 11, and 12

10 goes to estop c
11 goes to 48+ on psu
12 goes to ground on psu
Ground on psu connects to nc on estop

Still the same problem

I then totally disconnected the estop

10 jumps to 12 then connects to ground on psu
11 connects to 48+ on psu

still the same problem
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 04:05:06 PM
One other thing, if you have an ohm meter check the parallel cable is direct through pin for pin.
Hood
Title: Re: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 04:27:04 PM
Thanks hood, running in town to pick one up I guess I should have one.

I also placed a overnight order for a new parallel port card and cable just in case.

Hopefully this will work.

Thanks again for all your help and I will keep you updated.
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 04:31:20 PM
Did  you do the test, mentioned at  the bottom of page one in the G540 manual, to get the green LED?
Hood
Title: Re: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 04:59:52 PM
Yes I did the test with the charge pump.

When disabled it turns to green,

When wired to the estop that I had it was green and when pressed it switched to fault or turned red. Plus I tried with one of the motors pluged in and it is pproviding a charge to the motor as well as you cannot turn it. So I don't think it is a problem with the g540 but with either the cable as you mentioned or a problem with the parallel card. At least I hope.
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 05:07:31 PM
I dont really think its a problem with the port as I would think you would see the problem with the cable unplugged as well, but you never know. Heres hoping its the cable.
Hood
Title: Re: First Time Setup and I am losing my mind
Post by: teccboxx on July 20, 2010, 06:25:27 PM
Looks like it is the cable when connected to pin 15 on one end it connects to pin 2 on the other end.

I would have never looked there as it was a brand new cable from cablestogo and I have never had a problem with them before.

Anyway, I have a new cable that should arrive tomorrow. But I will go through and splice the one I have to see if I can't get it to work.

Thanks for the help
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 20, 2010, 06:39:34 PM
Great news, I am sure thats what it will be, make sure you check the rest of the pins though as there may be more.
Hood
Title: Re: First Time Setup and I am losing my mind
Post by: jongray on July 21, 2010, 03:13:59 AM
The manual ended ambiguously, or maybe I am the only one who didn't catch how to make the software get out of emergency mode. Is there another trick?, or is there software that will control the stepper motors for real? The software included from Longs Motors does not unzip, so I downloaded software from Artsoft, which must have been a mistake. The port address is correct, is there something else needed to make this work? The software appears, at least looks like it could be of of value, yet nothing works in e-mode, thus rendering it useless, with no information easily available to make it work.  Tried switching port logic - no avail. I've heard rumors of people who have made Mach3 work, are they all on youtube because they were able to make this work?, or has someone else cracked this code? 
 It looks so good, yet with RESET flashing, the program is useless. Has anybody gotten this to work? It seems popular, thus, I must be the only one who has not figured out what was trying to be said. Very Frustrating.
By default, this program does not work, is there a program that can work somewhat like this one looks like it should, but with a manual that tells one how to make it work? This has cost a tremendous amount of money so far. There is a license .dat file that came on the mini-CD, but the
(Chinese) original program did not unjzip on my computer. That's why I downloaded a version from Artsoft - and that must be a problem, if not the only problem besides the incomplete manual .
JZ
Title: Re: First Time Setup and I am losing my mind
Post by: Hood on July 21, 2010, 04:28:11 AM
John
better sit down and take a deep breath and relax, you are obviously a bit annoyed at this time ;D
Mach does work and it is very simple to set up a basic configuration but can be daunting when its all new to you.

What message do you get when you try to Reset?
Have a look on the Diagnostics page and see if any LEDs are lit up for Limits or Emergency.
Change the active state of the E-Stop in Ports and Pins, Inputs.

These are a few simple things to do but if they dont help then post again but this time try and give some information about your machine and if possible a link to any documentation. Also attaching your xml would help troubleshoot.

Hood
Title: Re: First Time Setup and I am losing my mind
Post by: mr.c on July 22, 2010, 11:29:53 AM
Read this thread and note the last post. Try clicking active low in configuration of estop.  I had this happen last  year and did a search and found a solution. This may have been it.
http://www.cnczone.com/forums/archive/index.php/t-99470.html
Title: Re: First Time Setup and I am losing my mind
Post by: jongray on July 22, 2010, 08:03:39 PM
Setting the active low for e-stop worked. I am now ready to move to the next step. (I was just about to ring-out my cable, but now I can recheck all my pin settings and see if I can move the motor.) It is such a relief to see the Reset not flashing - THANK You Guys Very Much for your response. JZ