EasyManua.ls Logo

Mitsubishi MELSEC iQ-F FX5 series

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
804
20 SELECTION FUNCTIONS
20.2 Selecting Maximum/Minimum Value
20.2 Selecting Maximum/Minimum Value
MAX(_E), MIN(_E)
MAX(_E): These functions output the maximum value of an input value.
MIN(_E): These functions output the minimum value of an input value.
Setting data
Descriptions, types, and data types
Processing details
Operation processing
MAX(_E)
Ex.
Data type is INT
MIN(_E)
Ex.
Data type is INT
A data value of the BOOL, INT, DINT, WORD, DWORD, REAL, STRING, or TIME type can be input to (s1) to (s28).
The number of pins for (s) can be changed in the range of 2 to 28.
Ladder diagram Structured text
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
d:=MAX(s1,s2);
d:=MIN(s1,s2);
[With EN/ENO]
d:=MAX_E(EN,ENO,s1,s2);
d:=MIN_E(EN,ENO,s1,s2);
Argument Description Type Data type
EN Execution condition (TRUE: Execution, FALSE: Stop) Input variable BOOL
s1 to s28 Input Input variable ANY_SIMPLE
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable ANY_SIMPLE
These functions output the maximum value of the BOOL, INT, DINT, WORD, DWORD, DWORD, REAL, STRING, or TIME type data input to (s1) to (s28) in
the same data type as (s) from (d).
These functions output the minimum value of the BOOL, INT, DINT, WORD, DWORD, DWORD, REAL, STRING, or TIME type data input to (s1) to (s28) in
the same data type as (s) from (d).
s1 d
s2
EN ENO
ds1
s2
MAX
_IN1
_IN2
OUT
1234
5678
INT
INT
5678
INT
(s1) to (s28)
(d)
M
A
X
_
IN
1
_
IN
2
OUT
12
3
4
56
7
8
INT
IN
T
56
7
8
IN
T
(
s1
)
to
(
s28
)
(
d
)
MIN
_IN1
_IN2
OUT
1234
5678
INT
INT
5678
INT
(s1) to (s28)
(d)
M
I
N
_
IN
1
_
IN
2
OUT
12
3
4
56
7
8
IN
T
IN
T
56
7
8
IN
T
(
s1
)
to
(
s28
)
(
d
)

Table of Contents

Related product manuals