SEL

Binary selector; selects a value between two integer values.
lrsf_se1
Arguments
SEL
SEL
BOOL
Indicates the chosen value
IN1, IN2
IN1, IN2
DINT
Any integer values
SEL
Q
DINT
= IN1 if SEL is FALSE
= IN2 if SEL is TRUE
Example
(* FBD Program using "SEL" Function *)
lrsf_se2
(* ST Equivalence: *)
result := SEL (AutoMode, ManuCmd, InpCmd); (* process command selection *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal