Minimum Value - Mitsubishi MELSEC-q Programming Manual

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.8.3 Minimum value

The specified data are searched for the minimum value.
Function definition
6 - 51
MIN
MIN_E
ANY_SIMPLE MIN( ANY_SIMPLE S1, ANY_SIMPLE S2,...., ANY_SIMPLE Sn );
Argument
Argument Name
IN/OUT
S1 to Sn
IN
Return value
Return Value
ANY_SIMPLE
Search result
Example of use
Argument Type
REAL
Real4:=
MIN(Real1,Real2,Real3);
INT
Int4:=
MIN(Int1,Int2,Int3);
DINT
Dint4:=
MIN(Dint1,Dint2,Dint3);
BOOL
bBit4:=
MIN(bBit1,bBit2,bBit3);
STRING
Str4:=
MIN(Str1,Str2,Str3);
Search target data
ST Program
Conversion Result
LD
EMOV
LDE>
EMOV
LDE>
EMOV
LD
MOV
LD>
MOV
LD>
MOV
LD
DMOV
LDD>
DMOV
LDD>
DMOV
LD
AND
AND
OUT
LD
$MOV
LD$>
$MOV
LD$>
$MOV
Description
Description
Used Instruction
SM400
LD,EMOV,LDE>
Real1 Real4
Real4 Real2
Real2 Real4
Real4 Real3
Real3 Real4
SM400
LD,MOV,LD>
Int1 Int4
Int4 Int2
Int2 Int4
Int4 Int3
Int3 Int4
SM400
LD,DMOV,LDD>
Dint1 Dint4
Dint4 Dint2
Dint2 Dint4
Dint4 Dint3
Dint3 Dint4
bBit1
LD,AND,OUT
bBit2
bBit3
bBit4
SM400
LD,$MOV,LD$>
Str1 Str4
Str4 Str2
Str2 Str4
Str4 Str3
Str3 Str4
6 - 51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents