Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: noyloj on November 29, 2009, 11:25:11 AM

Title: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 11:25:11 AM
I am new to the world of CNC and have limited tech know how. I have a modern PC without parallel port and have installed a single port parallel PCI card because that seems to be what is required for most controllers. How do I get Mach 3 to function with this hardware?
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 12:00:10 PM
Look in device manager and find the PCI port then look at its resouces tab. The first 4 digits is the address and you need to enter that into Port 1 in Mach.

Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 02:24:42 PM
Thanks Hood
Okay in resources I have:-
I/O range DC00 - DC07
I/O range D880 - D887
Memory Range F9FFF000 - F9FFFFFF
Memory Range F9FFE000 - F9FFEFFF
Which first four digits do I need to put into Mach? :)
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 02:25:55 PM
DC00 is what you want.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 02:31:01 PM
Okay thanks so much!
Then I go config, ports and pins, Port#1 Port Address Box
and enter DC00?
Yes?
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 02:34:37 PM
Yes, thats correct..
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 02:41:48 PM
Ta
Okay that done how can I see if Mach is talking to my controller? ie whats the easy safe way to test? :)
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 02:46:54 PM
set up an input, example in ports and pins set X limit  up to Port 1 pin 12 then once saved short a piece of wire from Pin 12 on the PP to a ground pin on the PP. You should see the LED for X limit change state on the diagnostics page.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 02:59:15 PM
Hmmm.. which is a ground pin?
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 03:01:12 PM
18 to 25

Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 03:03:19 PM
Okay I'm looking at the inputs section on ports and pins but I dont see X limit only x ++, x --, x home?
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 03:04:48 PM
Any will do.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 03:08:29 PM
I have checked box for enable x home, port 1, pin 12, do i have to check active low or emulated?
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 03:16:25 PM
You can check active low if you wish, that will mean the LED on the diagnostics will light when you short, if you leave it active high then it will go out when you short. Make sure you have it enabled but there is no need for the emulation.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 03:20:51 PM
okay when i dont check active low i cannot reset until i togle to active low (the program offers to do this for me). However I dont seem to get any response shorting out pin 12 to pin 25?
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 03:24:01 PM
You dont need to worry about the reset, the LED should react even when Mach is in reset.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 03:32:46 PM
okay no joy with pin 12, however i have enabled the inputs to port 1 and can seem to switch leds on and off...
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 03:34:24 PM
even though i haven't assigned any pin numbers?!
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 03:38:03 PM
Dont see how that could be possible, can you attach  a screenshot of what you have set and tell me which pins you are shorting to switch the LED.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 03:41:56 PM
Duh sorry this is all very new to me.. How do I take snapshot of screen and attach?
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 03:45:02 PM
Best way is to download the free version of ScreenHunter, if you do a google you should find it. You can then use the additional options to attach the picture to the post.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 03:55:19 PM
Have captured image but cant figure out how to attach it. It offers me the option of attaching to email however.
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 04:01:18 PM
Use the full reply page, you will see the additional options button. Click that and then use the Choose button to browse your drive to where you have the image stored and then choose it.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 04:04:30 PM
Has This worked? I can try and take better shots if you need more info.
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 29, 2009, 04:20:28 PM
Thanks a lot for all your help this evening! I know it must take a lot of patience dealing with us noobs. :)
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 29, 2009, 04:36:26 PM
Ok it is not these LEDs that I was meaning  but if they change state then that means Mach is seeing the port so all is good :)
 What I was meaning was when you set the X Home up you should have seen the M1 Home LED change state.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on November 30, 2009, 03:01:04 PM
Hood
Yes I got that M1 led to light up now too.
Ok now is there a standard way to assign the pins in Mach three for a controller?
Thanks jolyon
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on November 30, 2009, 03:44:48 PM
1 to 9, 14, 16 and 17 are outputs
10 to 13 and 15 are inputs
You can use whatever you wish within these constraints UNLESS your breakout board has some predefined pins that must be used for a certain function, most don't have that however.

Hood

Edit

Just as an added bit of info, the above only relates to Port 1, if you have a second port you can opt to have pins 2-9 as inputs in addition to the normal inputs.
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 03:26:41 PM
Okay rewind...
I had hoped that the leds I got to work directly corresponded to the parallel port pins that I was shorting.
No such luck.
I think that the address in Device manager under PCI ECP parallel port (LPT 3) is for the PCI card maybe?
If this is the case then how can I find the proper parallel port address?
On the plus side I think I found which pins will ultimately correspond to the controller functions such as x dir x step etc.
Thanks Jolyon
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 04:00:33 PM
If you are using the PCI port then that is the address you want, don't get confused because it says LPT3, Mach doesn't care what windows calls it, all Mach wants to know is the address of the port you have the hardware connected to.

Ok so what is happening now that you seem to think it is not working correctly? See if you can change the port to EPP rather than ECP as I think I had issue with ECP a long time ago when I used the parallel port.

Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 04:05:00 PM
Heya Hood

Ok I tried running a g code program (roadrunner) and watched from the diagnostic screen as it scrolled thru.
Nothing on leds?
Should I not see something coming on and off?
Also tried plugging parallel connection into micro mill controller and nothing.
Ok I don't actually know machine works but..

Whats EPP ECP how do I switch too?

Thanks Jolyon
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 04:11:27 PM
Ok you wont see the state change unless you physically change it (by shorting etc).

EPP and ECP are Enhanced Parallel Port and Enhanced Capability Port, sometimes you can change in the device manager, other times you have to set jumpers on the card itself and  other times you can't change it at all.

