Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Cristobal on January 29, 2007, 10:29:14 AM

Title: Testing parallel port output with a multimeter
Post by: Cristobal on January 29, 2007, 10:29:14 AM
Hello,

I'm new to CNC and desparately trying to set up my motors etc. I downloaded Mach3 and have been playing around with it. I have a db25 cable hooked up to my parallel port with a breakout on the end. I have no motors hooked up yet. In manual mode in Mach 3 I can "move" the x,y,and z with the arrow keys for example. Shouldn't I see fluctuations in the voltage on the various pins on my breakout? If not why not? If I should be seeing this but am not, what am I doing wrong? Thanks.

Cristobal
Title: Re: Testing parallel port output with a multimeter
Post by: Chaoticone on January 29, 2007, 10:41:27 AM
Hey Cristobal,
     Are you using a straight thru DB 25 cable? Not a printer cable. Tell us more about your breakout board, set up and post your xml. Post any links or documents that may help.

Brett
Title: Re: Testing parallel port output with a multimeter
Post by: Cristobal on January 29, 2007, 10:51:18 AM
Yes it is a straight thru DB 25 cable.  The breakout board couldn't be much simpler- it just has a 18 (+ gnd) places corresponding to the pins where you can shove in a wire and hold it in place by tightening a screw.  I thought I could put my ground multimeter probe on one of the ground pins, my red multimeter probe on say pin3 and then watch the voltage change as I fiddle with the x axis.

You ask me to post my xml.  I don't know what that means.  Sorry.
Title: Re: Testing parallel port output with a multimeter
Post by: Chaoticone on January 29, 2007, 11:10:04 AM
Hey Cristobal,
    Your xml is in your mach folder. They will be Mach3mill xml, Mach3 turn, etc. Are you setting up a mill? They will be in your Mach folder. Here is how I get to mine. Start, rightclick on my computer, C, Mach3. To attach them go to the full reply page and you will see a button for advanced options, use that to attach the files by browsing to your Mach folders and selecting the Mach3Mill.xml if that is the one you are using.

Brett
Title: Re: Testing parallel port output with a multimeter
Post by: Chaoticone on January 29, 2007, 11:23:12 AM
Cristobal, I have sent you a personal message.


Brett
Title: Re: Testing parallel port output with a multimeter
Post by: Cristobal on January 29, 2007, 11:39:09 AM
Am I setting up a mill?  Well I'm many steps away from that.  I'm just trying to set up my stepper driver.  I'm just trying to get to the point where I can turn my motors by clicking on the arrows in Mach3.  That's it.  I'm just making sure the signals are passing from Mach3 to my parallel cable.  Can I test this with a multimeter?
Title: Re: Testing parallel port output with a multimeter
Post by: Chaoticone on January 29, 2007, 11:49:47 AM
Yes, you should be able to test that with a meter.


Brett
Title: Re: Testing parallel port output with a multimeter
Post by: Cristobal on January 29, 2007, 11:51:39 AM
Here's my xml
Title: Re: Testing parallel port output with a multimeter
Post by: HillBilly on January 29, 2007, 12:02:34 PM
You will be able to see your direction pin changing easier than the step pin. The step will be a fast pulse.

Darek
Title: Re: Testing parallel port output with a multimeter
Post by: Cristobal on January 29, 2007, 12:14:14 PM
Yeah still getting nothing.  Just a constant 5V. 
Title: Re: Testing parallel port output with a multimeter
Post by: Chaoticone on January 29, 2007, 12:18:40 PM
Cristobal,
    That is all you will see with a meter. You would need a scope to see the varying signals I would think.

