MUX8B (multiplexer of 8 BOOL inputs)

Multiplexer between eight 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.
MUX8B
MUX8B
MUX8B parameters
Parameter
Parameter Type
Data Type
Description
Selector
Input
USINT
Selector integer value, must be in set [0...7].
IN0
Input
BOOL
Any BOOL input value.
  • TRUE: When Selector is 0.
  • FALSE: When Selector is not 0.
IN1
Input
BOOL
Any BOOL input value.
  • TRUE: When Selector is 1.
  • FALSE: When Selector is not 1.
IN2
Input
BOOL
Any BOOL input value.
  • TRUE: When Selector is 2.
  • FALSE: When Selector is not 2.
IN3
Input
BOOL
Any BOOL input value.
  • TRUE: When Selector is 3.
  • FALSE: When Selector is not 3.
IN4
Input
BOOL
Any BOOL input value.
  • TRUE: When Selector is 4.
  • FALSE: When Selector is not 4.
IN5
Input
BOOL
Any BOOL input value.
  • TRUE: When Selector is 5.
  • FALSE: When Selector is not 5.
IN6
Input
BOOL
Any BOOL input value.
  • TRUE: When Selector is 6.
  • FALSE: When Selector is not 6.
IN7
Input
BOOL
Any BOOL input value.
  • TRUE: When Selector is 7.
  • FALSE: When Selector is not 7.
MUX8B
Output
BOOL
  • TRUE when:
    • In0 if Selector = 0
    • In1 if Selector = 1
    • In2 if Selector = 2
    • In3 if Selector = 3
    • In4 if Selector = 4
    • In5 if Selector = 5
    • In6 if Selector = 6
    • In7 if Selector = 7
  • FALSE: For all other values of the Selector.

MUX8B examples

MUX8B function block diagram example
MUX8B function block diagram example
MUX8B ladder diagram example
MUX8B ladder diagram example
MUX8B structured text example
MUX8B structured text example
(* ST Equivalence: *) range := MUX8 (choice, 1, 5, 10, 50, 100, 500, 1000, 5000); (* select from 8 predefined ranges, for example, if choice is 3, range will be 50 *)
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal