First time EMC2 user need help
gmaranda wrote:
Open a terminal and type "cat /proc/ioports"Being new to linux do you mind expanding on 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.
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.
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.
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.
(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.
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.
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.
Please Log in or Create an account to join the conversation.
(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.
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
Please Log in or Create an account to join the conversation.