SEL

Function - Select one of the inputs - 2 inputs.

Inputs

SELECT : BOOL Selection command
IN1    : ANY  First input
IN2    : ANY  Second input

Outputs

Q : ANY       IN1 if SELECT is FALSE; IN2 if SELECT is TRUE

Truth table

SELECT

Q

0

IN1

1

IN2

Remarks

In LD language, the selector command is the input rung. The output rung keeps the same state as the input rung. In IL language, the first parameter (selector) must be loaded in the current result before calling the function. Other inputs are operands of the function, separated by comas.

ST Language

Q := SEL (SELECT, IN1, IN2);

FBD Language

SelFbd.gif (1388 octets)

LD Language

(* the input rung is the selector *)
(* ENO has the same value as SELECT *)
SelLd.gif (1535 octets)

IL Language

Op1: LD  SELECT
     SEL IN1, IN2
     ST  Q

See also

MUX4   MUX8