Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Pysiek on March 25, 2013, 11:14:17 AM

Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 25, 2013, 11:14:17 AM
I have same problem. But my board is C10 - Bidirectional Breakout Board and the drivers are KL-4030. I turn on everything motors locks but can't get any movement.
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Tweakie.CNC on March 25, 2013, 11:45:45 AM
Hi Kris,

Welcome to the forum.

Check if you have 5V & EN (on the C10) and CW & CP+ (on the KL-4030) all connected to +5 Volts.

Also that you have a common GND connection between GND (on the C10) and GND (on the KL-4030).

Tweakie.
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 26, 2013, 09:18:02 AM
C10 board
5V and EN connected to 5V. Also the LED light is on.
KL-4030 driver
CW & CP+ what is that? I can't find it on my drivers
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Tweakie.CNC on March 26, 2013, 10:57:04 AM
This diagram is probably the best explanation http://www.automationtechnologiesinc.com/wp-content/uploads/downloads/2012/08/KL-4030WithC10.pdf

Tweakie.
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 26, 2013, 11:02:17 AM
I used that diagram and that's how I connect everything
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Chaoticone on March 26, 2013, 11:03:50 AM
Have you tried enableing sherline half step mode in the config, ports and pins, port set up page?

Brett
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 26, 2013, 11:11:58 AM
No. I will try it and let you know
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 26, 2013, 09:57:48 PM
I tried it and it still don't work. I have connected Emergency Button and its not working either. Is it possible that I have connected the master switch incorrectly and it won't work? The led is illuminated red when I turn on the power. But when I push in the master switch nothing happens
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Chaoticone on March 27, 2013, 01:22:34 AM
Yup, I would say its possible.   I would try one thing at the time.  Get the board powered up and move on form there.  Just take little bites.  Next, get the estop working, then add some inputs if you are useing any, then your outputs to the drives, then your other outputs.  Is the cable your useing from you parallel port a straight thru? 

Brett
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 27, 2013, 06:09:32 AM
Is the cable your useing from you parallel port a straight thru?   
Yes. I purchase the cable from automationtechnologiesinc .
How to check if I powered everything up if the "master switch" is working correctly?
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Chaoticone on March 27, 2013, 09:46:00 AM
Put one lead of your meter on the GND terminal of the power connector and the other lead to the EN terminal of the power connector. With the switch on you should get 5 volts. With it off, you should get nothing.  Or, take the switch out of the circuit and test it for contunity.

http://www.youtube.com/watch?v=tDQ0X1LRhpg

Brett
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 27, 2013, 12:57:58 PM
Got 5V. What's next :-) ?
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 27, 2013, 06:59:14 PM
I'm sorry I got 4V
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 27, 2013, 07:57:49 PM
When I go to "Diagnostics" in Mach3 there I can see there 1 of the 24 pins illuminated green and when I press or pull the emergency button it goes on and off.
Also when I go to Input and Output signal everything is red crossed except the emergency button
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 27, 2013, 08:16:13 PM
Emergency button working!!! But it turn on when I pull the button instead when I press it.
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Chaoticone on March 27, 2013, 08:34:32 PM
Change the active state of your estop or get a normally closed switch if the one you have now is normally opened.

Brett
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Chaoticone on March 27, 2013, 11:03:36 PM
Once you have that sorted set up pins 2 and 3 for the x axis motor.  Put your meter leads between pins 3 and the one to the left of it 5V/G and see if you get a reading.  Try jogging the x axis in both directions with your meter in place.  You should see your reading change when you change directions.  Look at your x axis dros in machs run screen and see if it counts up and down as you jog in different directions (right and left arrow keys jog the x axis).

