- Posts: 19306
- Thank you received: 0
(SOLVED - maybe) How to get an underscore in a pin/parameter name?
Then edit the generated C file to have your pin names.
Then compile and install
Please Log in to join the conversation.
Please Log in to join the conversation.
github.com/LinuxCNC/linuxcnc/blob/master...-hostmot2/hm2_test.c
Please Log in to join the conversation.
ozzyrob wrote: I'd be putting my wager on the coder doing something wrong rather than the compiler doing something wrong
...
Just cos a underscore can be used does not necessarily mean it should.
Not at all helpful.
Please Log in to join the conversation.
andypugh wrote: Create your component and then pre-process
Code:halcompile --preprocess hm2_7i76e.comp
Then edit the generated C file to have your pin names.
Then compile and install
Code:sudo halcompile --install hm2_7i76e.c
Perhaps you missed where I showed doing exactly the same...
forum.linuxcnc.org/24-hal-components/347...?limitstart=0#112340
Please Log in to join the conversation.
Sparky961 wrote: Perhaps you missed where I showed doing exactly the same...
forum.linuxcnc.org/24-hal-components/347...?limitstart=0#112340
That doesn't seem to be exactly the same thing at all. Perhaps you failed to read my recipe?
(And you will find that you get the problem you describe any time that the component name and the file name do not match, so if you didn't change the component name in supply.c then it simply won't work.)
Please Log in to join the conversation.
andypugh wrote: I don't suppose hm2_test is any help?
github.com/LinuxCNC/linuxcnc/blob/master...-hostmot2/hm2_test.c
It looks promising. If it allows me to run a config offline it is a viable solution.
Please Log in to join the conversation.
- ozzyrob
- New Member
-
- Thank you received: 0
What is the thing with the dash replacing underscore if you know ?
Please Log in to join the conversation.
ozzyrob wrote: What is the thing with the dash replacing underscore if you know ?
Part of the (widely ignored) canonical interface specification.
It is documented somewhere that all HAL pins should use hyphens.
Please Log in to join the conversation.
Sparky961 wrote: github.com/LinuxCNC/linuxcnc/blob/master...-hostmot2/hm2_test.c
It looks promising. If it allows me to run a config offline it is a viable solution.[/quote]
Having tried it, I am not sure if any of the test_patterns actually load.
For example.
Please Log in to join the conversation.
