Controlling lube pump & a second parallel post

More
14 Jun 2011 12:49 #10487 by TarHeelTom
BigJohnT wrote:

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.

More
14 Jun 2011 14:22 #10488 by BigJohnT
or it might be the second address 0x1000....

John

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

More
14 Jun 2011 14:57 #10489 by TarHeelTom
BigJohnT wrote:

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.

More
14 Jun 2011 15:01 #10490 by BigJohnT
If 0x1008 worked then that is the correct one... sometimes you have to try them all to see which one works.

John

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

More
14 Jun 2011 23:19 - 14 Jun 2011 23:22 #10510 by TarHeelTom
I'm stumped. Trying to put together a hal file and get each component working as I go along.

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.

File Attachment:

File Name: Bridgeport_1.ini
File Size:0 KB


The hal file will be in the next message....
Attachments:
Last edit: 14 Jun 2011 23:22 by TarHeelTom.

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

More
14 Jun 2011 23:23 #10511 by TarHeelTom
Here's the hal file. I've changed the suffix to .txt

File Attachment:

File Name: Bridgeport_1.txt
File Size:4 KB
Attachments:

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

More
14 Jun 2011 23:57 #10512 by BigJohnT
When I get errors from modifing hal files I just comment everything out except one then see if it runs... then uncomment one at a time till I find the error.

John

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

More
15 Jun 2011 01:23 #10516 by andypugh
TarHeelTom wrote:

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.

More
15 Jun 2011 01:45 #10517 by TarHeelTom
Thanks, Andy. At least it gives me a place to start.

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.

More
15 Jun 2011 04:38 #10521 by TarHeelTom
Okay, got that fixed, and have outputs for Mist Coolant and Flood Coolant. Have one more solid state relay installed to power the vacuum cleaner. Can anyone point me in the proper direction to use one of the higher numbered M codes to turn the vacuum on and off? Is it possible to add another check box on the screen, similar to the other two boxes for Mist and Flood?

Thanks

Tom

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

Time to create page: 0.102 seconds
Powered by Kunena Forum