Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: homersimpson on March 31, 2012, 04:41:22 PM

Title: 2nd parallel port
Post by: homersimpson on March 31, 2012, 04:41:22 PM
I have a dell optiplex with XP and have been using it for a couple of years to control a G540.  I bought 2 different PCI parallel ports with Moschip hardware on them and the C26 buffer board from CNC4PC.  I have searched and read extensively on this forum for a solution to my problem with no success.  I can not get Mach to seem to recognize it.  The board shows up in the hardware list on the PC fine.  I have tried various moschip drivers (although their website no longer seems to support driver download).  I have  swapped the cables between the two G540s and the problem follows the port.  I can't get the charge pump to engage (green LED on G540).  I have tried the board in another PC with windows7 with the same result.

Is there a way to see what Mach sees from this port? 

Any suggestions for how to get it working?

Thanks!
Title: Re: 2nd parallel port
Post by: Hood on March 31, 2012, 06:00:45 PM
Have you entered the correct address in Mach for your port?
Hood
Title: Re: 2nd parallel port
Post by: homersimpson on March 31, 2012, 07:22:48 PM
Have you entered the correct address in Mach for your port?
Hood

As far as I know.  When I install the card and drivers, I get 2 new serial ports and a parallel port in my device manager.  The pport has the following under the resources tab:

I/O Range   DF30 - DF37
I/O Range   DF38 - DF3F
Memory Range  FEAFD000 - FEAFDFFF
Memory Range  FEAFE000 - FEAFEFFF

I put DF30 in the Port Address field for Port#2.
Title: Re: 2nd parallel port
Post by: homersimpson on March 31, 2012, 09:43:56 PM
This is from Gecko's site:

"PROBLEM: G540 UNRESPONSIVE (RED LED LIT CONSTANTLY)

SOLUTION: This is the most common fault and can be caused by several problems. First, double check that a jumper wire or normally closed switch is present between PIN 10 and PIN 12 on the 12 POSITION TERMINAL BLOCK. Next, turn the CHARGE PUMP SWITCH to the OFF position; if the green LED comes on then there is a problem with your CNC program not putting out a charge pump signal on PIN 16. If those do not work, check the motor for holding torque; if you do not have holding torque move on to the next section."


My LED is constantly red as well.  When I manually flip the charge pump switch it turns green and I do get holding torque on my motor.  So either my port is not putting out the 10khz signal or mach is not reading it.  I've swapped cables so know it isn't a bad cable.  I've swapped G540s so know it isn't that.  I've tried it on 2 different PCs, one with XP and one with Win7, and 2 different PCI parallel ports.  I can't definitely say any of this hardware isn't bad, without measuring the individual pinouts directly with an oscilloscope I guess.  But it seems unlikely that none of these hardware combinations would work--that they'd all be bad, so it seems more likely I have some wrong setting in Mach3.
Title: Re: 2nd parallel port
Post by: Hood on April 01, 2012, 06:16:15 AM
If you attach your xml I will look through it to see if I can see any issues.
Hood
Title: Re: 2nd parallel port
Post by: homersimpson on April 01, 2012, 03:00:34 PM
xml file attached.  thanks for looking at it.
Title: Re: 2nd parallel port
Post by: Hood on April 01, 2012, 04:03:12 PM
Have sent you a private message.
Hood
Title: Re: 2nd parallel port
Post by: homersimpson on April 01, 2012, 05:17:08 PM
one more try
Title: Re: 2nd parallel port
Post by: Hood on April 02, 2012, 03:26:53 AM
I tried to reply last night but the site was down as it has been a lot recently ;(
Anyway, what I wanted to ask is when you disable ( via jumper/dipswitch) the need for the Gecko to use the chargepump does your B axis work?
If it does then it is likely that your port is not in the correct mode for the Gecko and the chargepump. I seem to recall it needs to be in EPP. Some ports you can change in the device manager, some you can change with jumpers and some you cant change.
Hood
Title: Re: 2nd parallel port
Post by: homersimpson on April 02, 2012, 12:09:24 PM
When I disable the charge pump switch on the G540, the LED turns green and a holding torque is applied to the motor I have connected to it.  I haven't figured out though how to manually control it to see if it is receiving a signal.

I have read alot on this site and cnczone about the EPP mode.  The only jumper on the board I bought from cnc4pc is for setting the first several pins as inputs or outputs.  I haven't found a way to determine, let alone set, what mode the board is operating in.  There are no options for this in the device manager and it doesn't show up in my BIOS being a PCI add-on.
Thanks.
Title: Re: 2nd parallel port
Post by: tripleblack on April 02, 2012, 12:15:23 PM
what is the chipset of the netmos pp card? i have found that some dont work, or the driver needs to be different.
Title: Re: 2nd parallel port
Post by: homersimpson on April 02, 2012, 12:55:41 PM
The one from CNC4PC is a moshchip 9865 and another one I bought is 9805.
Title: Re: 2nd parallel port
Post by: Hood on April 02, 2012, 02:35:05 PM
If you look in device manager at the ports properties it may say what mode it is in.

Easiest way to command the B axis would just go to MDI and G0B50 or whatever.
Hood
Title: Re: 2nd parallel port
Post by: homersimpson on April 02, 2012, 09:24:49 PM
I manually actuated the b axis with the charge pump off but got no reaction.

The device manager calls out the motherboard port as Ecp printer port and the new one as pci ecp parallel port.  There are no other references to the mode setting. 

I measured the pin signal on the good port at 6.8khz and 1.6v when it was switch on in mach.  It was 0khz and 3.3v when switched off.  On the bad port i get 0hz always.  Im using cnc4pc's buffer board with a usb power source.  I measure 1.3v without this power source and 2.5v with it.  I used an external 5v supply and measured 3.2v at pin 16. 

Any ideas if this is a mach setting or hardware problem?
Title: Re: 2nd parallel port
Post by: Hood on April 03, 2012, 02:45:49 AM
Have you swapped port cables around and also port addresses to see if the onboard port works the chargepump and B axis and whether the PCI one works the other axis and other chargepump?
Hood
Title: Re: 2nd parallel port
Post by: homersimpson on April 03, 2012, 10:28:34 AM
yes.  I have swapped it around such that the onboard port makes the chargepump and B axis work on the second G540.
Title: Re: 2nd parallel port
Post by: Hood on April 03, 2012, 11:00:03 AM
Well that would tell me there is nothing wrong with your Mach config but rather Windows is the issue. Just in case device manager is reporting the address wrong have a look from
Start
All Programmes
Accessories
System Tools
System Information
Components
Ports
Parallel



You should see the address there.
Hood



Title: Re: 2nd parallel port
Post by: homersimpson on April 03, 2012, 11:27:08 AM
I will check that--thanks. 

Perhaps I should provide some detail on how I did the swap before we conclude that the problem is not with Mach setting.  I first swapped the cables, leaving everything else the same.  This showed that the bad port's cable works with the good port.  I also swapped G540s over between the ports, leaving all else in the original config, including the cables.  This showed that the good port is able to make the 2nd G540 work.

These two swaps narrowed down the problem to either the pci port, which could mean a physical problem with the card, the port, or a software problem in windows or in mach.

I'm trying to remember what happened when I swapped port addresses in mach (I've tried so many things over the past few days!) but I think when I did that, I couldn't get the 2nd port in mach (set to the onboard port's address) to work, but I'll need to confirm that.  Thanks!
Title: Re: 2nd parallel port
Post by: homersimpson on April 03, 2012, 11:31:49 PM
I opened the system info program per your suggestion, to get the pci port address but I get the following error: Can't access the Windows Management Instrumentation software.  Windows management instrumentation files may be moved or missing.

I then swapped the port addresses in Mach and was able to make everything work with the original good set of hardware (onboard parallel port,G540,XYZA axis steppers) with the address in the 2nd port.  I then tested the inputs on the G540 by grounding them 1 at a time and looking at the LED indicators on the diagnostics tab of Mach.  I could make BOTH G540s show a signal in this manner.  I reversed the port addresses back to the original locations and repeated the input signal test with the same results.  So I knew I was getting communication through the PCI parallel port.  Still no charge pump signal on pin 16 though.  Finally I got the B axis working on the 2nd parallel port by disabling the charge pump manually.  I then could actuate it in mach manually.  I swear I tried this before but it it didn't work.  I added my C26 buffer board inline with this port and had to put the jumper on the pins to indicate that pins 2-9 are inputs (wouldn't work when they were set as outputs).  So, I still don't have a charge pump signal but I can make everything work by manually disabling this.  Any thoughts on why everything else would work and not this?
Title: Re: 2nd parallel port
Post by: Hood on April 04, 2012, 05:44:56 PM
I suspect it is a problem between the PCI port and the G540, there have been many reports of issues with Chargepump and PCI cards. There are a few people that sell cards that will work, PMDX are one I think, I am sure they modified the card to make it work.
Hood