[DMUX8_R] Demultiplexer 1 of 8 real values
Function block DMUX8_R switches the real input to one of the 8 outputs in dependence of a selector.
DMUX8_R switches the real input to one of the 8 outputs in dependence of a selector.
DMUX8_R switches the input [In] to the output [Out0] ... [Out7] defined by selector [K]. All other outputs are set to default value [DefVal].
If the value of input [K] is smaller than 0 or greater than 7, all outputs [Out0]...[Out7] are set to [DefVal].
Cascading
DMUX8_R can be cascaded, e.g. to demultiplex 16 outputs. Instead, multiple DMUX8_R are switched in parallel with the same input value [In]. Selector [K] is adapted by subtraction.
Selector K | Output | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Out0 | Out1 | Out2 | Out3 | Out4 | Out5 | Out6 | Out7 | ReqK | |
K < 0 | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | -1 |
K = 0 | In | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | -1 |
K = 1 | DefVal | In | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | -1 |
K = 2 | DefVal | DefVal | In | DefVal | DefVal | DefVal | DefVal | DefVal | -1 |
K = 3 | DefVal | DefVal | DefVal | In | DefVal | DefVal | DefVal | DefVal | -1 |
K = 4 | DefVal | DefVal | DefVal | DefVal | In | DefVal | DefVal | DefVal | -1 |
K = 5 | DefVal | DefVal | DefVal | DefVal | DefVal | In | DefVal | DefVal | -1 |
K = 6 | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | In | DefVal | -1 |
K = 7 | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | In | -1 |
K > 7 | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | DefVal | K - 8 |
DMUX8_R normally is used to reset signals interconnected via a multiplexer.
For example, a communication path featuring only an integer and a real variable can be used to transmit up to 8 different values in sequence.