- Posts: 19311
- Thank you received: 4655
Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
andypugh wrote: This adds an extra output that can be used with the message HAL component to say which gear should be selected. (using bitslice to convert the int to individual bits)
Actually, requiring bitslice is laziness on my part.
Please Log in or Create an account to join the conversation.
Will have a look tomorrow and see if I can grasp this code, thanks Andy.
Please Log in or Create an account to join the conversation.
Already spotted one error i have a comma where a semicolon belongs
for (i = 0; spindle_speed_in > speeds && i < 14; i++);
Please Log in or Create an account to join the conversation.
andypugh wrote: Again, done at work in Windows, so no guarantees of any sort.
Already spotted one error i have a comma where a semicolon belongs
for (i = 0; spindle_speed_in > speeds && i < 14; i++);
speeds && i < 14; i++);
Is above OK?
Please Log in or Create an account to join the conversation.
bengt@debian:~/linuxcnc$ sudo halcompile --compile GB_2speed.comp
[sudo] password for bengt:
GB_2speed.comp:17:25: Array name contains no #: 'message'
> pin out bit message[14];
> ^
bengt@debian:~/linuxcnc$
Where in the compfile should a message be written and how?
Please Log in or Create an account to join the conversation.
tecno wrote: GB_2speed.comp:17:25: Array name contains no #: 'message'
> pin out bit message[14];
> ^
That needs to be
pin out bit message-##[14]
"message" is an existing and separate HAL component.Where in the compfile should a message be written and how?
Please Log in or Create an account to join the conversation.