
806
20 SELECTION FUNCTIONS
20.3 Limit Control
20.3
Limit Control
LIMIT(_E)
These functions output an input value controlled with the upper and lower limits.
Setting data
■
Descriptions, types, and data types
Processing details
■
Operation processing
• These functions output an input value according to the BOOL, INT, DINT, WORD, DWORD, REAL, STRING, or TIME type
data input to (s1), (s2), and (s3) in the same data type as (s1), (s2), and (s3) from (d).
Ex.
Data type is INT
• A data value of the BOOL, INT, DINT, WORD, DWORD, REAL, STRING, or TIME type can be input to (s1), (s2), and (s3).
(The input value of (s1) must be smaller than the one of (s3).)
Ladder diagram
Structured text
[Without EN/ENO]
[With EN/ENO]
[Without EN/ENO]
d:=LIMIT(s1,s2,s3);
[With EN/ENO]
d:=LIMIT_E(EN,ENO,s1,s2,s3);
Argument
Description
Type
Data type
EN
Execution condition (TRUE: Execution, FALSE: Stop)
Input variable
BOOL
s1
Lower limit value (minimum output threshold value)
Input variable
ANY_SIMPLE
s2
Input value to be controlled with the upper and lower limits
Input variable
ANY_SIMPLE
s3
Upper limit value (maximum output threshold value)
Input variable
ANY_SIMPLE
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
Output variable
BOOL
d
Output
Output variable
ANY_SIMPLE
• When the input value of (s2) is larger than the one of (s3), these functions output the input value of (s3) from (d).
• When the input value of (s2) is smaller than the one of (s1), these functions output the input value of (s1) from (d).
• When the input value of (s1)
the input value of (s2)
the input value of (s3), these functions output the input value of (s2) from (d).
s1
d
s2
s3
EN
ENO
d
s1
s2
s3
LIMIT
_MN
_IN
_MX
OUT
-100
120
100
INT
INT
100
INT
Output value
Input value
INT
(s1)
(s2)
(s3)
(d)
Minimum
input value
Maximum
input value
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......