Function Block DEMUX

The Function Block DEMUX is a De-Multiplexer.

Note: This Function Block can have more than three outputs. You can right-click on the Function Block to add another output.

Input IN

Defines the value that should be set at the corresponding output. The data type is irrelevant in this case.

Input SET

The input of type Integer selects, based on the applied value, an output and forwards the value of the input IN to the corresponding output Q0..Q#. The selection is limited by the number of outputs. This means that if the value 0 is fallen below, the first output Q0 is selected. If the value at the input is greater than the number of outputs Q#, the last output is selected.

If the input equals NULL, no output is written to.

Output OUT

The output corresponds to the value from the input IN.

Outputs Q0..Q#

The outputs store the received values.