Brett
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 28, 2013, 07:25:51 AM
I do see the reading change. But later I will check the X axis as per your instructions.
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 11:16:20 AM
When I put the reading pins to pin 2 & 3 and I try to jog the voltage reading jumps from 5.18 to 5.17-5.16
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 11:20:45 AM
Here is a screen of my "diagnostics" tab in mach3. Maybe it will tell you something. I took it when everything was on.ready to go.
(http://i193.photobucket.com/albums/z142/krislizak/Public/DIY%20CNC%20Router/mach3screen_zps68e61c99.jpg)
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 11:25:12 AM
I'm by the machine right now so if somebody can help I will answer right away
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Chaoticone on March 29, 2013, 11:42:51 AM
When I put the reading pins to pin 2 & 3 and I try to jog the voltage reading jumps from 5.18 to 5.17-5.16
Once you have that sorted set up pins 2 and 3 for the x axis motor.  Put your meter leads between pins 3 and the one to the left of it 5V/G and see if you get a reading.  Try jogging the x axis in both directions with your meter in place.  You should see your reading change when you change directions.  Look at your x axis dros in machs run screen and see if it counts up and down as you jog in different directions (right and left arrow keys jog the x axis).

Brett

I have sent you a PM

Brett
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 11:55:25 AM
I'm I wrote it wrong. I did put the leads between pins 3 and the 5V. And that was the reading
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 01:01:15 PM
Nothing Brett...I gave up :-(
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Tweakie.CNC on March 29, 2013, 01:12:07 PM
Pysiek,

I take it that you do have a good and stable (regulated) 5 Volt supply connected to your C10 ??

Tweakie.
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 01:14:07 PM
Yes tweakie. I already check everything with meter
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 01:18:18 PM
How do I check if I did not connect the motor cables incorrectly?
On the wiring diagram it shows to use black,green,red and blue wires to connect the motors. But on my motors I have more that
http://www.automationtechnologiesinc.com/wp-content/uploads/downloads/2012/08/KL-4030WithC10.pdf (http://www.automationtechnologiesinc.com/wp-content/uploads/downloads/2012/08/KL-4030WithC10.pdf)
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Tweakie.CNC on March 29, 2013, 01:26:53 PM
How do I check if I did not connect the motor cables incorrectly?

If the C10 is enabled then the motors will 'lock' at system power-up.

(If you have not connected the motors correctly there is a danger of damaging the 4030)

Tweakie.
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 01:31:15 PM
I did check the wiring again right now and it looks like I did it correctly
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 01:31:53 PM
Used that wiring diagram to put the wires together: http://www.automationtechnologiesinc.com/docs/schematics/KL-4030Wiring.pdf (http://www.automationtechnologiesinc.com/docs/schematics/KL-4030Wiring.pdf)
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Tweakie.CNC on March 29, 2013, 02:00:50 PM
I am sure you did the wiring correctly - looks like a thorough job in your pictures.

Tweakie.
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 02:02:55 PM
It's not a first time I did that so I believe it is correct. Send an email to Keling and see what they say.
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Chaoticone on March 29, 2013, 02:09:21 PM
Tweakie, I'm guessing those en pins are enable do you know?

Brett
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 02:11:13 PM
Tweakie, I'm guessing those en pins are enable do you know?

Brett
In the manual it says that if those are left unconnected then the driver is enabled . http://www.kelinginc.net/KL-4030.pdf (http://www.kelinginc.net/KL-4030.pdf)
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 02:14:59 PM
One more thing. Is it possible that I have damaged the driver if I connect power and all the switches on the driver where in ON position(down)?
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Chaoticone on March 29, 2013, 02:26:39 PM
No idea what 4 and 8 do as the manual doesnt mentinon them.  :(

Wouldnt think the others would hurt........ 1,2,3 set microstepping option and 5,6,7 set the current.  The curent needs to be set right but if you have not had any motion yet, don't think they could have been damaged but not certain.

Brett
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 02:36:48 PM
Okay. I'm going to do some work or my wife gonna put me in the basement. We will see what Keling Inc replies to me
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Tweakie.CNC on March 29, 2013, 02:50:18 PM
I doubt it is relevant in this case but this is typical of problems that can be encountered with some of the Chinese manufacturers product. http://www.phlatforum.com/viewtopic.php?f=128&t=9421

Tweakie.
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 04:52:50 PM
Nope. Didn't work
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 05:26:08 PM
I got it!!!!!!!!!!!!!!!!!!!!!!  ;D
Followed these :
Quote
Rather, I'd suggest you check if it's communicating by bringing up mach and hitting the diagnostics screen. In there you can see all the port pins and if you short any of the 5 inputs to ground it should blink on and off as you do it. For example, take a pair of wires and connect to pin 13 and ground, touch them together and see if it lights up in mach. If it does, that's a clue that you are communicating with the port / cable / card.
From here: http://www.buildyourtools.com/forums/index.php?f=9&t=818&rb_v=viewtopic (http://www.buildyourtools.com/forums/index.php?f=9&t=818&rb_v=viewtopic)

And the problem was one of the jumpers on the breakout board. It have to be switched to be connected between 2-3 which mean COM=5V . Before it was connected between 1-2 which mean COM=GND
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 05:28:41 PM
The only weird thing it is right now that no matter if I press the master switch or leave it unpressed everything works fine. I thought if I release the master switch then nothing will work
Title: Re: Newbie with KL-4030 1st time testing problems
Post by: Chaoticone on March 29, 2013, 05:43:22 PM
 :)

Do you have to set up the master switch as an estop input?

Brett
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 05:50:32 PM
No. Estop is set up on different input.
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Overloaded on March 29, 2013, 06:06:31 PM
The C10 I am using came with a very small single strand wire installed as a jumper between the EN and GND terminals. If this connection is open, all outputs should be disabled.

Russ
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on March 29, 2013, 06:22:01 PM
That's where I connect the master switch as per wiring diagram. But when I disconnect it it still moving the motors
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Overloaded on March 29, 2013, 06:48:01 PM
Remove everything from those 2 terminals and try it.
There could be something goofy with your switch or wiring.
Russ
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Overloaded on March 29, 2013, 06:49:34 PM
...really, just remove everything from the EN terminal.
There might be something else connected to and relying on the GND terminal.
Title: Re: Re: Newbie with KL-4030 1st time testing problems
Post by: Pysiek on April 01, 2013, 07:16:55 AM
I will try that later after work.