6 - 51 6 - 51
6 IEC FUNCTIONS
6.8.3 Minimum value MIN
MIN_E
The specified data are searched for the minimum value.
Function definition
ANY_SIMPLE MIN( ANY_SIMPLE S1, ANY_SIMPLE S2,…., ANY_SIMPLE Sn );
Argument
Argument Name
IN/OUT
Description
S1 to Sn
IN
Search target data
Return value
Return Value
Description
ANY_SIMPLE Search
result
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
REAL Real4:=
MIN(Real1,Real2,Real3);
LD SM400
EMOV Real1
Real4
LDE> Real4
Real2
EMOV Real2
Real4
LDE> Real4
Real3
EMOV Real3
Real4
LD,EMOV,LDE>
INT Int4:=
MIN(Int1,Int2,Int3);
LD SM400
MOV Int1
Int4
LD> Int4
Int2
MOV Int2
Int4
LD> Int4
Int3
MOV Int3
Int4
LD,MOV,LD>
DINT Dint4:=
MIN(Dint1,Dint2,Dint3);
LD SM400
DMOV Dint1
Dint4
LDD> Dint4
Dint2
DMOV Dint2
Dint4
LDD> Dint4
Dint3
DMOV Dint3
Dint4
LD,DMOV,LDD>
BOOL bBit4:=
MIN(bBit1,bBit2,bBit3);
LD bBit1
AND bBit2
AND bBit3
OUT bBit4
LD,AND,OUT
STRING Str4:=
MIN(Str1,Str2,Str3);
LD SM400
$MOV Str1
Str4
LD$> Str4
Str2
$MOV Str2
Str4
LD$> Str4
Str3
$MOV Str3
Str4
LD,$MOV,LD$>
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......