How to connect an IO pin to an OUT pin
14 Oct 2013 07:12 #39817
by mayo
How to connect an IO pin to an OUT pin was created by mayo
Hello to all!!
Any idea to do it or to create a component that allows to connect an IO pin to an OUT pin?
Thanks in advance!
Any idea to do it or to create a component that allows to connect an IO pin to an OUT pin?
Thanks in advance!
Please Log in or Create an account to join the conversation.
14 Oct 2013 08:33 #39819
by cmorley
Replied by cmorley on topic How to connect an IO pin to an OUT pin
Use comp to create a component
www.linuxcnc.org/docs/2.5/html/hal/comp.html
This is untested...
www.linuxcnc.org/docs/2.5/html/hal/comp.html
component io_connect;
pin io float out;
pin in float in;
function _;
license "GPLv2 or later";
;;
FUNCTION(_) { out = in; }
This is untested...
Please Log in or Create an account to join the conversation.
14 Oct 2013 18:35 #39828
by andypugh
Replied by andypugh on topic How to connect an IO pin to an OUT pin
The license statement will taint the kernel, you need to use only very specific strings there. "GPL" is apparently the one to use.
I think he wanted the "bit" data type. (I don't think I have ever seen a float IO pin, actually)
I think he wanted the "bit" data type. (I don't think I have ever seen a float IO pin, actually)
Please Log in or Create an account to join the conversation.
15 Oct 2013 02:05 #39837
by cmorley
Replied by cmorley on topic How to connect an IO pin to an OUT pin
I guess we need to update the examples in the manual then.
It was copy and pasted and then adapted.
Thought 'tainting' the kernel only produces a whiny message AFAIK.
Yes it was just an example - he didn't specify what he was wanting to do
Chris M
It was copy and pasted and then adapted.
Thought 'tainting' the kernel only produces a whiny message AFAIK.
Yes it was just an example - he didn't specify what he was wanting to do
Chris M
Please Log in or Create an account to join the conversation.
Time to create page: 0.505 seconds