■Operation result
• Function without EN/ENO
An operation is executed and the operation value is output from (d).
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
Operation error
• No operation error occurs.
Program example
■MUX(_E)
The program which selects the value to be output among the values input to variables (s1) and (s2) according to the value
input to n, and outputs the operation result from (d) in the same data type as that of (s1) or (s2).
• Function without EN/ENO (MUX)
[Structured ladder/FBD]
[ST]
g_int4 := MUX(g_int1, g_int2, g_int3);
• Function with EN/ENO (MUX_E)
[Structured ladder/FBD]
[ST]
g_bool3 := MUX_E(g_bool1, g_int1, g_int2, g_int3, g_int4);
ENO
TRUE
*1
FALSE
(d)
Operation output value
Undefined value
5 APPLICATION FUNCTIONS
5.5 Standard Selection Functions
5
151