Brett
Title: Re: Testing parallel port output with a multimeter
Post by: Cristobal on January 29, 2007, 12:22:57 PM
I was working with another program before and the voltage would change between 0v and 5v as I changed directions.  I assumed that would be the same here.  Maybe not.  If not I'll stop worrying about it.
Title: Re: Testing parallel port output with a multimeter
Post by: Chaoticone on January 29, 2007, 12:29:22 PM
It all depends on how you have things set up. But yes, you should see the change with the meter from 0-5v I would think. There was no attachment with the post you tried to put your xml in. :( I have attached mine for you to look at.


Brett
Title: Re: Testing parallel port output with a multimeter
Post by: Cristobal on January 29, 2007, 12:38:19 PM
Trying to post the xml again
Title: Re: Testing parallel port output with a multimeter
Post by: patmul on January 29, 2007, 12:58:53 PM
You should see changes on the direction pins. I just checked my breakout board, and the direction pins change state when direction is reversed...and they stay at that level until another direction change.

You won't see the step signals with a multimeter, though. They are much too narrow. You'd need an oscilloscope for that.

FWIW, I'd guess your Parallel Port I/O address is not set correctly if everything else is working.  It might be wise to review the installation section of the manual and the installation video and play around with your Parallel Port description in the config tab.

Hang in there...it took me quite a while to get my Mach I/O running correctly...and I'm a long-time Computer Design EE in my day job! There are a large number of factors involved...and sometimes a bit of guesswork. I found the manual and email from Art Fenerty extremely helpful.

Getting two very simple pieces of equipment to talk to each other can often be very trying.  There's an old EE saying about Serial COM port hookups, "It always seems to take three hours to hook up three wires!"


Good Luck!
Title: Re: Testing parallel port output with a multimeter
Post by: Cristobal on January 29, 2007, 01:12:12 PM
Ok here's a question-  I go to my device manager and click on the port I want to use.  Under the "port settings" tab it gives three choices- 1) try not to use an interrupt
2) Never use an interrupt and 3) Use any interrupt assigned to the port.  Which one do I want?  Any ideas?  BTW Thanks for all your help (or at least encouragement) so far.  It is appreciated.

Title: Re: Testing parallel port output with a multimeter
Post by: Chaoticone on January 29, 2007, 01:13:00 PM
Thanks Patmul. You said that much better.

Cristobal,
     I see you have two parallel ports. Are you sure you have the right address and pluged into the right one? Try changing the active low on your e-stop in config, ports and pins, input signals.


Brett
Title: Re: Testing parallel port output with a multimeter
Post by: patmul on January 29, 2007, 01:17:04 PM
I used the "use any interrupt assigned" selection successfully.

I'm not positive it matters for MACH as it's not mentioned in the docs. But, multi-threaded systems (like WinXP) need interrupts to function efficiently.
Title: Re: Testing parallel port output with a multimeter
Post by: Chaoticone on January 29, 2007, 01:20:30 PM
Mine are set to never use an interrupt.


Brett
Title: Re: Testing parallel port output with a multimeter
Post by: Cristobal on January 29, 2007, 01:25:16 PM
I changed the active low on my estop but now it gives me "external estop requested" and I can't do anything.
Title: Re: Testing parallel port output with a multimeter
Post by: Chaoticone on January 29, 2007, 01:54:16 PM
OK, change it back. one thing eliminated.

Brett
Title: Re: Testing parallel port output with a multimeter
Post by: Chip on January 29, 2007, 02:02:39 PM
Hi, Cristobal

Try this XML it's yours, your Port1 is set Back to 378 std port for #1 and your Dir / Step ports are set to 1 now.

Give it a Try, Chip
Title: Re: Testing parallel port output with a multimeter
Post by: Cristobal on January 29, 2007, 04:43:22 PM
Bingo!  I'm psyched.  Thank you.  I needed to set the step/dir pins to port 1.  That's all.  It even works on my other port at CEE8 which is great.  Thanks for all your help.  Don't worry though, you haven't seen the last of me and my stupid questions!
Title: Re: Testing parallel port output with a multimeter
Post by: Hood on January 29, 2007, 04:48:44 PM
Dont understand that as the xml you posted had the step/dir port set as 1 already. Oh well who cares as long as you are running, now you can start the real fun :-)
Hood