sel
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
G |
BOOL |
|
|
|
Selection command. |
IN0 |
ANY |
|
|
|
First input. |
IN1 |
ANY |
|
|
|
Second input. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Q |
ANY |
|
|
|
Remarks
None
Truth Table
G |
Q |
---|---|
0 |
IN0 |
1 |
IN1 |
FBD Language Example
FFLD Language Example
- In the FFLD "Free Form Ladder Diagram" Language, the selector command is the input rung.
- The output rung keeps the state of the input rung.
- ENO has the same value as SELECT.
IL Language Example
- In the IL "Instruction List"
This is a low-level language and resembles assembly 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.
Op1: LD "Ladder diagram" Ladder logic is a method of drawing electrical logic schematics. It is now a very popular graphical language for programming Programmable Logic Controllers (PLCs). It was originally invented to describe logic made from relays. The name is based on the observation that programs in this language resemble ladders, with two vertical "rails" and a series of horizontal "rungs" between them SELECT
SEL IN1, IN2
ST Q
ST Language Example
Q := SEL (G, IN0, IN1);
See Also