DVP15MC11T Operation Manual
8.11.3 SEL
FB/FC
Explanation
FC
SEL is used for selecting one of two variables or constants and the selected
value is output to Out.
DVP15MC11T
Parameters
Meaning
Description Valid range
G Gate Input
In0 is selected when G is
FALSE;
In1 is selected when G is
Depends on the data type of the
variable that the input parameter is
connected to.
In0 and In1
Selections Input Data to be selected
Depends on the data type of the
variable that the input parameter is
Out
Selection
result
Output Selection result
Depends on the data type of the
variable that the output parameter is
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
G
●
and
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Out
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
According to the selection condition G, the SEL instruction selects one of two variables or constants
and the selection result is output to Out.
8-136