Sounds like however you may not be having problems with the port at all, if you have a volt meter you can easily check to see if you are getting outputs. If you set the X axis to Step pin 2 and Dir port 3 you can then put a voltmeter between Pin 3 and a Gnd pin and jog one way then the next, you should see the voltage swing between 5V and 0V depending on the direction you jog.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 04:17:29 PM
hood dumb question no 65
How do i jog?
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 04:20:02 PM
ok got it arrow keys..
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 04:20:31 PM
but no output on voltmeter..
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 04:34:11 PM
also box says PCI card I have 'supports SPP, EPP, ECP'
although instuctions give no clue as to how to switch!
Thanks Jolyon
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 04:39:55 PM
Have you definitely got the X axis enabled and set to pin2 and 3 and also the one that I always miss, set the port to 1 for both Step and Dir?
Next make sure you are counting the port pins correctly, the Mach manual shows a diagram of the port on the back of a computer.

Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 04:45:12 PM
yes x enabled yes x pin 2 and 3 yes ports for step and dir configured as port 1
Don't have mach manual but i'm looking at female connector (ie one without pins)
orientated 30 that 13 pins are on top row and twelve beneath
pin 3 is 3rd from right on top row
pin 25 is bottom left bottom row
is that correct?
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 04:49:44 PM
Hood mis type sorry! should read:- orientated so that 13 pins on top row and twelve beneath
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 04:50:45 PM
Yes that's all correct, not sure what to suggest next other than if its a dual port have a look in device manager and see if there is another address, if there is set it as Port 1 in Mach and see.
 But if the pins are changing state when you short the inputs then it does seem to be working, can you confirm that that is the case?
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 04:55:40 PM
You could also verify the address by going to Start, All Programmes, Accessories, System Tools, System Information. Once there go to Components then down to Ports and finally Parallel.

Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 04:58:42 PM
they are lighting up the amber leds for M1 M2 and M3
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 05:02:02 PM
If they are lighting when you short then the Inputs are working and you definitely have the correct address set.
If you want to attach your xml I will have a glance through it to see if I can find a problem ther.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 05:04:07 PM
looked where you said in components ports parallel and nothing there!
By the way what is an xml? sorry!
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 05:08:02 PM
the xml is your profiles settings. If you are using the standard Mach3Mill profile that is the xml you want, ie Mach3Mill.xml. You will find it in the main Mach 3 folder on your drive. If you made a custom profile then the xml will have the name of that custom profile.
You will need to copy and rename the xml for the forum to accept it, renaming to noyloj.xml should do the trick :)

Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 05:18:07 PM
Cant find MACH3Mill.xml

Can find MACHXML but it looks like a RAR file maybe

can also find xml backups.. Any good?
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 05:23:48 PM
No, backups are a pain to look at, you may not be seeing the file extensions as windows hides them by default for known extensions. To disable that you can go to Tools menu when in a folder in windows, then down to folder options . When that window pops up go to view and then down and take the check mark out of Hide known file extensions. Save and then refresh the Mach3 folder and you should now see the file extensions.

Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 05:30:12 PM
Man I am so dumb how do I get Tools menu when in folder? (I'm running vista)
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 05:35:10 PM
Ah ok, well dont have a clue I am afraid, dont like Vista so have never messed with it.

You should still see the xml but it will just be called Mach3Mill with no file extension.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 05:36:17 PM
Have you installed the patch for Vista?

Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 05:37:05 PM
yeah many many! Praise Microsoft!
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 05:37:37 PM
Found xml thingy!
Will try to attach
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 05:50:56 PM
not sure this is my custom profile..
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 05:55:52 PM
Ok will have a look in a few mins but just in case you misunderstood regards the patch, it is on the Mach downloads page and is needed I think  for using Mach under Vista.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 05:58:03 PM
If that was the xml you had loaded when testing the Dir pin for voltage it is Pin 6 you need to test.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 06:00:21 PM
Also, have you got an E-Stop switch fitted? if not then you will either need to short pin 13 to Gnd or change the active state of the E-Stop in ports and Pins, Inputs. If you dont do that then you will not be able to get Mach out of Reset and thus wont be able to jog.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 06:08:59 PM
No i've looked that must be the one for the non custom profile (which has pin 6 enabled). I'll try and find the correct one and attach tomorrow. I've gotta get some sleep now.. brain hurts.
No. Thats not it I auto toggled all pins preventing reset.
Thanks again Jolyon
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 01, 2009, 06:11:55 PM
also Mach definately jogging, numbers go up and down! Goodnight and cheers:)
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 01, 2009, 06:53:13 PM
Have you run the driver test?
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 02, 2009, 01:56:11 PM
Heya Hood

Driver test?
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 02, 2009, 02:36:21 PM
Okay found Driver test thingy green bar went mid way to target 'system excellent'
That sounds okay?
Title: Re: 1-Port Parallel PCI Card
Post by: Hood on December 02, 2009, 03:23:21 PM
Dont know what can be wrong then.
Hood
Title: Re: 1-Port Parallel PCI Card
Post by: noyloj on December 02, 2009, 03:56:51 PM
No worries I think I have a few ideas..

Thanks for all your help.
All this is part of the learnig curve at the moment very steep!
But I already Know 100% more about Mach and this forum and attachments than I did at the start of our discourse...
Of course this amounts to probably less than 1% of what I need to know but hey its's a start and I'm a fast learner.

Take it easy Jolyon