[Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-09 Thread Willy Snow
Hi All, First, I am pretty new to all of everything. I am hoping someone can point me back in the right direction. I am trying to get my bench setup running. I have a single nema 17 motor connected to a Gecko G540 using a 24V PS. I can power up the G540 with the charge pump off and the motor hold

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-09 Thread andy pugh
On 9 October 2015 at 19:54, Willy Snow wrote: > *lspci -vvv* > > 04:00.0 Parallel controller: NetMos Technology Device 9900 (prog-if 03 > [IEEE1284]) > Subsystem: Device a000:2000 > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- DisINTx- >

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-09 Thread Willy Snow
Thanks Andy. >You could try "cat /proc/ioports" though I suspect it will give the same answer as you already have. bill@CNC:~$ cat /proc/ioports -0cf7 : PCI Bus :00 -001f : dma1 0020-0021 : pic1 0040-0043 : timer0 0050-0053 : timer1 0060-0060 : keyboard 0064-0064 : keyboar

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-10 Thread andy pugh
On 10 October 2015 at 01:55, Willy Snow wrote: > d000-dfff : PCI Bus :04 > d000-d007 : :04:00.0 > d010-d017 : :04:00.0 This could be it, but I was hoping for something a little more unambiguous >>Does the linuxCNC parport driver load? > bill@CNC:~$ loadrt hal_parport cfg="

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-10 Thread Willy Snow
Hi Andy, Here is the hal load for port 0 and 1. They both don't load. I would assume I am connected to linux "0" since they have different errors. FYI: Last night I swapped card ports to see if this was this issue. bill@CNC:~/Desktop$ halrun halcmd: loadrt hal_parport cfg-"0" Error: could not in

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-10 Thread andy pugh
On 10 October 2015 at 16:59, Willy Snow wrote: > bill@CNC:~/Desktop$ halrun > halcmd: loadrt hal_parport cfg-"0" > [ 141.692879] hal_parport: Unknown parameter `cfg-"0" That could just be a typo. you have cfg- not cfg= -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manife

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-10 Thread Willy Snow
Hi Andy, I fixed the typos. Linux ports 0 and 1 did not work. 0x378 seemed to load (it did not give error message). I still cannot make the motor turn if I set Parport Base Address to 0x378 in Stepconf Wizard. halcmd: loadrt hal_parport cfg="0" Error: could not insert module /usr/realtime-3.4-9

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-10 Thread andy pugh
On 11 October 2015 at 01:40, Willy Snow wrote: > Linux ports 0 and 1 did not work. 0x378 seemed to load (it did not give > error message). I still cannot make the motor turn if I set Parport Base > Address to 0x378 in Stepconf Wizard. Caveat: I haven't even tried to use a parport for about 5 year

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-10 Thread Willy Snow
Got it!!! With a little help from a friend. He figured out 0x378 is for a on-board parallel port. Mine is a add on. I do lspci -vvv and search for 9900 device. Then I use the first I/O port. >From below the I/O is e010 so my port is 0e010. Worked great!! bill@CNC:~/Desktop$ lspci -vvv 01:00.0

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-11 Thread andy pugh
On 11 October 2015 at 06:23, Willy Snow wrote: > I do lspci -vvv and search for 9900 device. Then I use the first I/O port. > >From below the I/O is e010 so my port is 0e010. Worked great!! It's a bit strange that it moved, the earlier lspci -vv had it at 0xd010. Have you changed PCI slots? --

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-11 Thread Willy Snow
> > It's a bit strange that it moved, the earlier lspci -vv had it at > 0xd010. Have you changed PCI slots? > > -- > atp > If you can't fix it, you don't own it. > http://www.ifixit.com/Manifesto Hi Andy, I swapped it out while troubleshooting. So it works fine in Stepconf Wizard, but not in LC

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-11 Thread andy pugh
On 11 October 2015 at 18:38, Willy Snow wrote: > So it works fine in Stepconf Wizard, but not in LCNC. Is there a reason not to use the HAL file created by Stepconf? > I assume I need to add "loadrt hal_parport cfg="0e010" to my hal file. Does > it matter where it goes? It has to go near the t

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-11 Thread Willy Snow
>Is there a reason not to use the HAL file created by Stepconf? >> I assume I need to add "loadrt hal_parport cfg="0e010" to my hal file. Does >> it matter where it goes? >It has to go near the top, before any HAL lines that try to addf the >threads and net the pins. I start with my hal file fro

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-11 Thread andy pugh
On 11 October 2015 at 20:56, Willy Snow wrote: > loadrt hal_parport cfg="0e010" [**tried adding here and other places > but only get errors] What errors? -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto --

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-11 Thread andy pugh
On 11 October 2015 at 20:56, Willy Snow wrote: > loadrt hal_parport cfg="0e010" Should be "0xE010" -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- __

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-11 Thread Chris Morley
You have SIM config checked on the first page? - Reply message - From: "andy pugh" To: "Enhanced Machine Controller (EMC)" Subject: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port Date: Sun, Oct 11, 2015 2:04 PM On 11 October 2015 at 20:56, Willy S

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-11 Thread andy pugh
On 11 October 2015 at 22:39, Chris Morley wrote: > You have SIM config checked on the first page? Well spotted! Bill, you need to either un-select "simulator" in stepconf, or swap "sim_parport" for "hal_parport" in your hal. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-11 Thread Willy Snow
Well spotted! Bill, you need to either un-select "simulator" in stepconf, or swap "sim_parport" for "hal_parport" in your hal. Doh! Got it running. Thanks everyone! https://www.youtube.com/watch?v=BlfAynGyWaU&feature=youtu.be Bill > ---

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-12 Thread Mark Wendt
On Sun, Oct 11, 2015 at 7:31 PM, Willy Snow wrote: > Well spotted! > > Bill, you need to either un-select "simulator" in stepconf, or swap > "sim_parport" for "hal_parport" in your hal. > > > Doh! > > Got it running. Thanks everyone! > > https://www.youtube.com/watch?v=BlfAynGyWaU&feature=youtu.be

Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-12 Thread Willy Snow
When you use the word beginner I'd say forget all the experimental stuff and just get a desktop PC. I just purchased this setup and the latency is really great, usually < 9000 with an occasional 13300. http://www.newegg.com/Product/Product.aspx?Item...28860&Tpk=13-128-860