I think you were looking for 'logic' https://linuxcnc.org/docs/stable/html/man/man9/logic.9.html
On Sat, Jul 18, 2026, 12:17 PM Nicklas SB Karlsson <[email protected]> wrote: > Had need for an or component with more than two inputs and therefore > spent most of the day implement one with configurable number of inputs > for instances. > > Attached is source .c file and .gif picture of example how to use it. > Default with no extra config argument is a two input or component named > or.0 if it work as supposed to. Argument config= is comma separated lit > used to specify number of inputs for the or gates. Adding a text after > the number then this is used instead of number. > With name config argument look a lit bittle ugly and an improvement > would be to allow space after number before name for pin. > > If someone want to include into the source it would be great? > Otherwise I will sooner or later make a pull request? > It should be simple to modify this into and and xor variant and will > probably also make this at the same time if I make a pull request. > Ideas for or improvement how parameters for configuration is entered is > appreciated. > > > Have only done a very fast test but it seems to work supposed to. If > anybody want to try it there is a need to make changes in the files > srd/Makefil and src/Makefile.inc.in > > > Regards Nicklas Karlsson > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers > _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
