2 Standard Functions
2 - 74
NX-series Safety Control Unit Instructions Reference Manual (Z931)
MUX
This function selects one of multiple selections.
If you omit an input or output parameter, a building error will occur.
An error will not occur if the output terminal is not used or if it is connected to an input terminal on the
next instruction.
This function selects one of two to N selections, In0 to InN.
Selector K specifies which of In0 to InN to select.
The value of one of the input variables is assigned to Out according to the value of K. In0 is assigned if
K is 0, InN is assigned if K is N.
Use the SEL instruction to select one of two selections.
Instruction Name FB/FUN Graphic expression
MUX Multiplexer FUN
Variables
Name I/O Description Valid range Default
K Selector Input 0: Selects In0.
1: Selects In1.
2: Selects In2.
N: Selects InN.
Depends on data type. ---
In0 to InN Selections Selections
Out Selection
result
Output Selection
result
Depends on data type. ---
Boolean Bit strings Integers Durations
BOOL
SAFEBOOL
BYTE
SAFEBYTE
WORD
SAFEWORD
DWORD
SAFEDWORD
INT
SAFEINT
DINT
SAFEDINT
TIME
SAFETIME
K OK OK OK OK
In0 to InN OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Out OKOKOKOKOKOKOKOKOKOKOKOKOKOK
Function
Additional Information
MUX
K