Originally Posted by
dhookings
Hi all,
First post in CNCzone. I have aquired an old, but quality looking machine. It originally had an rs232 interface but the original software is missing and I believe it did not use g codes anyway. I am retaining a lot of the electronics, incuding the octal relays, xyz stepper drivers and power supplies. I have purchased Mach3 to drive from my pc lpt port. I am building an interface board from the lpt port to the L297 stepper driver/translators. My interface will include an AVR to detect the charge pump signals and to drive the L207s etc.
To the point, at last.
I would like to use optocouplers to isolate the lpt port from the machine electronics, but am worried about the source capabilities of the lpt port. The led in the optocoupler will take about 15ma and I read that 1284 level 2 ports will source 14ma. I should be able to compromise there, but the original lpt ports were only specified for 1.5ma or thereabouts. If I buy an off the shelf pci board is it likely to be 1284 level 2? Are all modern pcs built to the new standard? If so, how far back can I safely go? Do the commercial breakout boards have optical isolation?
Anyone done this?
Regards
Dave
You can sink 20ma on all the output pins. Odd's are that a PC that will run mach3 will source 20ma on pins 2 through 9, but it's not a guarantee. For mach3 you need a fast optocoupler, HPCL263x or HPCL 253x or those series P/N's. If you need a reference design take a look at one of mine: http://pminmo.com/4axisopto/4axisDIYopto.htm
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com