Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: johnv on January 13, 2009, 12:58:51 PM

Title: Need HELP with Mach3 Setup
Post by: johnv on January 13, 2009, 12:58:51 PM
I built a cnc router. The Control console uses (3) KL-4030 Drivers to drive (3) KL23H286-20-8B motors, a CNC4PC C10 Parallel Port Interface card and using Mach3 software. I built a 555 square wave generator  to test out the wiring.  I insert the square wave (800Hz @ 5v p-p) onto pin 2; 4; and 6 and all motors run fine in both directions. My problem is getting Mach3 to do the same. I watched the configuration video, followed all instructions, and all seems to be in order. When I go to Motor Tuning, I choose axis, insert proper step value ( even improper step value) play with Accel & Velocity, save axis settings then press up or down keyboard key. Sometimes I get motion sometimes I don't. I can't get continuous running. Same on all axis'.  Tried using Mach3 from 2 different computers to no avail. Scope shows input to x-step (pin 2) about 6us pulse 5vp-p (555 is much longer pulse). I know it must be a setup fluke but I can't find it. I took some pics of my setup. I'll try to post them if I can. If not, you can PM me, I'll be happy to forward you a copy. It could help to clarify things. Any and all help would be appreciated. Thanks gentlemen.
Title: Re: Need HELP with Mach3 Setup
Post by: zarzul on January 13, 2009, 01:06:45 PM
What are you using for step value?
Title: Re: Need HELP with Mach3 Setup
Post by: Hood on January 13, 2009, 01:32:09 PM
Have you run the Drive Test to see if your pulse is clean? Have you tried with a pulse width of 5?
Hood
Title: Re: Need HELP with Mach3 Setup
Post by: johnv on January 13, 2009, 02:14:56 PM
What are you using for step value?
I'm using 1/2 microsteps and 2.7A
Title: Re: Need HELP with Mach3 Setup
Post by: johnv on January 13, 2009, 02:16:30 PM
Have you run the Drive Test to see if your pulse is clean? Have you tried with a pulse width of 5?
Hood
Tried both. Pulse is clean and I'm presently set to 5uSecond increase.
Title: Re: Need HELP with Mach3 Setup
Post by: Hood on January 13, 2009, 02:30:59 PM
 Have you put the scope direct to the PP?
Hood
Title: Re: Need HELP with Mach3 Setup
Post by: johnv on January 13, 2009, 02:50:37 PM
Have you put the scope direct to the PP?
Hood
I don't know what you mean by the PP.
Title: Re: Need HELP with Mach3 Setup
Post by: Hood on January 13, 2009, 03:34:52 PM
PP is Parallel Port, ie seeing what the pulse out the port is before it gets to the breakout.
Hood
Title: Re: Need HELP with Mach3 Setup
Post by: johnv on January 13, 2009, 04:29:40 PM
PP is Parallel Port, ie seeing what the pulse out the port is before it gets to the breakout.
Hood
Good thought!  Checked it out. Exact same pulse with no distortion. Thanks for hanging in there with me.
Title: Re: Need HELP with Mach3 Setup
Post by: Hood on January 13, 2009, 05:29:34 PM
Ok dont think your drives should need it but might we worth trying Sherline mode.
Hood
Title: Re: Need HELP with Mach3 Setup
Post by: johnv on January 13, 2009, 05:47:36 PM
Ok dont think your drives should need it but might we worth trying Sherline mode.
Hood
OK went to Ports & Pins window and checked Sherline. Reset and still no luck.
Title: Re: Need HELP with Mach3 Setup
Post by: Hood on January 13, 2009, 06:08:48 PM
Maybe change the Step and Dir active state, have all the same (whether High or Low) and see if that helps, some drives are finicky about that.
Hood
Title: Re: Need HELP with Mach3 Setup
Post by: johnv on January 13, 2009, 07:12:12 PM
Maybe change the Step and Dir active state, have all the same (whether High or Low) and see if that helps, some drives are finicky about that.
Hood
Tried it both ways, still no rotation.
Title: Re: Need HELP with Mach3 Setup
Post by: Hood on January 14, 2009, 02:14:22 AM
I dont think it can be your settings as you seem to be saying you can scope a nice pulse but will have a look anyway if you attach your xml. You will have to rename it before the forum will accept, suggest you rename it to johnv.xml

Hood
Title: Re: Need HELP with Mach3 Setup
Post by: johnv on January 14, 2009, 10:01:24 AM
I dont think it can be your settings as you seem to be saying you can scope a nice pulse but will have a look anyway if you attach your xml. You will have to rename it before the forum will accept, suggest you rename it to johnv.xml

Hood
If you mean my website, I don't have one. I will however send the pics of my setup by email or I will figure a way to get them on flickr and give you the address.
Title: Re: Need HELP with Mach3 Setup
Post by: Hood on January 14, 2009, 11:02:06 AM
I am meaning the xml for Mach, it is a file that stores all of the Mach settings. It will be in the Mach 3 folder on your drive. If you use the standard mill profile it will be called Mach3Mill.xml, if you have a custom profile it will be named after your profile.
Hood
Title: Re: Need HELP with Mach3 Setup
Post by: johnv on January 14, 2009, 11:35:40 AM
I am meaning the xml for Mach, it is a file that stores all of the Mach settings. It will be in the Mach 3 folder on your drive. If you use the standard mill profile it will be called Mach3Mill.xml, if you have a custom profile it will be named after your profile.
Hood
[/quote}]OK  Found it and renamed it. How do I insert it in the post?
Title: Re: Need HELP with Mach3 Setup
Post by: zarzul on January 14, 2009, 11:38:33 AM
John,

You mentioned earlier that sometimes you were getting motion and sometimes you were not.    Almost sounds like an intermittent connection somewhere,  maybe something to do with the enable line?

Another place to check (I got bit by this once) signal commons.  

I converted an old machine once for the local high school that bought this machine 10 years earlier, used it for 1 week, and it died and the mfg was no longer in business.   I didn't use a breakout board just wired the parallel port directly to drivers and switches using pullups and current limiters, but forgot to bring the parallel port ground over to the 5v signal common.   It would run fine sometimes depending on what outlets it was plugged into,  then other times only half the machine would work.

Arnie
Title: Re: Need HELP with Mach3 Setup
Post by: johnv on January 14, 2009, 01:39:14 PM
zarzul, thank you for your worthwhile suggestions, and Hood, thank you for your patience in sticking in there with me. This morning I went into the startup folder of xp and moved out all unnecessary start-up programs. Tried running Mach3 and the same results. Just a click (single step) here and there. Went back and clicked on the Sherline extended pulse and all three motors are running fine. My only problem now is I don't know what corrected the issue.  Thanks again. I hope I can count on you in the future.
John
Title: Re: Need HELP with Mach3 Setup
Post by: Hood on January 14, 2009, 03:58:10 PM
Good you are going now, its annoying when you dont actually know what cured it but at least its sorted and thats the main thing :)
Hood
Title: Re: Need HELP with Mach3 Setup
Post by: johnv on January 14, 2009, 04:23:17 PM
Good you are going now, its annoying when you dont actually know what cured it but at least its sorted and thats the main thing :)
Hood
I agree! Thanks again Hood