Switch relay in a defined x position

More
4 years 9 months ago #232043 by rodw
Oops I was totally wrong above. There is no need to copy the file to any special location

For a rip build type this in the folder the comp file is in
halcompile --install downdraft.comp

For a deb install add sudo to the command above.
sudo halcompile --install downdraft.comp

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


You can change the file name but you also need to edit the first line in the file to use the new file name

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

More
4 years 9 months ago #232074 by andypugh
Isn't this something that the built-on "comp" or "wcomp" components can do?

linuxcnc.org/docs/2.8/html/man/man9/comp.9.html
linuxcnc.org/docs/2.8/html/man/man9/wcomp.9.html
The following user(s) said Thank You: hoffb77

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

More
4 years 9 months ago #232091 by rodw

Isn't this something that the built-on "comp" or "wcomp" components can do?

linuxcnc.org/docs/2.8/html/man/man9/comp.9.html
linuxcnc.org/docs/2.8/html/man/man9/wcomp.9.html
No wonder I wrote a component. The documentation there is truly awful. UNnless you have an electronics major you have no  clue what a comparator is.

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

More
4 years 9 months ago #232148 by mgm
I have now managed to do this with the Halcompile. As an answer I got:

compiling realtime downdraft.c
Linking downdraft.so
cp downdraft.so /usr/lib/linuxcnc/modules/

I have also added the lines in the Hal file.

Now when I start Linuxcnc I get this error message:
HAL-ERROR: function downdraft not found!

What or where is the wrong?

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

More
4 years 9 months ago #232166 by andypugh

What or where is the wrong?
Are you running an installed version of LinuxCNC or one you compiled yourself? 
 

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

More
4 years 9 months ago #232168 by mgm
I first installed linux MX and then Linuxcnc following the instructions here in the forum

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

Time to create page: 0.105 seconds
Powered by Kunena Forum