Standard Selection Functions; Sel_E - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.6

Standard Selection Functions

5.6.1
SEL(_E)
Outline
This function selects either one between two data in accordance with the input condition, and outputs the
selection result.
1. Format
Function name
SEL

SEL_E

*1.
Output variable
2. Set data
Variable
EN
_G
Input
variable
_IN0 (
_IN1 (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function outputs either one between the values stored in devices specified in
accordance with the value stored in a device specified in
type of data stored in a device specified in
When the value stored in a device specified in
device specified in
When the value stored in a device specified in
device specified in
Example: When the data type of input variables
FALSE
Bit data
1234
Word [signed] data
5678
Word [signed] data
162
FX
3U(C)
Expression in each language
Structured ladder
SEL
M0
_G
D0
_IN0
D10
_IN1
SEL_E
X000
EN
M0
_G
D0
_IN0
D10
_IN1
Execution condition
Bit data used as the selection condition
(
)
s1
Selectable data, or word device which stores such data
)
s2
Selectable data, or word device which stores such data
)
s3
Execution status
Word device which will store the selection result
(
)
d
to a device specified in
s2
to a device specified in
s3
SEL
G
_IN0
_IN1
FX
FX
FX
3G
2N(C)
1N(C)
SEL(_G,_IN0,_IN1);
Example:
*1
D20
D20:=
SEL(M0,D0,D10);
SEL_E(EN,_G,_IN0,_IN1,Output
label);
ENO
Example:
SEL_E(X000,M0,D0,D10,D20);
*1
D20
Description
to a device specified in
s1
and
.
s2
s3
is "FALSE", this function outputs the value stored in a
s1
.
d
is "TRUE", this function outputs the value stored in a
s1
.
d
and
is word [signed]
s2
s3
1234
Word [signed] data
5.6 Standard Selection Functions
FX
FX
/FX
FX
1S
U
2C
0N
ST
Data type
Bit
Bit
ANY
ANY
Bit
ANY
and
s2
using the data
d
FX
0(S)
in
s3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents