On Sun, 2011-12-25 at 14:05 +0000, Tomaz T. wrote:
> Hi everyone,
> I installed new pci express card with two parallel ports, and I can't
> get any signal out of it. I am trying to connect it to two c10 boards
> which are working fine with mach.

So, everything works fine with Mach, but _only_ changing the software to
Ubuntu/EMC2 doesn't work?

NetMOS cards should work fine with EMC2's software signal generation.
EPP only applies to hardware signal generators such as Pico's, Mesa's
and the Pluto-P cards which use their own loadrt drivers. See:
http://wiki.linuxcnc.org/emcinfo.pl?NetMos 
http://wiki.linuxcnc.org/emcinfo.pl?Startech 
http://wiki.linuxcnc.org/emcinfo.pl?SIIG 
http://wiki.linuxcnc.org/emcinfo.pl?EMC2_Supported_Hardware 

I haven't played with PCI-e cards so these cards aren't, to me at least,
proven to work with EMC2.

> lspci -v feedback is:
> Communication controller: NetMos Technology PCI 9815 Multi-I/O
> Controller (rev 01)Subsystem: LSI Logic / Symbios Logic Device
> 0020Flags: medium devsel, IRQ 19

> I/O ports at cc00 [size=8]
> I/O ports at c880 [size=8]
> I/O ports at c800 [size=8]
> I/O ports at c480 [size=8]
> I/O ports at c400 [size=8]
> I/O ports at c080 [size=16]
> Kernel driver in use: parport
> pcKernel modules: parport_pc
> 
> and  cat /proc/ioports gives me:
> c000-cfff : PCI Bus 0000:03  c000-cfff : PCI Bus 0000:04
> c080-c08f : 0000:04:00.0    c400-c407 : 0000:04:00.0    c480-c487 :
> 0000:04:00.0      c480-c482 : parport1    c800-c807 : 0000:04:00.0
> c800-c802 : parport1    c880-c887 : 0000:04:00.0      c880-c882 :
> parport0    cc00-cc07 : 0000:04:00.0      cc00-cc02 : parport0
> So I also ran trough addresses and the one without error messages on
> start-up are c000, c800, c400, but still no signal from card.

The registers are covered here:
http://www.beyondlogic.org/spp/parallel.htm 
http://www.beyondlogic.org/ecp/ecp.htm

For EMC2's software signals generator, only the base address need to be
found and entered into the driver loadrt command. After the driver is
loaded the parport functions need to be loaded with addf read and/or
write:
http://www.linuxcnc.org/docview/html/hal_parallel_port.html 
http://www.linuxcnc.org/docview/html/examples_pci_parallel_port.html 


>  I checked with multimeter, signals on pins assigned for steppers
> direction which I guess it should be measurable change when jogging in
> one or another direction. Tried with inverting signals also with no
> luck. Is there something I missed on start, because what I did is just
> insert card into the free pci-e slot?
> Thank you,Regards!

The way the parallel port chip drives the pins is not always the same.
Some cards source and sink the pin, some only sink current. For the sink
only pins, a pull-up resistor to the supply voltage is needed, and may
be on th C-10 board. Otherwise the pin will stay at 0 Volts while ON and
OFF. Some cards will source or sink at 5 Volts, others at only 3 Volts.
Some will only sink 3mA before running into danger of burning out the
pin driver, some will source and sink 24mA, which can directly drive an
LED and current limiting resistor in series to ground. Since you had the
card working with Mach these issues may not apply, but then again, they
might.


-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to