Standard Selection Functions; Selection - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

5.5

Standard Selection Functions

Selection

SEL(_E)
High
Basic
Process
performance
Structured ladder/FBD
SEL_E
EN
ENO
s1
s2
s3
The following function(s) can go in the dotted squares.
SEL, SEL_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• Selects either of values input to (s2) and (s3) according to the bit type data input to (s1), and outputs the operation result
from (d) in the same data type as that of (s2) and (s3).
When the input value of (s1) is FALSE, the value input to (s2) is output from (d).
When the input value of (s1) is TRUE, the value input to (s3) is output from (d).
Ex.
(s2) and (s3) are word (signed) type data
FALSE
s1
Bit type
1234
s2
to
s3
Word (signed) type
5678
Word (signed) type
• The input value to (s1) is data value of bit type.
• The input value to (s2), (s3) is data value of bit type/word (signed) type/double word (signed) type/word (unsigned) type/16-
bit string type/double word (unsigned) type/32-bit string type/ single-precision real number type/double-precision real
number type/string type/time type/structured data type/array type.
• Rounding error may occur when specifying single-precision real or double-precision real type data to (s2), (s3) by
programming tool.
For precautions when setting an input value using a programming tool, refer to the following.
 MELSEC-Q/L/F Structured Programming Manual (Fundamentals)
5 APPLICATION FUNCTIONS
144
5.5 Standard Selection Functions
LCPU
Redundant Universal
ST
ENO:=
SEL_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s1(_G)
Output condition (TRUE: s3 output, FALSE: s2
output)
s2(_IN0)
Input
s3(_IN1)
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
SEL
_G
OUT
_IN0
_IN1
(EN, s1, s2, s3, d);
d
1234
Word (signed) type
Data type
Bit
Bit
ANY
Bit
ANY

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents