DVP15MC11T Operation Manual
8.11.2 MIN
FB/FC
Explanation
FC
MIN is used for finding the smallest value of two or more variables or constants.
DVP15MC11T
Parameters
Meaning
Description Valid range
In1 to InN
Comparison
data
Input
The comparison data can
be added or removed
while the program is
being written. The
maximum number of
comparison data is 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
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
to
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
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:
8-134