Electronic spindle gearbox

More
12 years 3 months ago #48899 by microsprintbuilder
Sorry for the delay I've been gutting and installing the new PC and wiring the boards. I need to add that if you think you might hit the motherboard when drilling holes to mount the PC don't talk yourself out of removing it as I did or you will be replacing it. I'm hoping to get movement this weekend. I'm looking at this with a blank stare and have a few questions. I make a file with the above text in ( linuxcnc/src/hal/components ) and call it electronic gearbox. then in hal, I place loadrt electronic gearbox and then I define the relay 1,2 & 3 to my outputs?

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

More
12 years 3 months ago #48900 by andypugh
Replied by andypugh on topic Electronic spindle gearbox

microsprintbuilder wrote: I'm looking at this with a blank stare and have a few questions. I make a file with the above text in ( linuxcnc/src/hal/components ) and call it electronic gearbox. then in hal, I place loadrt electronic gearbox and then I define the relay 1,2 & 3 to my outputs?


Nearly. You would need to compile / install the new component using the "comp" tool.

www.linuxcnc.org/docs/html/hal/comp.html

Or, if you are using the development version, it has changed its name:

www.linuxcnc.org/docs/devel/html/hal/comp.html

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

More
12 years 3 months ago #48901 by microsprintbuilder
And this is done in a terminal window using sudo?

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

More
12 years 3 months ago #48903 by andypugh
Replied by andypugh on topic Electronic spindle gearbox
You can use gedit to create and edit the file, but then, yes, "sudo comp --install ebox.comp

And then the hal file can contain "loadrt ebox"

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

More
12 years 3 months ago #48982 by microsprintbuilder
I cannot find the file linuxcnc/src/hal/components. Is it hidden. What is the first location? Home, documents, etc. ?

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

More
12 years 3 months ago #48983 by andypugh
Replied by andypugh on topic Electronic spindle gearbox

microsprintbuilder wrote: I cannot find the file linuxcnc/src/hal/components.


Why are you looking for it? You can put ebox.comp anywhere convenient, and comp will compile it and move the executable file to the right place.

if
Code:
sudo comp --install ebox.comp
mentions programs like mm and mail then ignore it. You need to
Code:
sudo apt-get install linuxcnc-dev

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

Time to create page: 0.107 seconds
Powered by Kunena Forum