First time EMC2 user need help

More
05 Sep 2012 23:27 #23952 by gmaranda
andypugh wrote:

gmaranda wrote:

Being new to linux do you mind expanding on cat/proc/ioports?

Open a terminal and type "cat /proc/ioports"

If you read the list you ought to see the parallel port, and its base address.
This is rather like "lspci" but it finds ports that are not on the PCI bus too.



No success as i get the following error msg:

"No such file or directory"

does this make sense?

Please Log in or Create an account to join the conversation.

More
05 Sep 2012 23:29 #23953 by gmaranda
andypugh wrote:

gmaranda wrote:

when I went to plug the TB6560 card I realized that I did not have a parallel card on my computer so I bought one and installed it. Turned on the computer and I have been trying to make this thing work ever since


I think we might have failed to mention a really basic possibility.

In the early pages of Stepconf is "Basic machine configuration" and that asks for the "First Parport Base Address"
What number did you put in there, and where did you get it from?


It is the default: 0x378. It was there when we started the program and we did not change anything on this one.

tks

Please Log in or Create an account to join the conversation.

More
06 Sep 2012 02:05 #23956 by PCW
If you installed a PCI or PCIE parallel port card, it will not have 0x378 as its address,
so you will need to determine its address

Here's an example of how to do this:

www.linuxcnc.org/docs/2.4/html/examples_pci_parallel_port.html

(Does stepconf allow selecting parallel port 0 and side stepping all this mumbo-jumbo?)

Please Log in or Create an account to join the conversation.

More
06 Sep 2012 08:46 #23963 by andypugh
gmaranda wrote:

It is the default: 0x378. It was there when we started the program and we did not change anything on this one.


I wish we had realised this earlier, it would have saved weeks.

Try 0 first, as suggested by PCW, it ought to work.

If not, then cat /proc/ioports ought to work. Note the space between "cat" (the command) and "/proc/ioports" (the file to be looked at)

Please Log in or Create an account to join the conversation.

More
06 Sep 2012 10:52 #23964 by BigJohnT
PCW wrote:

(Does stepconf allow selecting parallel port 0 and side stepping all this mumbo-jumbo?)


If you put 0 in the port stepconf generates this:
loadrt hal_parport cfg="0 out  "

Don't know if the out part is a problem or not but I can't get cfg="0" to work on the docs computer at all. I can try in the shop after while.

John

Please Log in or Create an account to join the conversation.

More
06 Sep 2012 12:31 #23970 by gmaranda
PCW wrote:

If you installed a PCI or PCIE parallel port card, it will not have 0x378 as its address,
so you will need to determine its address

Here's an example of how to do this:

www.linuxcnc.org/docs/2.4/html/examples_pci_parallel_port.html

(Does stepconf allow selecting parallel port 0 and side stepping all this mumbo-jumbo?)


I will give this a try. After checking it I only have one question where do I add the two line:

<<and then added the following lines so the parport will get read and written to.

addf parport.1.read base-thread
addf parport.1.write base-thread>>

Do I add these two lines anywhere in the .hal file or to a specific spot?

tks

Please Log in or Create an account to join the conversation.

More
06 Sep 2012 12:32 #23971 by gmaranda
andypugh wrote:

gmaranda wrote:

It is the default: 0x378. It was there when we started the program and we did not change anything on this one.


I wish we had realised this earlier, it would have saved weeks.

Try 0 first, as suggested by PCW, it ought to work.

If not, then cat /proc/ioports ought to work. Note the space between "cat" (the command) and "/proc/ioports" (the file to be looked at)


Hmmmm, unsure if the space was there. Will try it again

tks

Please Log in or Create an account to join the conversation.

More
06 Sep 2012 12:32 #23972 by gmaranda
By the way thank you all for your help it is appreciated:)

Please Log in or Create an account to join the conversation.

More
06 Sep 2012 14:14 #23978 by PCW
If you only have one PCI parallel port, it will be port 0
(if you dont have a port on the motherboard)

so those statements (and all references to the port) would be:

addf parport.0.read base-thread
addf parport.0.write base-thread

Normally these are at the top of the hal file after the loadrt section but I dont think it matters

Please Log in or Create an account to join the conversation.

More
07 Sep 2012 00:23 - 07 Sep 2012 00:26 #23996 by gmaranda
Good day,

My friend tried the cat /proc/ioports and he sent me a .dat file of it but I cannot upload it. Any other way to give the info?

tks
Last edit: 07 Sep 2012 00:26 by gmaranda.

Please Log in or Create an account to join the conversation.

Time to create page: 0.207 seconds
Powered by Kunena Forum