[DMUX8_DI] Demultiplexer 1 of 8 double integer values
Function block DMUX8_DI switches the double integer input to one of the 8 outputs depending on a selector.
DMUX8_DI switches the double integer input to one of the 8 outputs depending on a selector.
DMUX8_DI switches the input [In] to the output [Out0]...[Out7] defined by selector [K]. All other outputs are set to the 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].
DMUX8_DI can be cascaded, e.g., to demultiplex 16 outputs. To do this, several DMUX8_DI function blocks can be switched in parallel to the same input value [In]. The output [ReqK] is automatically adjusted by subtraction. This allows any number of DMUX8_DI function blocks to be cascaded.
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_DI is used to reset signals connected via a multiplexer. For example, a communication path with only an integer and double integer variable can be used to transmit up to 8 different values in sequence.