DVP15MC11T Operation Manual
8.11 Selection Instructions
8.11.1 MAX
FB/FC
Explanation
Max is used for finding the largest value of two or more variables or constants.
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.
Depends on the data type of the
variable that the input parameter is
connected to.
Out
Comparison
result
Output
The largest 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
In1
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 Max instruction finds the largest value of two or more variables or constants and the largest
value is output to Out.
MAX
EN ENO
In1 Out
InN
.
.
.
.
..
In1 INT#10:
In2 INT#20:
In3 INT#30:
In4 INT#-20:
MAX
Out INT#30:
8-132