Controlling lube pump & a second parallel post
- TarHeelTom
- Offline
- Premium Member
- Posts: 91
- Thank you received: 1
Sorry, I forgot about the -v for lspci...
Your load line should be either
loadrt hal_parport cfg="0x378 out 0x1008 out "
or
loadrt hal_parport cfg="0 out 1 out "
John
Just changed to this:
loadrt hal_parport cfg="0x378 out 0x1008 out "
Will try your other suggestion in a few minutes.
Thanks
Tom
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
- TarHeelTom
- Offline
- Premium Member
- Posts: 91
- Thank you received: 1
or it might be the second address 0x1000....
John
Using the 0x1008 worked, so didn't bother trying the 0x1000.
Think I'll try that later.
Tom
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
- TarHeelTom
- Offline
- Premium Member
- Posts: 91
- Thank you received: 1
Current stumper is that I've got a very sparse hal file created by stepconf that works. But when I copy the few applicable entries to my working file, they don't work.
When it first loads, I click on the estop button on screen, and the outputs enable led shows up on the bob. But for some reason, it's still stuck in estop.
I should add that I'm using the PCI port at 0x1008, which seems to be port 1.
I'm waiting for a ribbon cable to arrive so that I can hook up port 0.
The hal file will be in the next message....
Please Log in or Create an account to join the conversation.
- TarHeelTom
- Offline
- Premium Member
- Posts: 91
- Thank you received: 1
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
Here's the hal file.
Just guessing but:
#net estop-ext <= parport.1.pin-10-in-not
...
net estop-ext => iocontrol.0.emc-enable-in
I suspect that the problem is that nothing drives emc-enable with this config and the enable input commented out.
The trick to get things working is not to comment out the external e-stop, but to loop together the soft e-stop and emc-enable.
ie replace
net estop-out <= iocontrol.0.user-enable-out
net estop-ext => iocontrol.0.emc-enable-in
With
net e-stop iocontrol.0.user-enable-out <=> iocontrol.0.emc-enable-in
Please Log in or Create an account to join the conversation.
- TarHeelTom
- Offline
- Premium Member
- Posts: 91
- Thank you received: 1
This is being a long process, as I've got two bob's, and stepconf only seems to want to use the first bob.
So I have one big working file, which I won't let stepconf alter. Then i run stepconf and add one more pin to a sparse hal file, then compare the two, then move the new entries to the big file, and hope it works.
Trouble is that this estop toggle works fine on the small file, but not on the big file, but does not throw an error.
Now back to the grind....
Tom
Please Log in or Create an account to join the conversation.
- TarHeelTom
- Offline
- Premium Member
- Posts: 91
- Thank you received: 1
Thanks
Tom
Please Log in or Create an account to join the conversation.