Mux_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.5
MUX(_E)
Outline
This function selects data, and outputs the selected data.
1. Format
Function name
MUX

MUX_E

*1.
Output variable
2. Set data
Variable
EN
Input
_K (
variable
_IN (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
1) This function outputs either one among values stored in devices specified in
in
in accordance with the value specified in
d
specified in
a) When the value specified in
to a device specified in
s1
b) When the value specified in
to a device specified in
sn
Example: When the data type is word [signed]
Word [signed] data
Word [signed] data
Word [signed] data
2) When a value input to
value to a device specified in
(An operation error does not occur. "MUX_E" outputs "FALSE" from ENO.)
3) The number of pins in
170
FX
3U(C)
Expression in each language
Structured ladder
MUX
D0
_K
D10
_IN
D20
_IN
MUX_E
X000
EN
D0
_K
D10
_IN
D20
_IN
Execution condition
Selection data, or word device which stores such data
)
n
...)
Selectable data, or word device which stores such data
s1
Execution status
Word device which will store the selected data
....
s1
is "1", this function outputs the value stored in a device specified in
n
.
d
is "n", this function outputs the value stored in a device specified in
n
.
d
1
MUX
K
_IN
1234
_IN
5678
is outside the pin number range for
n
.
d
can be changed.
s
FX
3G
FX
2N(C)
FX
1N(C)
MUX(_K,_IN,_IN);
Example:
*1
D30
D30:=
MUX(D0,D10,D20);
MUX_E(EN,_K,_IN,_IN,Output
label);
ENO
Example:
MUX_E(X000,D0,D10,D20,D30);
*1
D30
Description
using the data type of data stored in devices
n
1234
Word [signed] data
5.6 Standard Selection Functions
FX
1S
FX
U
/FX
2C
ST
Data type
Bit
Word [signed]
ANY
Bit
ANY
... to a device specified
s1
..., this function outputs an indefinite
s1
FX
0N
FX
0(S)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents