Chapter 8 Logic Instructions
8-141
FB/FC
Explanation
FC
MIN is used for finding the smallest value of two or more variables or
constants.
DVP15MC11T-06
Parameters
Meaning
Description Valid range
In1 to InN
Comparison
data
Input
be added or removed
while the program is
being written. The
maximum number of
comparison data is 8.
N=2~8.
Depends on the data type of the
variable that the input parameter is
connected to.
Out
Comparison
result
Output
The smallest value of In1
~ InN
Depends on the data type of the
variable that the output parameter is
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
LWORD
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
TIME
TOD
STRING
to
InN
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Out
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data
type. Function Explanation
The MIN instruction finds the smallest value of two or more variables and constants and the
smallest value is output to Out.
When the data types of input variables are not BOOL, TIME, DATE, TOD or STRING, the input
parameters In1~InN are allowed to be the variables of different data types.
MIN
EN ENO
In1 Out
InN
.
.
.
.
..
In1 INT#10:
In2 INT#20:
In3 INT#30:
In4 INT#-20:
MIN
Out INT#-20: