Create new HAL component

More
7 years 3 months ago #139372 by rodw
Replied by rodw on topic Create new HAL component

persei8 wrote: It worked!
except the command is sudo halcompile --install and3.comp

Thanks to all for the help. And if you actually want a AND3 component, I attached the comp file.


Great work. Sorry about the wrong example. Its funny how it all works when you are typing at the console.

Welcome to the magical world of hal components!

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

More
7 years 3 months ago #139553 by andypugh
Replied by andypugh on topic Create new HAL component
It's also worth learning how to use the LUT5 component for this. It allows you to specify a true or false output for every possible combination of 5 input bits.
This is rather useful for interlocks etc. (for example if door is open and spindle is not on and pedal is pressed then release tool).
LUT5 becomes especially interesting when the output is fed back to one of the inpiuts, then it can exhibit useful latching behaviour.

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

More
4 years 4 months ago #244940 by wasausky
Replied by wasausky on topic Create new HAL component
Hi everyone. it happens that I have to update the hal_pin_gpio and cpuinfo component.

because the revision that I have in the raspberry is not in the list of these components.

my question is:
if I recompile the component, will it be rewritten? Or do you have to create another one?

Also, in the case of the 3 ands, if you recompile the component several times until you finish, you would be rewriting it or creating different components.

Thank you for your answers.

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

More
4 years 4 months ago #245173 by andypugh
Replied by andypugh on topic Create new HAL component
You can try modifying cpuinfo.c and compiling / installing with halcompile

sudo halcompile --install cpuinfo.c

I think that it probably won't work, but it's worth trying.

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

More
4 years 4 months ago #245274 by andypugh
Replied by andypugh on topic Create new HAL component
When 55a548ea3948... in 2.8 at buildbot.linuxcnc.org/buildbot/grid is finished then there should be an updated version of 2.8 available from buildbot.linuxcnc.org/ either through apt/synaptic as described there, or by manually installing the .deb from buildbot.linuxcnc.org/dists/

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

Time to create page: 0.292 seconds
Powered by Kunena Forum