DOKK / manpages / debian 12 / linuxcnc-uspace / demux.9.en
DEMUX(9) HAL Component DEMUX(9)

demux - Select one of several output pins by integer and/or or individual bits.

loadrt demux [count=N|names=name1[,name2...]] [personality=P,P,...]

This component creates a number of output bits defined by the "personality" command-line parameter. One of these bits will be set based on interpreting the bit-inputs as a binary number and then adding on the integer input. Most uses will use only one or the other, but it is possible to use the bits as a ""shift"" if required. An optional operating mode is enabled by setting the "bargraph" parameter to true, in this case all bits up to the selected bit will be set, as might be required for an LED bargraph display.

Binary-number bit selectors
Integer selection input
The set of output bits

Andy Pugh

GPL 2+

2023-02-10 LinuxCNC Documentation