MUX4
Function - Select one of the inputs - 4 inputs.
Inputs
Input |
Data type |
Description |
K |
DINT |
Selection command. |
IN0 |
ANY |
First input. |
IN1 |
ANY |
Second input. |
IN2 |
ANY |
Third input. |
IN3 |
ANY |
Last input. |
Outputs
Output |
Data type |
Description |
Q |
ANY |
IN0 or IN1 ... or IN3 depending on K(see truth table). |
Truth table
K |
Q |
0 |
IN0 |
1 |
IN1 |
2 |
IN2 |
3 |
IN3 |
other |
0 |
Remarks
In LD language, the input rung (EN) enables the selection. The output rung keeps the same state as the input rung.
ST Language
Q := MUX4 (K, IN0, IN1, IN2, IN3);
FBD Language
LD Language
The selection is performed only if EN is TRUE.
ENO has the same value as EN .
MUX4 |
IEC 61131-3 Automation platform > Programming - Reference guide > Selectors > MUX4 |
Created with the Personal Edition of HelpNDoc: Effortlessly Edit and Export Markdown Documents