5.5 Standard Selection Functions
5.5.1 Selection
5-149
5
APPLICATION
FUNCTIONS
SEL(_E)
SEL(_E)
(Example) and are word (signed) type data
Operation result
(1) Function without EN/ENO
An operation is executed and the operation value is output from .
(2) Function with EN/ENO
The following table shows the executing conditions and operation results.
*1 When FALSE is output from ENO, the data output from is undefined.
In this case, create a program so that the data output from is not used.
EN ENO
TRUE (Operation execution) TRUE Operation output value
FALSE (Operation stop)
FALSE
*1
Undefined value
s2
s3
SEL
G
IN1
IN2
OUT
FALSE
1234
5678
Word (signed)
type
Word (signed) type
1234
Word (signed)
type
Bit type
d
d
d
d