Hello all!
I'm a long time LinuxCNC user and in need of a change. I'm finding it harder and harder to remember all the detail of programming linuxCNC interface.
I've just purchased UCCNC and waiting for my U300Eth board to arrive. I'm running in simulation mode learning how the software works.
I'm also using Gerry's 2017 Screenset and loving it.
I have one problem though, I'm not a "Language" programmer. Did Fortran, Machine code etc way back when, but have not done any kind of modern programming in 30 years.
I have a pendant I designed and built. It was designed to support limited available inputs that I have on my old system. The pendant has 14 buttons and a MPG, while my old hardware had only 9 inputs and 2 outputs available for it. I designed the LinuxCNC code to scan a "Matrix" and act accordingly.
Now I would like to use the same pendant for UCCNC. I think a looping Macro may work for this. But I know nothing about C# program language.
I need a macro that would push a output pin high, look at 7 inputs pins to see if any go high, then if one does, act on it triggering one of 7 functions. Then it would turn that output low, turn on a second output pin, then scan the same 7 inputs again and trigger 7 different functions if any go high.
This way I get 14 unique functions triggered using only 9 I/O pins. (7-in and 2-out)
Does anyone know of a macro that might already be doing something like this? Or maybe help me a little with getting going?
Thanks and Cheers!
Dale