CLASS
I
O
2.30
Binary Selection (SEL)
Description
This FB is used to select between two inputs IN1 and IN2 and will redirect them to the OUT output.
The SEL input works as a selection switch. If SEL is false, IN1 will be sent to OUT. Otherwise IN2
will be sent to the OUT output.
SEL
MNEM
DESCRIPTION
EN
INPUT ENABLE
SEL
INPUT SELECTION
IN1
INPUT 1
IN2
INPUT 2
ENO
OUTPUT ENABLE
OUT
OUTPUT
I: Input. P: Parameter. O: Output. V: Variable
BINARY SELECTION
IF EN=1 THEN
ENO := 1
IF SEL = 0 THEN
OUT := IN1
ELSE
OUT := IN2
ELSE
ENO := 0
OUT := 0
TYPE
BOOLEAN
BOOLEAN
ANY
ANY
BOOLEAN
ANY
Function Blocks
Need help?
Do you have a question about the Logic View and is the answer not in the manual?
Questions and answers