23.3
Limit Control
LIMIT(_E)
These functions output an input value controlled with the upper and lower limits.
Ladder diagram, FBD/LD
[Without EN/ENO]
s1
d
s2
s3
Setting data
■Descriptions, types, and data types
Argument
EN
s1(MIN)
s2(IN)
s3(MX)
ENO
d(LIMIT(_E))
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).
• 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).
Ex.
Data type is INT
-100
(s1)
INT
120
(s2)
INT
(s3)
100
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).)
23 SELECTION FUNCTIONS
1016
23.3 Limit Control
[With EN/ENO]
EN
ENO
s1
s2
s3
Description
Execution condition (TRUE: Execution, FALSE: Stop)
Lower limit value (minimum output threshold value)
Input value to be controlled with the upper and lower limits
Upper limit value (maximum output threshold value)
Output status (TRUE: Normal, FALSE: Abnormal)
Output
(d)
LIMIT
100
_MN
OUT
_IN
INT
_MX
Structured text
[Without EN/ENO]
d:=LIMIT(s1,s2,s3);
[With EN/ENO]
d:=LIMIT_E(EN,ENO,s1,s2,s3);
d
(d)
(s1)
Type
Input variable
Input variable
Input variable
Input variable
Output variable
Output variable
(s2)
(s3)
Data type
BOOL
ANY_ELEMENTARY
ANY_ELEMENTARY
ANY_ELEMENTARY
BOOL
ANY_ELEMENTARY