![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
I followed the instructions from http://www.linuxcnc.org/docview/html...llel_port.html I put this in the custom hal file so it not over written When i then try to start i get an error dump file I am obviously not sure what i am doing wrong this is the the info i get when i run lspci -v Can anyone help me use the correct port in the correct format Thanks 00:09.0 Serial controller: NetMos Technology Unknown device 9865 (prog-if 02 [16550]) Subsystem: Unknown device a000:1000 Flags: medium devsel, IRQ 5 I/O ports at b000 [size=8] Memory at dfffb000 (32-bit, non-prefetchable) [size=4K] Memory at dfffa000 (32-bit, non-prefetchable) [size=4K] Capabilities: 00:09.1 Serial controller: NetMos Technology Unknown device 9865 (prog-if 02 [16550]) Subsystem: Unknown device a000:1000 Flags: medium devsel, IRQ 10 I/O ports at b400 [size=8] Memory at dfffd000 (32-bit, non-prefetchable) [size=4K] Memory at dfffc000 (32-bit, non-prefetchable) [size=4K] Capabilities: 00:09.2 Parallel controller: NetMos Technology Unknown device 9865 (prog-if 03 [IEEE1284]) Subsystem: Unknown device a000:2000 Flags: bus master, medium devsel, latency 64, IRQ 9 I/O ports at bc00 [size=8] I/O ports at b800 [size=8] Memory at dffff000 (32-bit, non-prefetchable) [size=4K] Memory at dfffe000 (32-bit, non-prefetchable) [size=4K] Capabilities: |
|
#2
| |||
| |||
| You need to post the error. also what version of emc are you using and are you using stepconf. the current stepconf can add a second and third parallel port just by entering the addrerss and checking them to load. Chris M |
|
#3
| |||
| |||
| I/O ports at bc00 [size=8] I/O ports at b800 [size=8] The parallel port is most likely at one of these addresses. But, NetMos chips are a little odd, so it is possible these addresses reported by the PCI enumeration could be wrong. You will have to try both of these addresses to find out which one is connected to the port you are using. (The other address is likely connected to a 26 pin header on the board, which you can connect another 25-pin D connector to. Jon |
|
#4
| ||||
| ||||
| chester88, jmelson, Thanks, i tried entering the parport in stepconf with both b800 and bc00 i am using EMC2 ver 2.3.5 Both loaded OK, is there a simple test to check that the port is correct i am not using the port at the moment, it is for an MPG I want to make 100% sure everything is working before i leave Mach3, in Mach i use a USB device (Shuttle Pro) Sorry for the dumb questions |
|
#5
| |||
| |||
| The best way is to test it! ![]() wire a switch to one of the inputs and watch that pin with halmeter. halmeter can be loaded from the AXIS screen. search the pin names for the parport.1. whatever pin your checking. The fact it didn't crash with error is a good sign. There is probably two ports on your addon card as Jnelson said. One a side note you can probably use your Shuttle pro with emc. though it is fairly involved. You might want to try it later. look here: http://hidcomp.sourceforge.net/#hidcompcontrols It mentions the Shuttle pro. |
| Sponsored Links |
|
#6
| ||||
| ||||
| chester88 thanks for the reply, I hope you guys can appreciate i am on a steep leaning curve. chester88 I checked the link you gave me and that is too steep for my old brain. I already have a dedicated MPG, i absolutely hate the shuttle pro for various reasons. I would like some info on the PoKeys device if there is any. Mainly keyboard emulation, which the PoKeys is very good at. |
|
#7
| |||
| |||
Don't put it into the custom.hal file the problem is the line loadrt hal_parport cfg="0x0378 0xbc00 0xb400 " in the form 0x378 is already in your machinename.hal file and hal gives an error that you have already loaded the parport driver. EMC2 user manual needs update-ing to mention that you can only do things like this once. Took me awhile to realise this. eg. I loaded it in the command line version of Hal, then I couldn't load emc2 even with standard 1 port. My question is how do you setup the axis(s) once you have loaded all three port adresss... you still need to do.... addf parport.0.read base-thread addf stepgen.make-pulses base-thread addf parport.0.write base-thread addf parport.0.reset base-thread etc for every axis on the particular port. I am still struggling with this. |
|
#8
| |||
| |||
| Erlyrisa: Why don't you use stepconf ? It will set up the three parports for you after you add the addresses. Hmm unless you are trying to have one axis per parport. While it maybe possible I wouldn't recommend it. Leave all the axis step signals on the first parport and use the other parports for extra I/O. What are you actually trying to do? |
|
#9
| |||
| |||
I had a look at the example 5axis.conf but that's not setup for step outputs just simulation. It's probably not hard todo, just wish thier were more in the manual about things like this, it seems the manual is geared toward starters, and the hard stuff is left for the uber geeks to figure out. --A fix on my last post - what I meant to say is that the hal_parport line is already in your machinename.hal file ... putting it into custom.hal just doubles it up and doesn't work - in other words the manual and similar posts have this wrong. Putting 0x37 0xbc00 etc in the step config wizard didn't work for me. |
|
#11
| |||
| |||
| I simply put 0x0378 0xbc00 0xb400 into the stepconf wixard and it change my cfg="0x0378 0xbc00 0xb400 out " It also setup the pins, of course stepconf didn't ask about doing more complex axis ... will have to do that manually I guess. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help adding tooling | kirkmach | Cincinnati CNC | 0 | 05-04-2009 02:38 PM |
| Need Help!- Adding an X axis power feed to my smithy 1220XL milling table.Adding an X axis power | matridium | Smithy | 0 | 05-28-2008 10:37 AM |
| adding a 4th axis? | airbrush | Rockcliff Machine | 17 | 10-12-2007 05:00 PM |
| Adding a fan to the X3 | Antonyong | Benchtop Machines | 2 | 04-25-2007 11:19 PM |
| Adding a 4th | Shizzlemah | Fadal | 5 | 12-01-2005 05:16 PM |