First Time Help
So, there are a number of other things that could be wrong:
It is possible that the device is not at 0x300. There is no jumper setting for that address mentioned in the manual.
cat /proc/ioports might list the ISA cards.
Here is how to check if your driver is compiled and working.
Open a terminal window and type
halrun
loadrt pcl720 ioaddr=0x300
loadrt threads
addf pcl720.0.write thread1
start
show pin
show thread
show funct
You can test the individual pins with a multimeter and commands like
setp pcl720.0.pin-03-out 1
getp pcl720.0.pin-27-in
Did you edit the HAL file? Feel free to post the HAL file for checking.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
- Posts: 5007
- Thank you received: 1441
Running the things you mentioned seems to indicate the driver is working
but I would have guessed that if I did something on the machine like depress a limit switch, the outputs of one of the pins from show pin would have changed, but they do not.
Not every possible memory address is listed in the manual. (300 is what the old software was configured for) I have tried setting the card to its default 0x2A0 and I am getting the same results.
Here is what I have so far for a hal file
# standard pinout config file for 3-axis steppers
# using a parport for I/O
#
# first load the parport driver
loadrt pcl720 ioaddr=0x300
#
#
# next connect the parport functions to threads
# read inputs first
addf pcl720.0.read base-thread
# write outputs last
addf pcl720.0.write base-thread
#
# finally connect physical pins to the signals
net Xstep => pcl720.0.pin-02-out
net Xdir => pcl720.0.pin-00-out
net Ystep => pcl720.0.pin-01-out
net Ydir => pcl720.0.pin-03-out
net Zstep => pcl720.0.pin-06-out
net Zdir => pcl720.0.pin-04-out
# create a signal for the estop loopback
net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in
###
### Sample separate limit switches on the X axis (axis 0)
###
#net X-neg-limit pcl720.0.pin-8-in => axis.0.neg-lim-sw-in
#net X-pos-limit pcl720.0.pin-10-in => axis.0.pos-lim-sw-in
#net Y-neg-limit pcl720.0.pin-12-in => axis.0.neg-lim-sw-in
#net Y-pos-limit pcl720.0.pin-14-in => axis.0.pos-lim-sw-in
#net Z-neg-limit pcl720.0.pin-11-in => axis.0.neg-lim-sw-in
#net Z-pos-limit pcl720.0.pin-9-in => axis.0.pos-lim-sw-in
Please Log in or Create an account to join the conversation.
Unfortunately I am not sure if you would expect to.I don't see it listed in cat /proc/ioports
Running the things you mentioned seems to indicate the driver is working
but I would have guessed that if I did something on the machine like depress a limit switch, the outputs of one of the pins from show pin would have changed, but they do not.
The commands I gave didn't include adding the "read" function to a thread (oops).
addf pcl720.0.read thread1
And try again.
This assumes that all the wiring is the same as it was when it worked before.
Please Log in or Create an account to join the conversation.
The first tab in that screen doesn't update, but items added to the "Watch" tab do.
Also www.happy-monkey.net/LPI/html/ch03.html hints that some configuration might be required.
Try pnpdump at the command line (it might need to be installed)
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
- Posts: 5007
- Thank you received: 1441
Please Log in or Create an account to join the conversation.
I think we can assume that the BIOS is set up correctly, as it works with DOS, but there might need to be some configuration in Ubuntu.
Google suggests that hwinfo might list something, but I am drawing a bit of a blank on any setup process for ISA
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
- Posts: 5007
- Thank you received: 1441
Please Log in or Create an account to join the conversation.
pnp
lspnp
setpnp
And see if anything happens (you can tell I am floundering in the dark here)
you might need to install them:
sudo apt-get install pnputils
manpages.ubuntu.com/manpages/lucid/en/man8/lspnp.8.html
At this point I think you need input from someone familiar with Ubuntu, PCs and ISA slots. I am a long-time Mac user...
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
- Posts: 5007
- Thank you received: 1441
2.8 ACL-7120A Software Library Installation
The DOS software library is supplied with the ACL-7120A. Function
prototypes and useful constants are defined in the header files in the LIB
directory. The DOS library software includes a utility program, C language
libraries, and demonstration programs to help reduce the programming work.
Please refer to the ACLS-DLL1 function reference manual on ADLINK CD.
The DOS functions are compatible with ACLS-DLL1 functions except those
without a “W” prefix in function names.
Please Log in or Create an account to join the conversation.
If it really isn't working then I suspect that the problem is likely to be with the system setup rather than the driver.
It is just possible that you might find different behaviour running as root.
Please Log in or Create an account to join the conversation.