Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: drf24 on December 31, 2012, 11:27:38 PM

Title: Mach3 setup problems
Post by: drf24 on December 31, 2012, 11:27:38 PM
First let me say I have tried searching for other posts with similar problems. I have tried everything I could find. Even went to Youtube to watch the tutorials, still no luck.
I have been trying to figure this out for the past 3 days (on Vacation) and I have yet to get any movement from the motors! I will most likely do cart wheels when one of the motors actually move!
my setup is a "kit" from Automation Technologies. 3 KL23H2100-50-4B stepper motors, 3 KL-6050 stepper motor drivers, and a C-10 breakout board running on XP professional on a surplus industrial computer.
Everything is wired per the diagrams found on Automation Technologies website. I'm still not sure they are correct but they are aired as the schematics.
Everything is setup on the bench to ensure it is working correctly. I have the E-Stop set to a normally open state. There are no limit switches hooked up yet. I did try to jumper a wire to make sure that wasn't causing my problem.
I have run the driver test several times and it passes with flying colors. I have noticed though, my X & Z axis motors "lock up" (I'm unable to turn by hand) when power is applied but I can still turn the Y axis by hand.
Thanks for any help in advance!
Dean
Title: Re: Mach3 setup problems
Post by: drf24 on December 31, 2012, 11:52:52 PM
Forgot to mention, I added the XML incase it may be of some help.
Title: Re: Mach3 setup problems
Post by: Tweakie.CNC on January 01, 2013, 02:02:50 AM
Hi Dean,

Check that you have the Y axis motor wired correctly. All motors should lock when power is applied.

Download and run Parmon http://www.geekhideout.com/parmon.shtml this will enable you to test that your LPT parallel port is enabled and working OK.

Tweakie.
Title: Re: Mach3 setup problems
Post by: Hood on January 01, 2013, 08:30:52 AM
You have Jog Control switched off, enable that and see if you can jog. It is middle lower of the main page in Mill.
Also you have some keyboard keys assigned for jogging that are not stahdard, best to put them to standard, ie go to Config menu then System Hotkeys and click on X++ and when the box pops up press right arrow on keyboard, move on to X-- and press left arrow, etc
Hood
Title: Re: Mach3 setup problems
Post by: Hood on January 01, 2013, 08:35:15 AM
One other thing, you have it set to tep Jog and the increment is 1 unit. This means when you press the arrows it will move 1 inch and will stop until you release and press again. Best to put it in continuous jog at this stage. To do that press Tab key on keyboard and on the flyout screen click the Jog mode button until continuous is Lit.
Hood
Title: Re: Mach3 setup problems
Post by: drf24 on January 01, 2013, 09:56:56 AM
Thanks for the ideas, I downloaded Parmon last night just haven't had a chance to try it. I did check the outputs on the board last night with an o-scope and I seen what I would describe as pulses "riding the other waveform" Once I grounded the the scope probe though I didn't see any activity at all.
Well back to the garage so see if this works!
Thanks again!
Dean
Title: Re: Mach3 setup problems
Post by: Hood on January 01, 2013, 10:02:10 AM
Your scope trace sounds like noise, what scale did you have the scope on? you want 5v/div if using a 1x probe.
Hood
Title: Re: Mach3 setup problems
Post by: drf24 on January 01, 2013, 11:14:01 AM
The only time I would get the traces or "spikes" was while I was trying to move an axis.
I have tried all of the suggestions, no luck yet. I went back and checked the wiring for the Y axis. Plugged the motor into the X axis driver and the motor locked when I powered it up.
I ran Parmon while I did all of this. The connector would only go high on the -x and -y movement.
I am beginning to wonder if the breakout board is sending all of the signals to ground.
Title: Re: Mach3 setup problems
Post by: Hood on January 01, 2013, 12:24:44 PM
Do you have the correct port address set in Mach?
Can you unplug the parallel cable and test with the scope direct on the port whilst jogging?
Hood
Title: Re: Mach3 setup problems
Post by: drf24 on January 01, 2013, 02:07:11 PM
378 according to the System Device manager
Still looking at the breakout board, it has to be something simple I am missing
Title: Re: Mach3 setup problems
Post by: drf24 on January 01, 2013, 02:11:52 PM
Another question about the wiring, I have two of the wires coming from the Keling motor drivers shorted to the common ground. Does that sound right? The two pins are DIR+ and CP+
Title: Re: Mach3 setup problems
Post by: Hood on January 01, 2013, 02:18:32 PM
I would have thought they should be to a common +5v rather than the 0v.
Hood
Title: Re: Mach3 setup problems
Post by: drf24 on January 02, 2013, 12:43:57 PM
Short list of what I have seen/ found thus far,

I am using Mach 3 software on an XP computer system. I have downloaded a program to verify the software is putting signals out through the parallel port.

What I have found so far,

1 of the 3 motors does not "lock" once power is applied. It becomes a little bit harder to turn with the power on but I am still able to turn it with two fingers.
I have the EN port wired directly to the 5VDC input.
Each motor is wired per the schematics listed on the webpage where I purchased the drivers under the KL-6050 driver page.
The Emergency Stop has been wired also and the software does recognize changes I make by pushing or resetting the E-Stop.
So far I have not been able to get any sort of movement out of any of the motors. I have checked the out-puts to the driver card and with an o-scope probe not grounded I can see pulses (maybe 5mV) as I try to move an axis, once I ground the probe I am not able to see any pulses.
According to Parmon I am only seeing outputs change when I do a negative movement. I should be able to move X & Y with the key board arrows or the manual jog screen. IE.. I push the up arrow the #2 pin goes high, I then when I push the down arrow #3 pin goes high but #2 pin also stays high.
Title: Re: Mach3 setup problems
Post by: Hood on January 02, 2013, 02:47:37 PM
Can you link to the site you got the drives, certainly doesnt sound right to me that yopu have the Step and Dir positive inputs to the drives connected to 0v. I would have thought, depending on your breakout board , you would either have the step/Dir + connected to +5v or the Step/Dir - connected to 0v.
Hood
Title: Re: Mach3 setup problems
Post by: drf24 on January 02, 2013, 03:27:49 PM
http://www.automationtechnologiesinc.com/products-page/kl-stepper-drivers/kl-6050-bipolar-stepper-motor-driver (http://www.automationtechnologiesinc.com/products-page/kl-stepper-drivers/kl-6050-bipolar-stepper-motor-driver)

I attached the PDF from the website to hopefully save you some time.
Title: Re: Mach3 setup problems
Post by: Hood on January 02, 2013, 03:53:47 PM
Ok here is the pdf from Keling, http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDQQFjAA&url=http%3A%2F%2Fwww.kelinginc.net%2Fkl-6050.pdf&ei=BZ7kUOrNOsep0AXo0oGYDg&usg=AFQjCNErB-7C9zBiViQ80ITMlarOM4_Cbw&sig2=3IfmDglnnQ1n9xHe7WLBiQ

Also look at this as its your breakout, see which way the jumper (COM) is set, it is to put either 5v or 0v as common for the step/dir signals. If yours is at 5v (pin 2-3) then its ok, if not then its wired wrong.

http://cnc4pc.com/Tech_Docs/C10R10_WG.pdf

I am assuming it is the same breakout anyway as it says its a C10 which is a CNC4PC BOB.
Hood
Title: Re: Mach3 setup problems
Post by: drf24 on January 02, 2013, 05:22:24 PM
 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
GO FIGURE! I even tried the pin with jumper with 5 volts on it.
Changed the shorting pin and, I have motor movement!!!!
Thanks for the help Hood, I had read the PDF before and didnt catch that the Stepper driver needed the 5VDC on the common pin. I guess because I had tried it before and it didnt work.
The anticipation of finishing is back!
Title: Re: Mach3 setup problems
Post by: Hood on January 02, 2013, 05:30:16 PM
:) It all depends on the BOB, if you had the pins on the BOB set to 0v common and had the Step/Dir minus connected to them and the Step/Dir + connected to Step/Dir outputs it too would have worked :)
Hood
Title: Re: Mach3 setup problems
Post by: drf24 on January 02, 2013, 06:03:38 PM
I'm guessing that I had something in the software or wiring wrong when I tried to switch the jumper before.
Monday night I rewired the BOB to make more sense to me, making it easier to monitor the parallel ports outputs.  X axis using pins 2&3, Y axis using pins 4&5, and Z axis using pins 6&7 I also started from scratch on the Mach software.
Thanks again for your help.