First Time Help

More
29 Jun 2011 20:30 #10977 by andypugh
Replied by andypugh on topic Re:First Time Help
Well, it turns out that you _can_ ignore the warnings. I just compiled and installed on a Virtual Machine here.

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
If the last three commands list things, and the thread period is not zero then it is all installed and should work.

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
from the halcmd prompt (that you get by typing halrun at the normal prompt). This takes EMC2 and all that complexity out of the equation.

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.

More
29 Jun 2011 22:01 - 29 Jun 2011 22:05 #10980 by Todd Zuercher
Replied by Todd Zuercher on topic Re:First Time Help
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.

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
Last edit: 29 Jun 2011 22:05 by Todd Zuercher.

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

More
29 Jun 2011 23:06 #10981 by andypugh
Replied by andypugh on topic Re:First Time Help
Todd Zuercher wrote:

I don't see it listed in cat /proc/ioports

Unfortunately I am not sure if you would expect to.

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.

More
30 Jun 2011 10:32 #10990 by andypugh
Replied by andypugh on topic Re:First Time Help
Also, you ought to be able to see activity from limit switches etc in the "Watch" tab of Machine->Show HAL Configuration.
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.

More
30 Jun 2011 10:57 #10993 by Todd Zuercher
Replied by Todd Zuercher on topic Re:First Time Help
Actually the old DOS program still does sort of work. I have two different versions, both seem to be broken, one (the original to the machine) version 2.303a I can't get to detect the copy protection key and will only run in demo mode (40 line limit), but works otherwise. The other a slightly new build 2.307i, detects the key fine but keeps crashing with a stack overflow error, also runs the machine fine otherwise. So I know that I should be able to get this thing to do something.

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

More
30 Jun 2011 11:26 #10995 by andypugh
Replied by andypugh on topic Re:First Time Help
I was never really expecting the driver to work first time without access to the hardware.

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.

More
30 Jun 2011 13:14 #11002 by Todd Zuercher
Replied by Todd Zuercher on topic Re:First Time Help
I don't see it in hwinfo. It is currently configured to 0x2A0 and I don't see anything at that address.

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

More
30 Jun 2011 13:53 - 30 Jun 2011 13:58 #11004 by andypugh
Replied by andypugh on topic Re:First Time Help
try
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...
Last edit: 30 Jun 2011 13:58 by andypugh.

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

More
30 Jun 2011 14:34 #11005 by Todd Zuercher
Replied by Todd Zuercher on topic Re:First Time Help
Here is a paragraph from the manual for the card. Would any of these software examples from the manufacturer be useful?


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.

More
30 Jun 2011 14:49 #11006 by andypugh
Replied by andypugh on topic Re:First Time Help
Have you tried the HAL Watch window and/or running the card from the halcmd prompt with the .read function linked to a thread?

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.

Time to create page: 0.184 seconds
Powered by Kunena Forum