SEL
Specifies the input to use between two integer values.

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 *)

(* ST Equivalence: *)
ProCmd := SEL (AutoMode, ManuCmd, InpCmd); (* process command selection *)
Provide Feedback