5-148
5.5 Standard Selection Functions
5.5.1 Selection
SEL(_E)
5.5 Standard Selection Functions
5.5.1 Selection
SEL(_E)
Function
Operation processing
(1) Selects either of values input to and according to the value input to , and outputs
the operation result from in the same data type as that of and .
When the input value of is FALSE, the value input to is output from .
When the input value of is TRUE, the value input to is output from .
SEL(_E)
_E: With EN/ENO
indicates any of the following
functions.
SEL SEL_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s1:
Output condition (TRUE: s3 output, FALSE: s2 output) :Bit
s2:
s3:
Input :ANY
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :ANY
Universal
UD
High
Performance
SEL_E
(EN, s1, s2, s3, d);ENO:=
Structured ladder
ST
EN ENO
s1 d
s2
s3
SEL_E
s2
s3 s1
d
s2
s3
s1
s2
d
s1 s3
d