MUX4B (multiplexer of 4 BOOL inputs)
Multiplexer between four BOOL inputs. It outputs a BOOL value.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
MUX4B

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
Selector | Input | USINT | Selector integer value, must be in set [0...3]. |
IN0 | Input | BOOL | Any BOOL input value.
|
IN1 | Input | BOOL | Any BOOL input value.
|
IN2 | Input | BOOL | Any BOOL input value.
|
IN3 | Input | BOOL | Any BOOL input value.
|
MUX4B | Output | BOOL |
|
MUX4B examples
MUX4B function block diagram example

MUX4B ladder diagram example

MUX4B structured text example

(* ST Equivalence: *) range := MUX4 (choice, 1, 10, 100, 1000); (* select from 4 predefined ranges, for example, if choice is 1, range will be 10 *)
Results

Provide Feedback