Limiter - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.8.4 Limiter

LIMIT
LIMIT_E
The output value is controlled depending on whether the specified data is within the upper/lower limit value
(minimum/maximum output limit value) range or not.
Function definition
6 - 53
ANY_SIMPLE LIMIT( ANY_SIMPLE MIN, ANY_SIMPLE S1, ANY_SIMPLE MAX );
Argument
Argument Name
IN/OUT
MIN
IN
S1
IN
MAX
IN
Return value
Return Value
ANY_SIMPLE
Output value
When MIN (lower limit value) > S1 (input value)
.............................................................................. Return value = MIN (lower limit value)
When MAX (upper limit value) < S1 (input value)
............................................................................ Return value = MAX (upper limit value)
When MIN (lower limit value)
........................................................................................ Return value = S1 (input value)
Example of use
Argument Type
REAL
Real4:=
LIMIT( Real1,Real2,Real3 );
INT
Int4:=
LIMIT( Int1,Int2,Int3);
DINT
Dint4:=
LIMIT( Dint1,Dint2,Dint3);
BOOL
bBit4:=
LIMIT(bBit1,bBit2,bBit3);
STRING
Str4:=
LIMIT(Str1,Str2,Str3);
Minimum output limit value
Input value
Maximum output limit value
S1 (input value)
ST Program
Conversion Result
LDE>=
ANDE<= Real2 Real3
EMOV
LDE<
EMOV
LDE>
EMOV
LD
LIMIT
LD
DLIMIT
LD
OR
AND
OUT
LD$>=
AND$<= Str2 Str3
$MOV
LD$<
$MOV
LD$>
$MOV
Description
Description
MAX (upper limit value)
Used Instruction
Real2 Real1
LDE>=,ANDE<=,EMOV,
LDE<,LDE>
Real2 Real4
Real2 Real1
Real1 Real4
Real2 Real3
Real3 Real4
SM400
LD,LIMIT
Int1
Int3
Int2
Int4
SM400
LD,DLIMIT
Dint1
Dint3
Dint2
Dint4
bBit2
LD,OR,AND,OUT
bBit1
bBit3
bBit4
Str2 Str1
LD$>=,AND$<=,$MOV,
LD$<,LD$>
Str2 Str4
Str2 Str1
Str1 Str4
Str2 Str3
Str3 Str4
6 - 53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents