DMUX8_R: Demultiplexer 1 of 8 real values
The DMUX8_R (FC415) block switches the real input to one of the 8 outputs in dependence of a selector.
Functionality
The block 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].
The block can be cascaded e.g. to demultiplex 16 outputs. To do this, several DMUX8_R blocks can be switched in parallel to the same input value [In] and the input selector [K] is adjusted via 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 |
Inputs
Pin | E | Description |
K | pa | Selector. |
In | pa | Input. |
DefVal | pa | Default value. |
Outputs
Pin | E | Description |
Out0..Out7 | a | Output 0..7 |
ReqK |
| Request Selector |
Input values
Pin | Description | Data type | Default value | E.g. Engineering unit or Text group | Min. | Max. |
K | Selector. | Integer | 0 |
| -32678 | 32678 |
In | Input. | Real | 0.0 |
| -3.4E38 | 3.4E38 |
DefVal | Default value. | Real | 0.0 |
| -3.4E38 | 3.4E38 |
Output values
Pin | Description | Data type | Default value | E.g. Engineering unit or Text group | Min. | Max. |
Out0..Out7 | Output 0..7 | Real | 0.0 |
| -3.4E38 | 3.4E38 |
ReqK | Request Selector | Integer | 0 |
| -32678 | 32678 |
Application
The block 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.
Process response
Standard (see General rules and information).
Troubleshooting
Standard (see General rules and information).