Function - Select one of the inputs - 8 inputs.
SELECT : DINT
Selection command
IN1 :
ANY First input
IN2 :
ANY Second
input
...
:
IN8 :
ANY Last input
Q : ANY IN1 or IN2 ... or IN8 depending on SELECT (see truth table)
SELECT |
Q |
0 |
IN1 |
1 |
IN2 |
2 |
IN3 |
3 |
IN4 |
4 |
IN5 |
5 |
IN6 |
6 |
IN7 |
7 |
IN8 |
other |
0 |
In LD language, the input rung (EN) enables the selection. The output rung keeps the same state as the input rung. In IL language, the first parameter (selector) must be loaded in the current result before calling the function. Other inputs are operands of the function, separated by comas.
Q := MUX8 (SELECT, IN1, IN2, IN3, IN4, IN5, IN6, IN7, IN8);
(* the selection is performed only if EN is
TRUE *)
(* ENO has the same value as EN *)
Not available
Op1: LD SELECT
MUX8 IN1, IN2, IN3, IN4, IN5, IN6, IN7,
IN8
ST Q